This source file includes following definitions.
- change_video_tables
- movie_record_task
- sub_FFEE6E70_my
- sub_FFEE81A8_my
- sub_FFE617C8_my
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)) movie_record_task(){
19 asm volatile(
20 "STMFD SP!, {R4,LR}\n"
21 "SUB SP, SP, #4\n"
22 "MOV R4, SP\n"
23 "B loc_FFEE679C\n"
24 "loc_FFEE66F8:\n"
25 "LDR R3, =0x9BAE0\n"
26 "LDR R2, [R3]\n"
27 "CMP R2, #0\n"
28 "BNE loc_FFEE6788\n"
29 "SUB R3, R12, #2\n"
30 "CMP R3, #9\n"
31 "LDRLS PC, [PC,R3,LSL#2]\n"
32 "B loc_FFEE6788\n"
33 ".long loc_FFEE6748\n"
34 ".long loc_FFEE6760\n"
35 ".long loc_FFEE6768\n"
36 ".long loc_FFEE6770\n"
37 ".long loc_FFEE6750\n"
38 ".long loc_FFEE6778\n"
39 ".long loc_FFEE6758\n"
40 ".long loc_FFEE6788\n"
41 ".long loc_FFEE6780\n"
42 ".long loc_FFEE6740\n"
43 "loc_FFEE6740:\n"
44
45 "BL sub_FFEE6838\n"
46 "B loc_FFEE6784\n"
47 "loc_FFEE6748:\n"
48
49 "BL unlock_optical_zoom\n"
50 "BL sub_FFEE69EC\n"
51 "B loc_FFEE6784\n"
52 "loc_FFEE6750:\n"
53
54 "BL sub_FFEE6E70_my\n"
55 "B loc_FFEE6784\n"
56 "loc_FFEE6758:\n"
57
58 "BL sub_FFEE72B8\n"
59 "B loc_FFEE6784\n"
60 "loc_FFEE6760:\n"
61
62 "BL sub_FFEE711C\n"
63 "B loc_FFEE6784\n"
64 "loc_FFEE6768:\n"
65
66 "BL sub_FFEE7428\n"
67 "B loc_FFEE6784\n"
68 "loc_FFEE6770:\n"
69
70 "BL sub_FFEE75F0\n"
71 "B loc_FFEE6784\n"
72 "loc_FFEE6778:\n"
73
74 "BL sub_FFEE7340\n"
75 "B loc_FFEE6784\n"
76 "loc_FFEE6780:\n"
77
78 "BL sub_FFEE716C\n"
79 "loc_FFEE6784:\n"
80
81 "LDR R1, [SP]\n"
82 "loc_FFEE6788:\n"
83
84 "LDR R3, =0x9BA10\n"
85 "MOV R2, #0\n"
86 "STR R2, [R1]\n"
87 "LDR R0, [R3]\n"
88 "BL sub_FFE82E14\n"
89 "loc_FFEE679C:\n"
90 "LDR R3, =0x9BA0C\n"
91 "MOV R1, R4\n"
92 "LDR R0, [R3]\n"
93 "MOV R2, #0\n"
94 "BL sub_FFE829FC\n"
95 "LDR R0, [SP]\n"
96 "LDR R12, [R0]\n"
97 "CMP R12, #0xC\n"
98 "MOV R1, R0\n"
99 "BNE loc_FFEE66F8\n"
100 "LDR R3, =0x9BA08\n"
101 "LDR R0, [R3]\n"
102 "BL sub_FFE837CC\n"
103 "BL sub_FFE83FC0\n"
104 "ADD SP, SP, #4\n"
105 "LDMFD SP!, {R4,PC}\n"
106 );
107 }
108
109
110
111 void __attribute__((naked,noinline)) sub_FFEE6E70_my(){
112 asm volatile(
113 "STMFD SP!, {R4-R11,LR}\n"
114 "LDR R5, =0x9BAFC\n"
115 "SUB SP, SP, #0x3C\n"
116 "LDR R3, [R5]\n"
117 "CMP R3, #3\n"
118 "MOV R4, R0\n"
119 "MOVEQ R3, #4\n"
120 "STREQ R3, [R5]\n"
121 "LDR R3, =0x9BBBC\n"
122 "MOV LR, PC\n"
123 "LDR PC, [R3]\n"
124 "LDR R2, [R5]\n"
125 "CMP R2, #4\n"
126 "BNE loc_FFEE7048\n"
127 "ADD R0, SP, #0x38\n"
128 "ADD R1, SP, #0x34\n"
129 "ADD R2, SP, #0x30\n"
130 "ADD R3, SP, #0x2c\n"
131 "BL sub_FFEE81A8_my\n"
132 "CMP R0, #0\n"
133 "BNE loc_FFEE6EEC\n"
134 "LDR R3, =0x9BAE8\n"
135 "LDR R2, [R3]\n"
136 "CMP R2, #1\n"
137 "BNE loc_FFEE6F00\n"
138 "LDR R2, =0x9BB40\n"
139 "LDR R1, =0x9BB14\n"
140 "LDR R12, [R2]\n"
141 "LDR R3, [R1]\n"
142 "CMP R12, R3\n"
143 "BCC loc_FFEE6F00\n"
144 "loc_FFEE6EEC:\n"
145 "BL sub_FFEE7094\n"
146 "BL sub_FFEE7294\n"
147 "MOV R3, #5\n"
148 "STR R3, [R5]\n"
149 "B loc_FFEE7048\n"
150 "loc_FFEE6F00:\n"
151 "LDR R1, =0x9BB48\n"
152 "LDR R10, [R1]\n"
153 "LDR R1, =0x9BB54\n"
154 "LDR R2, [R4,#0xC]\n"
155 "LDMIB R4, {R0,R9}\n"
156 "ADD R4, SP, #0x24\n"
157 "LDR R8, [R1]\n"
158 "LDR R5, [SP,#0x34]\n"
159 "LDR R6, [SP,#0x30]\n"
160 "LDR R7, [SP,#0x2c]\n"
161 "STR R4, [SP,#0x20]\n"
162 "LDR R4, =0x9BAEC\n"
163 "ADD R12, SP, #0x28\n"
164 "MOV LR, #0\n"
165 "MOV R11, #1\n"
166 "LDR R3, [SP,#0x38]\n"
167 "STMEA SP, {R5-R7,R12}\n"
168 "STR R10, [SP,#0x10]\n"
169 "STR R8, [SP,#0x14]\n"
170 "STR LR, [SP,#0x18]\n"
171 "MOV R1, R9\n"
172 "STR R11, [R4]\n"
173 "STR R9, [SP,#0x1c]\n"
174 "BL sub_FFEEA150\n"
175 "LDR R3, =0x9BA00\n"
176 "MOV R1, #0x3E8\n"
177 "LDR R0, [R3]\n"
178 "BL sub_FFE835C4\n"
179 "CMP R0, #9\n"
180 "BNE loc_FFEE6F88\n"
181 "BL sub_FFEE89B8\n"
182 "LDR R3, =0x9BAFC\n"
183 "LDR R0, =0xFFEE6E58\n"
184 "B loc_FFEE6FA0\n"
185 "loc_FFEE6F88:\n"
186 "LDR R5, [SP,#0x24]\n"
187 "CMP R5, #0\n"
188 "BEQ loc_FFEE6FAC\n"
189 "BL sub_FFEE89B8\n"
190 "LDR R3, =0x9BAFC\n"
191 "LDR R0, =0xFFEE6E64\n"
192 "loc_FFEE6FA0:\n"
193 "STR R11, [R3]\n"
194 "BL sub_FFEA5060\n"
195 "B loc_FFEE7048\n"
196 "loc_FFEE6FAC:\n"
197 "BL sub_FFEEA2C0\n"
198 "LDR R0, [SP,#0x38]\n"
199 "LDR R1, [SP,#0x28]\n"
200 "BL sub_FFEE86DC\n"
201 "LDR R4, =0x9BB40\n"
202 "LDR R3, [R4]\n"
203 "ADD R3, R3, #1\n"
204 "LDR R0, [SP,#0x28]\n"
205 "LDR R1, =0x9BB54\n"
206 "STR R3, [R4]\n"
207 "MOV R2, R5\n"
208 "BL sub_FFE617C8_my\n"
209 "LDR R3, =0x9BB60\n"
210 "LDR R1, [R4]\n"
211 "LDR R2, [R3]\n"
212 "LDR R12, =0x9BB5C\n"
213 "MUL R0, R2, R1\n"
214 "LDR R1, [R12]\n"
215 "BL sub_FFCBC550\n"
216 "LDR R7, =0x9BB58\n"
217 "LDR R3, [R7]\n"
218 "MOV R4, R0\n"
219 "CMP R3, R4\n"
220 "BNE loc_FFEE7020\n"
221 "LDR R6, =0x9BAF0\n"
222 "LDR R3, [R6]\n"
223 "CMP R3, #1\n"
224 "BNE loc_FFEE703C\n"
225 "B loc_FFEE7024\n"
226 "loc_FFEE7020:\n"
227 "LDR R6, =0x9BAF0\n"
228 "loc_FFEE7024:\n"
229 "LDR R3, =0x9BBA0\n"
230 "MOV R0, R4\n"
231 "MOV LR, PC\n"
232 "LDR PC, [R3]\n"
233 "STR R5, [R6]\n"
234 "STR R4, [R7]\n"
235 "loc_FFEE703C:\n"
236 "LDR R2, =0x9BAEC\n"
237 "MOV R3, #0\n"
238 "STR R3, [R2]\n"
239 "loc_FFEE7048:\n"
240 "ADD SP, SP, #0x3C\n"
241 "LDMFD SP!, {R4-R11,PC}\n"
242 );
243 }
244
245
246 void __attribute__((naked,noinline)) sub_FFEE81A8_my(){
247 asm volatile(
248 "STMFD SP!, {R4-R11,LR}\n"
249 "LDR R5, =0x9BE4C\n"
250 "SUB SP, SP, #0x14\n"
251 "LDR LR, [R5]\n"
252 "LDR R12, =0x9BE64\n"
253 "ADD LR, LR, #1\n"
254 "LDR R4, [R12]\n"
255 "STR LR, [R5]\n"
256 "LDR R12, =0x9BEE4\n"
257 "STR R0, [SP,#0x10]\n"
258 "STR R1, [SP,#0xC]\n"
259 "STR R2, [SP,#8]\n"
260 "STR R3, [SP,#4]\n"
261 "CMP LR, R4\n"
262 "LDR R11, [R12]\n"
263 "MOVHI R0, #0x80000001\n"
264 "BHI loc_FFEE8690\n"
265 "LDR R3, =0x9BEC8\n"
266 "MOV R0, LR\n"
267 "LDR R1, [R3]\n"
268 "BL sub_FFCBC5E8\n"
269 "CMP R0, #1\n"
270 "BNE loc_FFEE83C8\n"
271 "LDR R0, =0x9BEEC\n"
272 "LDR R1, =0x9BE38\n"
273 "LDR R3, [R0]\n"
274 "LDR R2, [R1]\n"
275 "CMP R3, R2\n"
276 "LDREQ R3, =0x9BEE8\n"
277 "LDREQ R5, [R3]\n"
278 "MOVNE R5, R2\n"
279 "LDR R3, =0x9BE4C\n"
280 "LDR R2, =0x9BEC8\n"
281 "LDR R0, [R3]\n"
282 "LDR R1, [R2]\n"
283 "BL sub_FFCBC550\n"
284 "LDR R3, =0x9BE40\n"
285 "ADD R0, R0, #1\n"
286 "AND R0, R0, #1\n"
287 "STR R5, [R3,R0,LSL#2]\n"
288 "LDR R3, =0x9BE34\n"
289 "LDR R2, [R3]\n"
290 "CMP R5, R2\n"
291 "BHI loc_FFEE8278\n"
292 "LDR R4, =0x9BE84\n"
293 "LDR R3, [R4]\n"
294 "ADD R3, R5, R3\n"
295 "ADD R3, R3, #8\n"
296 "CMP R2, R3\n"
297 "BCS loc_FFEE827C\n"
298 "loc_FFEE8270:\n"
299 "MOV R0, #0x80000003\n"
300 "B loc_FFEE8690\n"
301 "loc_FFEE8278:\n"
302 "LDR R4, =0x9BE84\n"
303 "loc_FFEE827C:\n"
304 "LDR R3, [R4]\n"
305 "LDR R2, =0x9BEEC\n"
306 "ADD R1, R5, R3\n"
307 "LDR R3, [R2]\n"
308 "ADD R2, R1, #8\n"
309 "CMP R2, R3\n"
310 "BLS loc_FFEE82C8\n"
311 "LDR R2, =0x9BEE8\n"
312 "LDR R0, =0x9BE34\n"
313 "RSB R3, R3, R1\n"
314 "LDR R1, [R2]\n"
315 "ADD R3, R3, #8\n"
316 "LDR R2, [R0]\n"
317 "ADD R1, R1, R3\n"
318 "CMP R2, R1\n"
319 "BCC loc_FFEE8270\n"
320 "LDR R3, =0x9BE38\n"
321 "STR R1, [R3]\n"
322 "B loc_FFEE82D0\n"
323 "loc_FFEE82C8:\n"
324 "LDR R3, =0x9BE38\n"
325 "STR R2, [R3]\n"
326 "loc_FFEE82D0:\n"
327 "LDR R3, [R4]\n"
328 "LDR R12, =0x9BE98\n"
329 "ADD R3, R3, #0x18\n"
330 "LDR R2, [R12,#4]\n"
331 "MOV R0, R3\n"
332 "MOV R1, #0\n"
333 "CMP R1, R2\n"
334 "BHI loc_FFEE8514\n"
335 "BNE loc_FFEE8300\n"
336 "LDR R3, [R12]\n"
337 "CMP R0, R3\n"
338 "BHI loc_FFEE8514\n"
339 "loc_FFEE8300:\n"
340 "LDR R4, [R4]\n"
341 "LDR LR, =0x9BEA0\n"
342 "STR R4, [SP]\n"
343 "LDR R12, =0x9BE98\n"
344 "LDR R3, =0x9BE4C\n"
345 "LDMIA LR, {R7,R8}\n"
346 "LDMIA R12, {R5,R6}\n"
347 "LDR R10, [R3]\n"
348 "LDR R2, =0x9BEC8\n"
349 "MOV R3, R4\n"
350 "MOV R4, #0\n"
351 "ADDS R7, R7, R3\n"
352 "ADC R8, R8, R4\n"
353 "LDR R9, [R2]\n"
354 "SUBS R5, R5, R3\n"
355 "SBC R6, R6, R4\n"
356 "MVN R2, #0\n"
357 "MVN R1, #0x17\n"
358 "ADDS R5, R5, R1\n"
359 "MOV R4, #0\n"
360 "MOV R3, #0x18\n"
361 "ADC R6, R6, R2\n"
362 "ADDS R7, R7, R3\n"
363 "ADC R8, R8, R4\n"
364 "STMIA R12, {R5,R6}\n"
365 "SUB R0, R10, #1\n"
366 "MOV R1, R9\n"
367 "STMIA LR, {R7,R8}\n"
368 "BL sub_FFCBC550\n"
369 "CMP R10, #1\n"
370 "MLA R0, R9, R0, R0\n"
371 "BEQ loc_FFEE83C8\n"
372 "SUB R3, R0, #1\n"
373 "MOV R3, R3,LSL#4\n"
374 "ADD R4, R11, #0x10\n"
375 "ADD R5, R11, #0x14\n"
376 "LDR R1, [R5,R3]\n"
377 "LDR R2, [R4,R3]\n"
378 "LDR LR, =0x62773130\n"
379 "ADD R2, R2, R1\n"
380 "MOV R3, R0,LSL#4\n"
381 "ADD R2, R2, #8\n"
382 "MOV R0, #0\n"
383 "ADD R12, R11, #0xC\n"
384 "ADD R1, R11, #8\n"
385 "STR LR, [R1,R3]\n"
386 "STR R0, [R12,R3]\n"
387 "STR R2, [R4,R3]\n"
388 "LDR R0, [SP]\n"
389 "STR R0, [R5,R3]\n"
390 "loc_FFEE83C8:\n"
391 "LDR R2, =0x9BE38\n"
392 "LDR R3, =0x9BEEC\n"
393 "LDR R1, [R2]\n"
394 "LDR R0, [R3]\n"
395 "ADD R3, R1, #9\n"
396 "CMP R3, R0\n"
397 "BLS loc_FFEE8404\n"
398 "LDR R2, =0x9BEE8\n"
399 "LDR R3, [R2]\n"
400 "ADD R3, R3, R1\n"
401 "RSB R3, R0, R3\n"
402 "LDR R0, [SP,#0x10]\n"
403 "ADD R3, R3, #8\n"
404 "STR R3, [R0]\n"
405 "B loc_FFEE8410\n"
406 "loc_FFEE8404:\n"
407 "ADD R3, R1, #8\n"
408 "LDR R1, [SP,#0x10]\n"
409 "STR R3, [R1]\n"
410 "loc_FFEE8410:\n"
411 "LDR R2, [SP,#0x10]\n"
412 "LDR R1, =0x9BE94\n"
413 "LDR R3, =0x9BEEC\n"
414 "LDR R12, [R2]\n"
415 "LDR R2, [R1]\n"
416 "LDR R0, [R3]\n"
417 "ADD R3, R12, R2\n"
418 "CMP R3, R0\n"
419 "BLS loc_FFEE8464\n"
420 "LDR R2, [SP,#0xC]\n"
421 "RSB R0, R12, R0\n"
422 "STR R0, [R2]\n"
423 "LDR R2, =0x9BEE8\n"
424 "LDR R3, [R1]\n"
425 "LDR R1, [R2]\n"
426 "RSB R3, R0, R3\n"
427 "LDR R0, [SP,#8]\n"
428 "STR R1, [R0]\n"
429 "LDR R1, [SP,#4]\n"
430 "STR R3, [R1]\n"
431 "B loc_FFEE8480\n"
432 "loc_FFEE8464:\n"
433 "LDR R0, [SP,#0xC]\n"
434 "STR R2, [R0]\n"
435 "LDR R1, [SP,#04]\n"
436 "MOV R3, #0\n"
437 "STR R3, [R1]\n"
438 "LDR R2, [SP,#8]\n"
439 "STR R3, [R2]\n"
440 "loc_FFEE8480:\n"
441 "LDR R0, =0x9BE38\n"
442 "LDR R1, =0x9BE34\n"
443 "LDR R3, [R0]\n"
444 "LDR R2, [R1]\n"
445 "CMP R3, R2\n"
446 "BHI loc_FFEE84AC\n"
447 "LDR R0, [SP,#0xC]\n"
448 "LDR R3, [R0]\n"
449 "ADD R3, R12, R3\n"
450 "CMP R2, R3\n"
451 "BCC loc_FFEE8270\n"
452 "loc_FFEE84AC:\n"
453 "LDR R1, [SP,#8]\n"
454 "LDR R2, [R1]\n"
455 "CMP R2, #0\n"
456 "BEQ loc_FFEE84E0\n"
457 "LDR R3, =0x9BE34\n"
458 "LDR R1, [R3]\n"
459 "CMP R2, R1\n"
460 "BHI loc_FFEE84E0\n"
461 "LDR R0, [SP,#4]\n"
462 "LDR R3, [R0]\n"
463 "ADD R3, R2, R3\n"
464 "CMP R1, R3\n"
465 "BCC loc_FFEE8270\n"
466 "loc_FFEE84E0:\n"
467 "LDR R3, =0x9BE94\n"
468 "LDR R0, =0x9BE98\n"
469 "LDR R2, [R3]\n"
470 "LDR R3, [R0,#4]\n"
471 "ADD R2, R2, #0x18\n"
472 "MOV R1, R2\n"
473 "MOV R2, #0\n"
474 "CMP R2, R3\n"
475 "BHI loc_FFEE8514\n"
476 "BNE loc_FFEE851C\n"
477 "LDR R3, [R0]\n"
478 "CMP R1, R3\n"
479 "BLS loc_FFEE851C\n"
480 "loc_FFEE8514:\n"
481 "MOV R0, #0x80000005\n"
482 "B loc_FFEE8690\n"
483 "loc_FFEE851C:\n"
484 "LDR R1, =0x9BE7C\n"
485 "LDR R0, =0x9BEC8\n"
486 "LDR R3, [R1]\n"
487 "LDR R2, [R0]\n"
488 "ADD R3, R3, R2,LSL#4\n"
489 "ADD R3, R3, R3,LSL#2\n"
490 "LDR R12, =0x9BE98\n"
491 "MOV R3, R3,LSL#1\n"
492 "ADD R3, R3, #0xA0\n"
493 "LDR R2, [R12,#4]\n"
494 "MOV R0, R3\n"
495 "MOV R1, #0\n"
496 "CMP R1, R2\n"
497 "BHI loc_FFEE8564\n"
498 "BNE loc_FFEE8588\n"
499 "LDR R3, [R12]\n"
500 "CMP R0, R3\n"
501 "BLS loc_FFEE8588\n"
502 "loc_FFEE8564:\n"
503 "LDR R4, =0x9BEB0\n"
504 "LDR R1, [R4]\n"
505 "CMP R1, #0\n"
506 "BNE loc_FFEE8588\n"
507 "MOV R0, #0x3140\n"
508 "BL sub_FFEA0960\n"
509 "MOV R3, #1\n"
510 "STR R3, [R4]\n"
511 "loc_FFEE8588:\n"
512 "LDR R1, =0x9BE7C\n"
513 "LDR R0, =0x9BEC8\n"
514 "LDR R2, [R1]\n"
515 "LDR R3, [R0]\n"
516 "LDR R0, =0x9BEA0\n"
517 "ADD R2, R2, R3,LSL#4\n"
518 "MVN R3, #0x9F\n"
519 "ADD R2, R2, R2,LSL#2\n"
520 "ADD R3, R3, #0x40000000\n"
521 "SUB R3, R3, R2,LSL#1\n"
522 "LDR R1, [R0,#4]\n"
523 "MOV R4, R3\n"
524 "MOV R5, #0\n"
525 "CMP R1, R5\n"
526 "BHI loc_FFEE85D4\n"
527 "BNE loc_FFEE85F8\n"
528 "LDR R3, [R0]\n"
529 "CMP R3, R4\n"
530 "BLS loc_FFEE85F8\n"
531 "loc_FFEE85D4:\n"
532 "LDR R4, =0x9BEB0\n"
533 "LDR R1, [R4]\n"
534 "CMP R1, #0\n"
535 "BNE loc_FFEE85F8\n"
536 "MOV R0, #0x3140\n"
537 "BL sub_FFEA0960\n"
538 "MOV R3, #1\n"
539 "STR R3, [R4]\n"
540 "loc_FFEE85F8:\n"
541 "LDR R3, =0x9BEC8\n"
542 "LDR R0, =0x9BE64\n"
543 "LDR R2, [R3]\n"
544 "LDR R12, =0x9BE4C\n"
545 "LDR R1, [R0]\n"
546 "ADD R3, R2, R2,LSL#2\n"
547 "ADD R2, R2, R3,LSL#1\n"
548 "LDR R0, [R12]\n"
549 "RSB R1, R2, R1\n"
550 "CMP R0, R1\n"
551 "BLS loc_FFEE8648\n"
552 "LDR R4, =0x9BEB0\n"
553 "LDR R1, [R4]\n"
554 "CMP R1, #0\n"
555 "BNE loc_FFEE8648\n"
556 "MOV R0, #0x3140\n"
557 "BL sub_FFEA0960\n"
558 "MOV R3, #1\n"
559 "STR R3, [R4]\n"
560 "loc_FFEE8648:\n"
561 "LDR R3, =0x9BEA0\n"
562 "LDR R12, =0x9BE94\n"
563 "LDMIA R3, {R1,R2}\n"
564 "LDR R0, [R12]\n"
565 "MOV R4, #0\n"
566 "MOV R3, #0x18\n"
567 "ADDS R1, R1, R0\n"
568 "ADC R2, R2, #0\n"
569 "ADDS R1, R1, R3\n"
570 "ADC R2, R2, R4\n"
571 "CMP R2, #0\n"
572 "BHI loc_FFEE8684\n"
573 "BNE loc_FFEE868C\n"
574 "CMP R1, #0x40000000\n"
575
576
577 "B loc_FFEE868C\n"
578
579 "loc_FFEE8684:\n"
580 "MOV R0, #0x80000007\n"
581 "B loc_FFEE8690\n"
582 "loc_FFEE868C:\n"
583
584 "MOV R0, #0\n"
585 "loc_FFEE8690:\n"
586
587 "ADD SP, SP, #0x14\n"
588 "LDMFD SP!, {R4-R11,PC}\n"
589 );
590 }
591
592
593
594
595 void __attribute__((naked,noinline)) sub_FFE617C8_my(){
596 asm volatile(
597 "CMP R2, #1\n"
598 "STMFD SP!, {R4-R7,LR}\n"
599 "MOV R6, R0\n"
600 "MOV R7, R1\n"
601 "MOVEQ R3, #0x79\n"
602 "STREQ R3, [R7]\n"
603 "LDMEQFD SP!, {R4-R7,PC}\n"
604 "LDR R12, =0x77E1C\n"
605 "LDR R0, [R12]\n"
606 "LDR R3, =0x77E24\n"
607 "CMP R0, #0\n"
608 "LDR R1, [R3]\n"
609 "BEQ loc_FFE61810\n"
610 "LDR R2, =0x77E28\n"
611 "LDR R3, [R2]\n"
612 "CMP R3, #1\n"
613 "BNE loc_FFE61824\n"
614 "B loc_FFE61814\n"
615 "loc_FFE61810:\n"
616 "LDR R2, =0x77E28\n"
617 "loc_FFE61814:\n"
618 "MOV R3, #0\n"
619 "STR R3, [R2]\n"
620 "STR R6, [R12]\n"
621 "B loc_FFE618DC\n"
622 "loc_FFE61824:\n"
623 "LDR R2, =0x77E20\n"
624 "LDR R3, [R2]\n"
625 "LDR R5, =table1\n"
626 "ADD R3, R3, R3,LSL#1\n"
627 "MOV LR, R3,LSL#2\n"
628 "LDR R2, [R5,LR]\n"
629 "LDR R4, =table2\n"
630 "RSB R12, R2, R0\n"
631 "LDR R3, [R4,LR]\n"
632 "CMP R12, #0\n"
633 "RSB R0, R3, R0\n"
634 "BLE loc_FFE61888\n"
635 "ADD R3, R5, #4\n"
636 "LDR R2, [R3,LR]\n"
637 "CMP R2, R12\n"
638 "ADDGE R1, R1, #1\n"
639 "BGE loc_FFE6187C\n"
640 "ADD R3, R5, #8\n"
641 "LDR R2, [R3,LR]\n"
642 "CMP R2, R12\n"
643 "ADDGE R1, R1, #2\n"
644 "ADDLT R1, R1, #3\n"
645 "loc_FFE6187C:\n"
646
647
648 "CMP R1, #0x1A\n"
649 "MOVGE R1, #0x1A\n"
650
651 "B loc_FFE618C0\n"
652 "loc_FFE61888:\n"
653 "CMP R0, #0\n"
654 "BGE loc_FFE618C0\n"
655 "ADD R3, R4, #4\n"
656 "LDR R2, [R3,LR]\n"
657 "CMP R2, R0\n"
658 "SUBLE R1, R1, #1\n"
659 "BLE loc_FFE618B8\n"
660 "ADD R3, R4, #8\n"
661 "LDR R2, [R3,LR]\n"
662 "CMP R2, R0\n"
663 "SUBLE R1, R1, #2\n"
664 "SUBGT R1, R1, #3\n"
665 "loc_FFE618B8:\n"
666 "CMP R1, #0\n"
667 "MOVLT R1, #0\n"
668 "loc_FFE618C0:\n"
669
670 "LDR R0, =0x77E24\n"
671 "LDR R3, [R0]\n"
672 "CMP R1, R3\n"
673 "LDRNE R2, =0x77E28\n"
674 "MOVNE R3, #1\n"
675 "STRNE R1, [R0]\n"
676 "STRNE R3, [R2]\n"
677 "loc_FFE618DC:\n"
678 "LDR R3, =0x77E24\n"
679 "LDR R2, =CompressionRateTable\n"
680 "LDR R1, [R3]\n"
681 "LDR R0, =0x77E1C\n"
682 "LDR R3, [R2,R1,LSL#2]\n"
683
684 "LDR R1, =video_mode\n"
685 "LDR R1, [R1]\n"
686 "LDR R1, [R1]\n"
687 "CMP R1, #1\n"
688 "LDREQ R1, =video_quality\n"
689 "LDREQ R1, [R1]\n"
690 "LDREQ R3, [R1]\n"
691
692 "STR R6, [R0]\n"
693 "STR R3, [R7]\n"
694 "BL mute_on_zoom\n"
695 "LDMFD SP!, {R4-R7,PC}\n"
696 );
697 }
698