This source file includes following definitions.
- change_video_tables
- sub_FFE60F10_my
- sub_FFEEBED4_my
- sub_FFEEAB9C_my
- movie_record_task
1 #include "conf.h"
2
3 int *video_quality = &conf.video_quality;
4 int *video_mode = &conf.video_mode;
5
6 long def_table1[9]={0x2000,0x38D,0x788,0x5800,0x9C5,0x14B8,0x10000,0x1C6A,0x3C45};
7 long def_table2[9]={0x1CCD,-0x2E1,-0x579,0x4F33,-0x7EB,-0xF0C,0xE666,-0x170A,-0x2BC6};
8
9 long table1[9], table2[9];
10
11 void change_video_tables(int a, int b){
12 int i;
13 for (i=0;i<9;i++) {table1[i]=(def_table1[i]*a)/b; table2[i]=(def_table2[i]*a)/b;}
14 }
15
16 long CompressionRateTable[]={0x60, 0x5D, 0x5A, 0x57, 0x54, 0x51, 0x4D, 0x48, 0x42, 0x3B, 0x32, 0x29, 0x22, 0x1D, 0x17, 0x14, 0x10, 0xE, 0xB, 9, 7, 6, 5, 4, 3, 2, 1};
17
18 void __attribute__((naked,noinline)) sub_FFE60F10_my(){
19 asm volatile(
20 "CMP R2, #1\n"
21 "STMFD SP!, {R4-R7,LR}\n"
22 "MOV R6, R0\n"
23 "MOV R7, R1\n"
24 "MOVEQ R3, #0x79\n"
25 "STREQ R3, [R7]\n"
26 "LDMEQFD SP!, {R4-R7,PC}\n"
27 "LDR R12, =0x6E064\n"
28 "LDR R0, [R12]\n"
29 "LDR R3, =0x6E06C\n"
30 "CMP R0, #0\n"
31 "LDR R1, [R3]\n"
32 "BEQ loc_FFE60F58\n"
33 "LDR R2, =0x6E070\n"
34 "LDR R3, [R2]\n"
35 "CMP R3, #1\n"
36 "BNE loc_FFE60F6C\n"
37 "B loc_FFE60F5C\n"
38
39
40 "loc_FFE60F58:\n"
41 "LDR R2, =0x6E070\n"
42
43 "loc_FFE60F5C:\n"
44 "MOV R3, #0\n"
45 "STR R3, [R2]\n"
46 "STR R6, [R12]\n"
47 "B loc_FFE61024\n"
48
49
50 "loc_FFE60F6C:\n"
51 "LDR R2, =0x6E068\n"
52 "LDR R3, [R2]\n"
53 "LDR R5, =table1\n"
54 "ADD R3, R3, R3,LSL#1\n"
55 "MOV LR, R3,LSL#2\n"
56 "LDR R2, [R5,LR]\n"
57 "LDR R4, =table2\n"
58 "RSB R12, R2, R0\n"
59 "LDR R3, [R4,LR]\n"
60 "CMP R12, #0\n"
61 "RSB R0, R3, R0\n"
62 "BLE loc_FFE60FD0\n"
63 "ADD R3, R5, #4\n"
64 "LDR R2, [R3,LR]\n"
65 "CMP R2, R12\n"
66 "ADDGE R1, R1, #1\n"
67 "BGE loc_FFE60FC4\n"
68 "ADD R3, R5, #8\n"
69 "LDR R2, [R3,LR]\n"
70 "CMP R2, R12\n"
71 "ADDGE R1, R1, #2\n"
72 "ADDLT R1, R1, #3\n"
73
74 "loc_FFE60FC4:\n"
75
76
77
78 "CMP R1, #0x1A\n"
79 "MOVGE R1, #0x1A\n"
80
81 "B loc_FFE61008\n"
82
83
84 "loc_FFE60FD0:\n"
85 "CMP R0, #0\n"
86 "BGE loc_FFE61008\n"
87 "ADD R3, R4, #4\n"
88 "LDR R2, [R3,LR]\n"
89 "CMP R2, R0\n"
90 "SUBLE R1, R1, #1\n"
91 "BLE loc_FFE61000\n"
92 "ADD R3, R4, #8\n"
93 "LDR R2, [R3,LR]\n"
94 "CMP R2, R0\n"
95 "SUBLE R1, R1, #2\n"
96 "SUBGT R1, R1, #3\n"
97
98 "loc_FFE61000:\n"
99 "CMP R1, #0\n"
100 "MOVLT R1, #0\n"
101
102 "loc_FFE61008:\n"
103
104 "LDR R0, =0x6E06C\n"
105 "LDR R3, [R0]\n"
106 "CMP R1, R3\n"
107 "LDRNE R2, =0x6E070\n"
108 "MOVNE R3, #1\n"
109 "STRNE R1, [R0]\n"
110 "STRNE R3, [R2]\n"
111
112 "loc_FFE61024:\n"
113 "LDR R3, =0x6E06C\n"
114 "LDR R2, =CompressionRateTable\n"
115 "LDR R1, [R3]\n"
116 "LDR R0, =0x6E064\n"
117 "LDR R3, [R2,R1,LSL#2]\n"
118
119 "LDR R1, =video_mode\n"
120 "LDR R1, [R1]\n"
121 "LDR R1, [R1]\n"
122 "CMP R1, #1\n"
123 "LDREQ R1, =video_quality\n"
124 "LDREQ R1, [R1]\n"
125 "LDREQ R3, [R1]\n"
126
127 "STR R6, [R0]\n"
128 "STR R3, [R7]\n"
129 "BL mute_on_zoom\n"
130 "LDMFD SP!, {R4-R7,PC}\n"
131
132 );
133 }
134
135
136 void __attribute__((naked,noinline)) sub_FFEEBED4_my(){
137 asm volatile(
138 "STMFD SP!, {R4-R11,LR}\n"
139 "LDR R5, =0x920A4\n"
140 "SUB SP, SP, #0x14\n"
141 "LDR LR, [R5]\n"
142 "LDR R12, =0x920BC\n"
143 "ADD LR, LR, #1\n"
144 "LDR R4, [R12]\n"
145 "STR LR, [R5]\n"
146 "LDR R12, =0x9213C\n"
147 "STR R0, [SP,#0x10]\n"
148 "STR R1, [SP,#0xC]\n"
149 "STR R2, [SP,#8]\n"
150 "STR R3, [SP,#4]\n"
151 "CMP LR, R4\n"
152 "LDR R11, [R12]\n"
153 "MOVHI R0, #0x80000001\n"
154 "BHI loc_FFEEC3BC\n"
155 "LDR R3, =0x92120\n"
156 "MOV R0, LR\n"
157 "LDR R1, [R3]\n"
158 "BL sub_FFCC0BF4\n"
159 "CMP R0, #1\n"
160 "BNE loc_FFEEC0F4\n"
161 "LDR R0, =0x92144\n"
162 "LDR R1, =0x92090\n"
163 "LDR R3, [R0]\n"
164 "LDR R2, [R1]\n"
165 "CMP R3, R2\n"
166 "LDREQ R3, =0x92140\n"
167 "LDREQ R5, [R3]\n"
168 "MOVNE R5, R2\n"
169 "LDR R3, =0x920A4\n"
170 "LDR R2, =0x92120\n"
171 "LDR R0, [R3]\n"
172 "LDR R1, [R2]\n"
173 "BL sub_FFCC0B5C\n"
174 "LDR R3, =0x92098\n"
175 "ADD R0, R0, #1\n"
176 "AND R0, R0, #1\n"
177 "STR R5, [R3,R0,LSL#2]\n"
178 "LDR R3, =0x9208C\n"
179 "LDR R2, [R3]\n"
180 "CMP R5, R2\n"
181 "BHI loc_FFEEBFA4\n"
182 "LDR R4, =0x920DC\n"
183 "LDR R3, [R4]\n"
184 "ADD R3, R5, R3\n"
185 "ADD R3, R3, #8\n"
186 "CMP R2, R3\n"
187 "BCS loc_FFEEBFA8\n"
188
189 "loc_FFEEBF9C:\n"
190
191 "MOV R0, #0x80000003\n"
192 "B loc_FFEEC3BC\n"
193
194
195 "loc_FFEEBFA4:\n"
196 "LDR R4, =0x920DC\n"
197
198 "loc_FFEEBFA8:\n"
199 "LDR R3, [R4]\n"
200 "LDR R2, =0x92144\n"
201 "ADD R1, R5, R3\n"
202 "LDR R3, [R2]\n"
203 "ADD R2, R1, #8\n"
204 "CMP R2, R3\n"
205 "BLS loc_FFEEBFF4\n"
206 "LDR R2, =0x92140\n"
207 "LDR R0, =0x9208C\n"
208 "RSB R3, R3, R1\n"
209 "LDR R1, [R2]\n"
210 "ADD R3, R3, #8\n"
211 "LDR R2, [R0]\n"
212 "ADD R1, R1, R3\n"
213 "CMP R2, R1\n"
214 "BCC loc_FFEEBF9C\n"
215 "LDR R3, =0x92090\n"
216 "STR R1, [R3]\n"
217 "B loc_FFEEBFFC\n"
218
219
220 "loc_FFEEBFF4:\n"
221 "LDR R3, =0x92090\n"
222 "STR R2, [R3]\n"
223
224 "loc_FFEEBFFC:\n"
225 "LDR R3, [R4]\n"
226 "LDR R12, =0x920F0\n"
227 "ADD R3, R3, #0x18\n"
228 "LDR R2, [R12,#4]\n"
229 "MOV R0, R3\n"
230 "MOV R1, #0\n"
231 "CMP R1, R2\n"
232 "BHI loc_FFEEC240\n"
233 "BNE loc_FFEEC02C\n"
234 "LDR R3, [R12]\n"
235 "CMP R0, R3\n"
236 "BHI loc_FFEEC240\n"
237
238 "loc_FFEEC02C:\n"
239 "LDR R4, [R4]\n"
240 "LDR LR, =0x920F8\n"
241 "STR R4, [SP]\n"
242 "LDR R12, =0x920F0\n"
243 "LDR R3, =0x920A4\n"
244 "LDMIA LR, {R7,R8}\n"
245 "LDMIA R12, {R5,R6}\n"
246 "LDR R10, [R3]\n"
247 "LDR R2, =0x92120\n"
248 "MOV R3, R4\n"
249 "MOV R4, #0\n"
250 "ADDS R7, R7, R3\n"
251 "ADC R8, R8, R4\n"
252 "LDR R9, [R2]\n"
253 "SUBS R5, R5, R3\n"
254 "SBC R6, R6, R4\n"
255 "MVN R2, #0\n"
256 "MVN R1, #0x17\n"
257 "ADDS R5, R5, R1\n"
258 "MOV R4, #0\n"
259 "MOV R3, #0x18\n"
260 "ADC R6, R6, R2\n"
261 "ADDS R7, R7, R3\n"
262 "ADC R8, R8, R4\n"
263 "STMIA R12, {R5,R6}\n"
264 "SUB R0, R10, #1\n"
265 "MOV R1, R9\n"
266 "STMIA LR, {R7,R8}\n"
267 "BL sub_FFCC0B5C\n"
268 "CMP R10, #1\n"
269 "MLA R0, R9, R0, R0\n"
270 "BEQ loc_FFEEC0F4\n"
271 "SUB R3, R0, #1\n"
272 "MOV R3, R3,LSL#4\n"
273 "ADD R4, R11, #0x10\n"
274 "ADD R5, R11, #0x14\n"
275 "LDR R1, [R5,R3]\n"
276 "LDR R2, [R4,R3]\n"
277 "LDR LR, =0x62773130\n"
278 "ADD R2, R2, R1\n"
279 "MOV R3, R0,LSL#4\n"
280 "ADD R2, R2, #8\n"
281 "MOV R0, #0\n"
282 "ADD R12, R11, #0xC\n"
283 "ADD R1, R11, #8\n"
284 "STR LR, [R1,R3]\n"
285 "STR R0, [R12,R3]\n"
286 "STR R2, [R4,R3]\n"
287 "LDR R0, [SP]\n"
288 "STR R0, [R5,R3]\n"
289
290 "loc_FFEEC0F4:\n"
291
292 "LDR R2, =0x92090\n"
293 "LDR R3, =0x92144\n"
294 "LDR R1, [R2]\n"
295 "LDR R0, [R3]\n"
296 "ADD R3, R1, #9\n"
297 "CMP R3, R0\n"
298 "BLS loc_FFEEC130\n"
299 "LDR R2, =0x92140\n"
300 "LDR R3, [R2]\n"
301 "ADD R3, R3, R1\n"
302 "RSB R3, R0, R3\n"
303 "LDR R0, [SP,#0x10]\n"
304 "ADD R3, R3, #8\n"
305 "STR R3, [R0]\n"
306 "B loc_FFEEC13C\n"
307
308
309 "loc_FFEEC130:\n"
310 "ADD R3, R1, #8\n"
311 "LDR R1, [SP,#0x10]\n"
312 "STR R3, [R1]\n"
313
314 "loc_FFEEC13C:\n"
315 "LDR R2, [SP,#0x10]\n"
316 "LDR R1, =0x920EC\n"
317 "LDR R3, =0x92144\n"
318 "LDR R12, [R2]\n"
319 "LDR R2, [R1]\n"
320 "LDR R0, [R3]\n"
321 "ADD R3, R12, R2\n"
322 "CMP R3, R0\n"
323 "BLS loc_FFEEC190\n"
324 "LDR R2, [SP,#0xC]\n"
325 "RSB R0, R12, R0\n"
326 "STR R0, [R2]\n"
327 "LDR R2, =0x92140\n"
328 "LDR R3, [R1]\n"
329 "LDR R1, [R2]\n"
330 "RSB R3, R0, R3\n"
331 "LDR R0, [SP,#8]\n"
332 "STR R1, [R0]\n"
333 "LDR R1, [SP,#4]\n"
334 "STR R3, [R1]\n"
335 "B loc_FFEEC1AC\n"
336
337
338 "loc_FFEEC190:\n"
339 "LDR R0, [SP,#0xC]\n"
340 "STR R2, [R0]\n"
341 "LDR R1, [SP,#4]\n"
342 "MOV R3, #0\n"
343 "STR R3, [R1]\n"
344 "LDR R2, [SP,#8]\n"
345 "STR R3, [R2]\n"
346
347 "loc_FFEEC1AC:\n"
348 "LDR R0, =0x92090\n"
349 "LDR R1, =0x9208C\n"
350 "LDR R3, [R0]\n"
351 "LDR R2, [R1]\n"
352 "CMP R3, R2\n"
353 "BHI loc_FFEEC1D8\n"
354 "LDR R0, [SP,#0xC]\n"
355 "LDR R3, [R0]\n"
356 "ADD R3, R12, R3\n"
357 "CMP R2, R3\n"
358 "BCC loc_FFEEBF9C\n"
359
360 "loc_FFEEC1D8:\n"
361 "LDR R1, [SP,#8]\n"
362 "LDR R2, [R1]\n"
363 "CMP R2, #0\n"
364 "BEQ loc_FFEEC20C\n"
365 "LDR R3, =0x9208C\n"
366 "LDR R1, [R3]\n"
367 "CMP R2, R1\n"
368 "BHI loc_FFEEC20C\n"
369 "LDR R0, [SP,#4]\n"
370 "LDR R3, [R0]\n"
371 "ADD R3, R2, R3\n"
372 "CMP R1, R3\n"
373 "BCC loc_FFEEBF9C\n"
374
375 "loc_FFEEC20C:\n"
376
377 "LDR R3, =0x920EC\n"
378 "LDR R0, =0x920F0\n"
379 "LDR R2, [R3]\n"
380 "LDR R3, [R0,#4]\n"
381 "ADD R2, R2, #0x18\n"
382 "MOV R1, R2\n"
383 "MOV R2, #0\n"
384 "CMP R2, R3\n"
385 "BHI loc_FFEEC240\n"
386 "BNE loc_FFEEC248\n"
387 "LDR R3, [R0]\n"
388 "CMP R1, R3\n"
389 "BLS loc_FFEEC248\n"
390
391 "loc_FFEEC240:\n"
392
393 "MOV R0, #0x80000005\n"
394 "B loc_FFEEC3BC\n"
395
396
397 "loc_FFEEC248:\n"
398
399 "LDR R1, =0x920D4\n"
400 "LDR R0, =0x92120\n"
401 "LDR R3, [R1]\n"
402 "LDR R2, [R0]\n"
403 "ADD R3, R3, R2,LSL#4\n"
404 "ADD R3, R3, R3,LSL#2\n"
405 "LDR R12, =0x920F0\n"
406 "MOV R3, R3,LSL#1\n"
407 "ADD R3, R3, #0xA0\n"
408 "LDR R2, [R12,#4]\n"
409 "MOV R0, R3\n"
410 "MOV R1, #0\n"
411 "CMP R1, R2\n"
412 "BHI loc_FFEEC290\n"
413 "BNE loc_FFEEC2B4\n"
414 "LDR R3, [R12]\n"
415 "CMP R0, R3\n"
416 "BLS loc_FFEEC2B4\n"
417
418 "loc_FFEEC290:\n"
419 "LDR R4, =0x92108\n"
420 "LDR R1, [R4]\n"
421 "CMP R1, #0\n"
422 "BNE loc_FFEEC2B4\n"
423 "MOV R0, #0x3140\n"
424 "ADD R0, R0, #8\n"
425 "BL sub_FFEA2270\n"
426 "MOV R3, #1\n"
427 "STR R3, [R4]\n"
428
429 "loc_FFEEC2B4:\n"
430
431 "LDR R1, =0x920D4\n"
432 "LDR R0, =0x92120\n"
433 "LDR R2, [R1]\n"
434 "LDR R3, [R0]\n"
435 "LDR R0, =0x920F8\n"
436 "ADD R2, R2, R3,LSL#4\n"
437 "MVN R3, #0x9F\n"
438 "ADD R2, R2, R2,LSL#2\n"
439 "ADD R3, R3, #0x40000000\n"
440 "SUB R3, R3, R2,LSL#1\n"
441 "LDR R1, [R0,#4]\n"
442 "MOV R4, R3\n"
443 "MOV R5, #0\n"
444 "CMP R1, R5\n"
445 "BHI loc_FFEEC300\n"
446 "BNE loc_FFEEC324\n"
447 "LDR R3, [R0]\n"
448 "CMP R3, R4\n"
449 "BLS loc_FFEEC324\n"
450
451 "loc_FFEEC300:\n"
452 "LDR R4, =0x92108\n"
453 "LDR R1, [R4]\n"
454 "CMP R1, #0\n"
455 "BNE loc_FFEEC324\n"
456 "MOV R0, #0x3140\n"
457 "ADD R0, R0, #8\n"
458 "BL sub_FFEA2270\n"
459 "MOV R3, #1\n"
460 "STR R3, [R4]\n"
461
462 "loc_FFEEC324:\n"
463
464 "LDR R3, =0x92120\n"
465 "LDR R0, =0x920BC\n"
466 "LDR R2, [R3]\n"
467 "LDR R12, =0x920A4\n"
468 "LDR R1, [R0]\n"
469 "ADD R3, R2, R2,LSL#2\n"
470 "ADD R2, R2, R3,LSL#1\n"
471 "LDR R0, [R12]\n"
472 "RSB R1, R2, R1\n"
473 "CMP R0, R1\n"
474 "BLS loc_FFEEC374\n"
475 "LDR R4, =0x92108\n"
476 "LDR R1, [R4]\n"
477 "CMP R1, #0\n"
478 "BNE loc_FFEEC374\n"
479 "MOV R0, #0x3140\n"
480 "ADD R0, R0, #8\n"
481 "BL sub_FFEA2270\n"
482 "MOV R3, #1\n"
483 "STR R3, [R4]\n"
484
485 "loc_FFEEC374:\n"
486
487 "LDR R3, =0x920F8\n"
488 "LDR R12, =0x920EC\n"
489 "LDMIA R3, {R1,R2}\n"
490 "LDR R0, [R12]\n"
491 "MOV R4, #0\n"
492 "MOV R3, #0x18\n"
493 "ADDS R1, R1, R0\n"
494 "ADC R2, R2, #0\n"
495 "ADDS R1, R1, R3\n"
496 "ADC R2, R2, R4\n"
497 "CMP R2, #0\n"
498 "BHI loc_FFEEC3B0\n"
499 "BNE loc_FFEEC3B8\n"
500 "CMP R1, #0x40000000\n"
501
502 "B loc_FFEEC3B8\n"
503
504 "loc_FFEEC3B0:\n"
505 "MOV R0, #0x80000007\n"
506 "B loc_FFEEC3BC\n"
507
508
509 "loc_FFEEC3B8:\n"
510
511 "MOV R0, #0\n"
512
513 "loc_FFEEC3BC:\n"
514
515 "ADD SP, SP, #0x14\n"
516 "LDMFD SP!, {R4-R11,PC}\n"
517 );
518 }
519
520
521
522 void __attribute__((naked,noinline)) sub_FFEEAB9C_my(){
523 asm volatile(
524 "STMFD SP!, {R4-R11,LR}\n"
525 "LDR R5, =0x91D54\n"
526 "SUB SP, SP, #0x3C\n"
527 "LDR R3, [R5]\n"
528 "CMP R3, #3\n"
529 "MOV R4, R0\n"
530 "MOVEQ R3, #4\n"
531 "STREQ R3, [R5]\n"
532 "LDR R3, =0x91E14\n"
533 "MOV LR, PC\n"
534 "LDR PC, [R3]\n"
535 "LDR R2, [R5]\n"
536 "CMP R2, #4\n"
537 "BNE loc_FFEEAD74\n"
538 "ADD R0, SP, #0x38\n"
539 "ADD R1, SP, #0x34\n"
540 "ADD R2, SP, #0x30\n"
541 "ADD R3, SP, #0x2C\n"
542 "BL sub_FFEEBED4_my\n"
543 "CMP R0, #0\n"
544 "BNE loc_FFEEAC18\n"
545 "LDR R3, =0x91D40\n"
546 "LDR R2, [R3]\n"
547 "CMP R2, #1\n"
548 "BNE loc_FFEEAC2C\n"
549 "LDR R2, =0x91D98\n"
550 "LDR R1, =0x91D6C\n"
551 "LDR R12, [R2]\n"
552 "LDR R3, [R1]\n"
553 "CMP R12, R3\n"
554 "BCC loc_FFEEAC2C\n"
555
556 "loc_FFEEAC18:\n"
557 "BL sub_FFEEADC0\n"
558 "BL sub_FFEEAFC0\n"
559 "MOV R3, #5\n"
560 "STR R3, [R5]\n"
561 "B loc_FFEEAD74\n"
562
563 "loc_FFEEAC2C:\n"
564
565 "LDR R1, =0x91DA0\n"
566 "LDR R10, [R1]\n"
567 "LDR R1, =0x91DAC\n"
568 "LDR R2, [R4,#0xC]\n"
569 "LDMIB R4, {R0,R9}\n"
570 "ADD R4, SP, #0x24\n"
571 "LDR R8, [R1]\n"
572 "LDR R5, [SP,#0x34]\n"
573 "LDR R6, [SP,#0x30]\n"
574 "LDR R7, [SP,#0x2C]\n"
575 "STR R4, [SP,#0x20]\n"
576 "LDR R4, =0x91D44\n"
577 "ADD R12, SP, #0x28\n"
578 "MOV LR, #0\n"
579 "MOV R11, #1\n"
580 "LDR R3, [SP,#0x38]\n"
581 "STMEA SP, {R5-R7,R12}\n"
582 "STR R10, [SP,#0x10]\n"
583 "STR R8, [SP,#0x14]\n"
584 "STR LR, [SP,#0x18]\n"
585 "MOV R1, R9\n"
586 "STR R11, [R4]\n"
587 "STR R9, [SP,#0x1C]\n"
588 "BL sub_FFEEDFF0\n"
589 "LDR R3, =0x91C58\n"
590 "MOV R1, #0x3E8\n"
591 "LDR R0, [R3]\n"
592 "BL sub_FFE82EFC\n"
593 "CMP R0, #9\n"
594 "BNE loc_FFEEACB4\n"
595 "BL sub_FFEEC6E4\n"
596 "LDR R3, =0x91D54\n"
597 "LDR R0, =0xFFEEAB84\n"
598 "B loc_FFEEACCC\n"
599
600 "loc_FFEEACB4:\n"
601 "LDR R5, [SP,#0x24]\n"
602 "CMP R5, #0\n"
603 "BEQ loc_FFEEACD8\n"
604 "BL sub_FFEEC6E4\n"
605 "LDR R3, =0x91D54\n"
606 "LDR R0, =0xFFEEAB90\n"
607
608 "loc_FFEEACCC:\n"
609 "STR R11, [R3]\n"
610 "BL sub_FFEA6970\n"
611 "B loc_FFEEAD74\n"
612
613 "loc_FFEEACD8:\n"
614 "BL sub_FFEEE160\n"
615 "LDR R0, [SP,#0x38]\n"
616 "LDR R1, [SP,#0x28]\n"
617 "BL sub_FFEEC408\n"
618 "LDR R4, =0x91D98\n"
619 "LDR R3, [R4]\n"
620 "ADD R3, R3, #1\n"
621 "LDR R0, [SP,#0x28]\n"
622 "LDR R1, =0x91DAC\n"
623 "STR R3, [R4]\n"
624 "MOV R2, R5\n"
625 "BL sub_FFE60F10_my\n"
626 "LDR R3, =0x91DB8\n"
627 "LDR R1, [R4]\n"
628 "LDR R2, [R3]\n"
629 "LDR R12, =0x91DB4\n"
630 "MUL R0, R2, R1\n"
631 "LDR R1, [R12]\n"
632 "BL sub_FFCC0B5C\n"
633 "LDR R7, =0x91DB0\n"
634 "LDR R3, [R7]\n"
635 "MOV R4, R0\n"
636 "CMP R3, R4\n"
637 "BNE loc_FFEEAD4C\n"
638 "LDR R6, =0x91D48\n"
639 "LDR R3, [R6]\n"
640 "CMP R3, #1\n"
641 "BNE loc_FFEEAD68\n"
642 "B loc_FFEEAD50\n"
643
644 "loc_FFEEAD4C:\n"
645 "LDR R6, =0x91D48\n"
646
647 "loc_FFEEAD50:\n"
648 "LDR R3, =0x91DF8\n"
649 "MOV R0, R4\n"
650 "MOV LR, PC\n"
651 "LDR PC, [R3]\n"
652 "STR R5, [R6]\n"
653 "STR R4, [R7]\n"
654
655 "loc_FFEEAD68:\n"
656 "LDR R2, =0x91D44\n"
657 "MOV R3, #0\n"
658 "STR R3, [R2]\n"
659
660 "loc_FFEEAD74:\n"
661
662 "ADD SP, SP, #0x3C\n"
663 "LDMFD SP!, {R4-R11,PC}\n"
664
665
666 );
667 }
668
669
670 void __attribute__((naked,noinline)) movie_record_task(){
671
672 asm volatile(
673 "STMFD SP!, {R4,LR}\n"
674 "SUB SP, SP, #4\n"
675 "MOV R4, SP\n"
676 "B loc_FFEEA4C8\n"
677
678 "loc_FFEEA424:\n"
679 "LDR R3, =0x91D38\n"
680 "LDR R2, [R3]\n"
681 "CMP R2, #0\n"
682 "BNE loc_FFEEA4B4\n"
683 "SUB R3, R12, #2\n"
684 "CMP R3, #9\n"
685 "LDRLS PC, [PC,R3,LSL#2]\n"
686 "B loc_FFEEA4B4\n"
687
688 ".long loc_FFEEA474\n"
689 ".long loc_FFEEA48C\n"
690 ".long loc_FFEEA494\n"
691 ".long loc_FFEEA49C\n"
692 ".long loc_FFEEA47C\n"
693 ".long loc_FFEEA4A4\n"
694 ".long loc_FFEEA484\n"
695 ".long loc_FFEEA4B4\n"
696 ".long loc_FFEEA4AC\n"
697 ".long loc_FFEEA46C\n"
698
699 "loc_FFEEA46C:\n"
700
701 "BL sub_FFEEA564\n"
702 "B loc_FFEEA4B0\n"
703
704 "loc_FFEEA474:\n"
705
706 "BL unlock_optical_zoom\n"
707 "BL sub_FFEEA718\n"
708 "B loc_FFEEA4B0\n"
709
710 "loc_FFEEA47C:\n"
711
712 "BL sub_FFEEAB9C_my\n"
713 "B loc_FFEEA4B0\n"
714
715 "loc_FFEEA484:\n"
716
717 "BL sub_FFEEAFE4\n"
718 "B loc_FFEEA4B0\n"
719
720 "loc_FFEEA48C:\n"
721
722 "BL sub_FFEEAE48\n"
723 "B loc_FFEEA4B0\n"
724
725 "loc_FFEEA494:\n"
726
727 "BL sub_FFEEB154\n"
728 "B loc_FFEEA4B0\n"
729
730 "loc_FFEEA49C:\n"
731
732 "BL sub_FFEEB31C\n"
733 "B loc_FFEEA4B0\n"
734
735 "loc_FFEEA4A4:\n"
736
737 "BL sub_FFEEB06C\n"
738 "B loc_FFEEA4B0\n"
739
740 "loc_FFEEA4AC:\n"
741
742 "BL sub_FFEEAE98\n"
743
744 "loc_FFEEA4B0:\n"
745
746 "LDR R1, [SP]\n"
747
748 "loc_FFEEA4B4:\n"
749
750 "LDR R3, =0x91C68\n"
751 "MOV R2, #0\n"
752 "STR R2, [R1]\n"
753 "LDR R0, [R3]\n"
754 "BL sub_FFE8274C\n"
755
756 "loc_FFEEA4C8:\n"
757 "LDR R3, =0x91C64\n"
758 "MOV R1, R4\n"
759 "LDR R0, [R3]\n"
760 "MOV R2, #0\n"
761 "BL sub_FFE82334\n"
762 "LDR R0, [SP]\n"
763 "LDR R12, [R0]\n"
764 "CMP R12, #0xC\n"
765 "MOV R1, R0\n"
766 "BNE loc_FFEEA424\n"
767 "LDR R3, =0x91C60\n"
768 "LDR R0, [R3]\n"
769 "BL sub_FFE83104\n"
770 "BL sub_FFE838F8\n"
771 "ADD SP, SP, #4\n"
772 "LDMFD SP!, {R4,PC}\n"
773
774 );
775 }
776