This source file includes following definitions.
- change_video_tables
- set_quality
- movie_record_task
- sub_F8235678_my
- sub_F84315CC_my
- sub_F8235A14_my
1
2
3
4 #include "conf.h"
5
6 void change_video_tables(__attribute__ ((unused))int a, __attribute__ ((unused))int b) {}
7
8 void set_quality(int *x){
9 if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
10 }
11
12
13
14 void __attribute__((naked,noinline)) movie_record_task() {
15 asm volatile (
16 " STMFD SP!, {R2-R10,LR} \n"
17 " LDR R8, =sub_F8235A14_my \n"
18 " LDR R4, =0x9C78 \n"
19 " LDR R9, =0x65B \n"
20 " LDR R10, =0x2710 \n"
21 " MVN R7, #0 \n"
22 " MOV R5, #1 \n"
23 " MOV R6, #0 \n"
24
25 "loc_F8235E04:\n"
26 " LDR R0, [R4, #0x28] \n"
27 " MOV R2, #0 \n"
28 " ADD R1, SP, #4 \n"
29 " BL sub_0068F164 /*_ReceiveMessageQueue*/ \n"
30 " LDR R0, [R4, #0x30] \n"
31 " CMP R0, #0 \n"
32 " LDRNE R0, [R4, #0x10] \n"
33 " CMPNE R0, #2 \n"
34 " LDRNE R0, [R4, #0x44] \n"
35 " CMPNE R0, #6 \n"
36 " BNE loc_F8235F8C \n"
37 " LDR R0, [SP, #4] \n"
38 " LDR R1, [R0] \n"
39 " SUB R1, R1, #2 \n"
40 " CMP R1, #0xF \n"
41 " ADDCC PC, PC, R1, LSL#2 \n"
42 " B loc_F8235F8C \n"
43 " B loc_F8235ED4 \n"
44 " B loc_F8235EF8 \n"
45 " B loc_F8235F08 \n"
46 " B loc_F8235F10 \n"
47 " B loc_F8235F18 \n"
48 " B loc_F8235F20 \n"
49 " B loc_F8235EDC \n"
50 " B loc_F8235F4C \n"
51 " B loc_F8235F78 \n"
52 " B loc_F8235F80 \n"
53 " B loc_F8235EE8 \n"
54 " B loc_F8235F8C \n"
55 " B loc_F8235F88 \n"
56 " B loc_F8235EB0 \n"
57 " B loc_F8235E84 \n"
58
59 "loc_F8235E84:\n"
60 " STR R6, [R4, #0x40] \n"
61 " STR R6, [R4, #0x34] \n"
62 " STR R7, [R4, #0xE4] \n"
63 " STRH R6, [R4, #6] \n"
64 " STR R8, [R4, #0xCC] \n"
65 " LDR R0, [R4, #0x10] \n"
66 " ADD R0, R0, #1 \n"
67 " STR R0, [R4, #0x10] \n"
68 " MOV R0, #6 \n"
69 " STR R0, [R4, #0x44] \n"
70 " B loc_F8235ECC \n"
71
72 "loc_F8235EB0:\n"
73 " STR R6, [R4, #0x40] \n"
74 " STR R7, [R4, #0xE4] \n"
75 " STR R8, [R4, #0xCC] \n"
76 " LDR R0, [R4, #0x10] \n"
77 " ADD R0, R0, #1 \n"
78 " STR R0, [R4, #0x10] \n"
79 " STR R5, [R4, #0x44] \n"
80
81 "loc_F8235ECC:\n"
82 " STR R5, [R4, #8] \n"
83 " B loc_F8235F8C \n"
84
85 "loc_F8235ED4:\n"
86 );
87 if (conf.ext_video_time == 1)
88 {
89 asm volatile (
90 " BL sub_F8235678_my \n"
91 );
92 }
93 else
94 {
95 asm volatile (
96 " BL sub_F8235678 \n"
97 );
98 }
99 asm volatile (
100 " B loc_F8235F8C \n"
101
102 "loc_F8235EDC:\n"
103 " LDR R1, [R4, #0xCC] \n"
104 " BLX R1 \n"
105
106 " LDR R0, =video_compression_rate\n"
107 " BL set_quality\n"
108
109 " B loc_F8235F8C \n"
110
111 "loc_F8235EE8:\n"
112 " LDR R1, [R0, #0x18] \n"
113 " LDR R0, [R0, #4] \n"
114 " BL sub_F84330BC \n"
115 " B loc_F8235F8C \n"
116
117 "loc_F8235EF8:\n"
118 " LDR R0, [R4, #0x44] \n"
119 " CMP R0, #5 \n"
120 " STRNE R5, [R4, #0x34] \n"
121 " B loc_F8235F8C \n"
122
123 "loc_F8235F08:\n"
124 " BL sub_F8234BD0 \n"
125 " B loc_F8235F8C \n"
126
127 "loc_F8235F10:\n"
128 " BL sub_F8234AB8 \n"
129 " B loc_F8235F8C \n"
130
131 "loc_F8235F18:\n"
132 " BL sub_F8234770 \n"
133 " B loc_F8235F8C \n"
134
135 "loc_F8235F20:\n"
136 " LDR R1, [R4, #0x94] \n"
137 " LDR R0, =0x4840F640 \n"
138 " CMP R1, #0 \n"
139 " LDREQ R1, =0xF8234734 \n"
140 " LDREQ R0, [R4, #0x98] \n"
141 " BEQ loc_F8235F44 \n"
142 " BL sub_F8433D78 \n"
143 " LDR R1, =0xF8234734 \n"
144 " MOV R0, #0 \n"
145
146 "loc_F8235F44:\n"
147 " BL sub_F843221C \n"
148 " B loc_F8235F8C \n"
149
150 "loc_F8235F4C:\n"
151 " LDR R0, =0x141774 \n"
152 " LDR R0, [R0, #8] \n"
153 " CMP R0, #0 \n"
154 " LDRNE R2, =0xF82346BC \n"
155 " LDRNE R0, =0xF8234710 \n"
156 " MOVNE R3, #0 \n"
157 " MOVNE R1, R3 \n"
158 " BLNE sub_F807E8E4 \n"
159 " MOV R0, #3 \n"
160 " STR R0, [R4, #0x44] \n"
161 " B loc_F8235F8C \n"
162
163 "loc_F8235F78:\n"
164 " BL sub_F823463C \n"
165 " B loc_F8235F8C \n"
166
167 "loc_F8235F80:\n"
168 " BL sub_F82369E0 \n"
169 " B loc_F8235F8C \n"
170
171 "loc_F8235F88:\n"
172 " BL sub_F8236900 \n"
173
174 "loc_F8235F8C:\n"
175 " LDR R1, [SP, #4] \n"
176 " LDR R3, =0xF82342D4 /*'MovieRecorder.c'*/ \n"
177 " STR R6, [R1] \n"
178 " STR R9, [SP] \n"
179 " LDR R0, [R4, #0x2C] \n"
180 " MOV R2, R10 \n"
181 " BL sub_0068B044 /*_PostMessageQueueStrictly*/ \n"
182 " B loc_F8235E04 \n"
183 );
184 }
185
186
187
188 void __attribute__((naked,noinline)) sub_F8235678_my() {
189 asm volatile (
190 " STMFD SP!, {R0-R10,LR} \n"
191 " LDR R6, =0x9C78 \n"
192 " MOV R0, #0 \n"
193 " STR R0, [R6, #0x34] \n"
194 " STR R0, [R6, #0x38] \n"
195 " MOV R0, R6 \n"
196 " LDR R4, [R0, #0x58] \n"
197 " LDRH R1, [R6, #6] \n"
198 " MOV R0, #0x3E8 \n"
199 " MUL R0, R4, R0 \n"
200 " LDR R8, =0xFFF00 \n"
201 " CMP R1, #0 \n"
202 " MOV R2, #1 \n"
203 " BNE loc_F82356C0 \n"
204 " LDR R1, [R6, #0x80] \n"
205 " CMP R1, #0 \n"
206 " BNE loc_F82356D0 \n"
207 " B loc_F82356C8 \n"
208
209 "loc_F82356C0:\n"
210 " CMP R1, #3 \n"
211 " BNE loc_F82356D0 \n"
212
213 "loc_F82356C8:\n"
214 " STR R2, [R6, #0x48] \n"
215 " B loc_F82356DC \n"
216
217 "loc_F82356D0:\n"
218 " MOV R1, #0x3E8 \n"
219 " BL sub_006ACF94 \n"
220 " STR R0, [R6, #0x48] \n"
221
222 "loc_F82356DC:\n"
223 " LDR R5, =0x141774 \n"
224 " MOV R7, #2 \n"
225 " LDR R0, [R5, #8] \n"
226 " CMP R0, #0 \n"
227 " BEQ loc_F8235748 \n"
228 " CMP R4, #0x18 \n"
229 " MOV R0, #4 \n"
230 " BEQ loc_F8235734 \n"
231 " BGT loc_F823571C \n"
232 " CMP R4, #0xA \n"
233 " CMPNE R4, #0xF \n"
234 " STREQ R7, [R5, #0x14] \n"
235 " BEQ loc_F8235748 \n"
236 " CMP R4, #0x14 \n"
237 " BNE loc_F823573C \n"
238 " B loc_F8235734 \n"
239
240 "loc_F823571C:\n"
241 " CMP R4, #0x19 \n"
242 " CMPNE R4, #0x1E \n"
243 " BEQ loc_F8235734 \n"
244 " CMP R4, #0x3C \n"
245 " BNE loc_F823573C \n"
246 " MOV R0, #8 \n"
247
248 "loc_F8235734:\n"
249 " STR R0, [R5, #0x14] \n"
250 " B loc_F8235748 \n"
251
252 "loc_F823573C:\n"
253 " LDR R1, =0x74C \n"
254 " LDR R0, =0xF82342D4 /*'MovieRecorder.c'*/ \n"
255 " BL _DebugAssert \n"
256
257 "loc_F8235748:\n"
258 " LDR R0, [R6, #0x64] \n"
259 " CMP R0, #1 \n"
260 " BNE loc_F8235760 \n"
261 " BL sub_F83DCC60 \n"
262 " LDR R0, =0x14178C \n"
263 " BL sub_F842E544 \n"
264
265 "loc_F8235760:\n"
266 " LDR R2, =0x9C7A \n"
267 " LDR R0, [R6, #0xA4] \n"
268 " MOV R3, #2 \n"
269 " MOV R1, #0xAA \n"
270 " BL sub_F80D715C \n"
271 " LDR R2, =0x9C7C \n"
272 " LDR R0, [R6, #0xA4] \n"
273 " MOV R3, #2 \n"
274 " MOV R1, #0xA9 \n"
275 " BL sub_F80D715C \n"
276 " LDR R2, =0x9CC8 \n"
277 " LDR R0, [R6, #0xA4] \n"
278 " MOV R3, #4 \n"
279 " MOV R1, #0xA2 \n"
280 " BL sub_F80D715C \n"
281 " LDR R2, =0x9CCC \n"
282 " LDR R0, [R6, #0xA4] \n"
283 " MOV R3, #4 \n"
284 " MOV R1, #0xA3 \n"
285 " BL sub_F80D715C \n"
286 " LDR R0, [R6, #0x80] \n"
287 " CMP R0, #0 \n"
288 " LDRNE R2, =0x9D70 \n"
289 " MOVNE R1, #0 \n"
290 " MOVNE R0, #0xF \n"
291 " BLNE _exmem_ualloc \n"
292 " LDR R0, [R6, #0x4C] \n"
293 " LDR R4, =0x9D70 \n"
294 " LDR R9, =0x14175C \n"
295 " CMP R0, #1 \n"
296 " CMPNE R0, #2 \n"
297 " BNE loc_F8235894 \n"
298 " LDR R0, [R6, #0x80] \n"
299 " CMP R0, #0 \n"
300 " LDRNE R0, =0x483FC000 \n"
301 " STRNE R0, [R4] \n"
302 " BNE loc_F8235894 \n"
303 " LDR R1, =0x484B4600 \n"
304 " LDR R0, =0x3870600 \n"
305 " STR R1, [R4] \n"
306 " STR R0, [R4, #4] \n"
307 " LDMIA R9, {R0,R2} \n"
308 " MUL R0, R2, R0 \n"
309 " MOV R3, R0, LSL#1 \n"
310 " CMP R3, R8 \n"
311 " STR R3, [R6, #0x8C] \n"
312 " MOVCC R2, #0 \n"
313 " STR R1, [R6, #0x90] \n"
314 " BCC loc_F823585C \n"
315 " MOV R2, #0 \n"
316 " STMEA SP, {R1,R2,R8} \n"
317 " MOV R3, R2 \n"
318 " MOV R2, #9 \n"
319 " MOV R1, #5 \n"
320 " MOV R0, #0x16 \n"
321 " BL sub_F83D5600 \n"
322 " LDR R0, [R6, #0x8C] \n"
323 " MOV R2, #0 \n"
324 " SUB R3, R0, #0xF0000 \n"
325 " LDR R0, [R6, #0x90] \n"
326 " SUB R3, R3, #0xFF00 \n"
327 " ADD R1, R0, #0xF0000 \n"
328 " ADD R1, R1, #0xFF00 \n"
329
330 "loc_F823585C:\n"
331 " STMEA SP, {R1-R3} \n"
332 " MOV R3, #0 \n"
333 " MOV R2, #9 \n"
334 " MOV R1, #5 \n"
335 " MOV R0, #0x16 \n"
336 " BL sub_F83D5600 \n"
337 " LDR R1, [R4] \n"
338 " LDR R0, [R6, #0x8C] \n"
339 " ADD R1, R1, R0, LSL#1 \n"
340 " STR R1, [R4] \n"
341 " LDR R1, [R4, #4] \n"
342 " RSB R0, R0, #0 \n"
343 " ADD R0, R1, R0, LSL#1 \n"
344 " STR R0, [R4, #4] \n"
345
346 "loc_F8235894:\n"
347 " LDR R2, =0x141774 \n"
348 " LDR R3, =0xF8235644 \n"
349 " LDR R0, [R4, #4] \n"
350 " LDR R1, [R4] \n"
351 " STRD R2, [SP] \n"
352 " SUB R3, R2, #0x18 \n"
353 " MOV R2, R0 \n"
354 " LDR R0, [R6, #0x80] \n"
355 " BL sub_F84315CC_my \n"
356 " LDRD R0, [R6, #0xF0] \n"
357 " LDR R2, [R6, #0xA4] \n"
358 " BL sub_F8431C04 \n"
359 " LDR R3, =0x9CF0 \n"
360 " STR R3, [SP] \n"
361 " LDR R0, [R6, #0x64] \n"
362 " LDR R1, [R9, #8] \n"
363 " AND R2, R0, #0xFF \n"
364 " LDR R0, [R9] \n"
365 " SUB R3, R3, #4 \n"
366 " BL sub_F842E0A0 \n"
367 " LDRH R0, [R6, #6] \n"
368 " CMP R0, #2 \n"
369 " LDREQ R0, =0xF8235344 \n"
370 " STREQ R0, [R6, #0xCC] \n"
371 " LDR R0, [R6, #0x80] \n"
372 " CMP R0, #0 \n"
373 " LDREQ R1, =0xF8234F00 \n"
374 " STREQ R1, [R6, #0xCC] \n"
375 " LDR R2, [R6, #0x10] \n"
376 " LDR R1, =0xF87C2264 \n"
377 " CMP R2, #2 \n"
378 " BNE loc_F8235938 \n"
379 " LDR R0, [R6, #0x4C] \n"
380 " ADD R0, R1, R0, LSL#3 \n"
381 " LDR R1, [R9, #0xC] \n"
382 " LDR R0, [R0, R1, LSL#2] \n"
383 " BL sub_F83DB9EC \n"
384 " LDR R0, =0xF8234EB8 \n"
385 " MOV R1, #0 \n"
386 " BL sub_F83DBF78 \n"
387 " B loc_F8235970 \n"
388
389 "loc_F8235938:\n"
390 " CMP R0, #0 \n"
391 " LDR R0, [R6, #0x4C] \n"
392 " ADD R0, R1, R0, LSL#3 \n"
393 " LDR R1, [R9, #0xC] \n"
394 " LDR R0, [R0, R1, LSL#2] \n"
395 " BNE loc_F8235960 \n"
396 " LDR R1, [R6, #0x88] \n"
397 " BL sub_F83DC058 \n"
398 " BL sub_F83DC0DC \n"
399 " B loc_F8235970 \n"
400
401 "loc_F8235960:\n"
402 " BL sub_F83D9BD8 \n"
403 " LDR R0, =0xF8234EAC \n"
404 " MOV R1, #0 \n"
405 " BL sub_F83DA3E8 \n"
406
407 "loc_F8235970:\n"
408 " LDR R0, [R5, #8] \n"
409 " CMP R0, #0 \n"
410 " BEQ loc_F82359A4 \n"
411 " ADD R0, SP, #0xC \n"
412 " BL sub_F8432E24 \n"
413 " LDR R1, [R5, #0xC] \n"
414 " LDR R0, [SP, #0xC] \n"
415 " BL sub_F807EB50 \n"
416 " ADD R0, SP, #0xC \n"
417 " BL sub_F8432E24 \n"
418 " LDR R1, [R5, #0xC] \n"
419 " LDR R0, [SP, #0xC] \n"
420 " BL sub_F807EB50 \n"
421
422 "loc_F82359A4:\n"
423 " STR R7, [R6, #0x44] \n"
424 " LDMFD SP!, {R0-R10,PC} \n"
425 );
426 }
427
428
429
430 void __attribute__((naked,noinline)) sub_F84315CC_my() {
431 asm volatile (
432 " STMFD SP!, {R0-R11,LR} \n"
433 " MOV R9, R0 \n"
434 " LDR R0, [R3, #0x10] \n"
435 " SUB SP, SP, #4 \n"
436 " CMP R0, #0 \n"
437 " LDR R7, [SP, #0x38] \n"
438 " LDREQ R1, =0x3B7 \n"
439 " LDREQ R0, =0xF842EBB0 /*'MovWriter.c'*/ \n"
440 " MOV R6, #0 \n"
441 " MOV R4, R3 \n"
442 " MOV R5, R6 \n"
443 " BLEQ _DebugAssert \n"
444 " LDR R8, =0x13220 \n"
445 " CMP R9, #0 \n"
446 " MOV R11, #0 \n"
447 " STR R9, [R8, #0xA0] \n"
448 " MOVEQ R0, #1 \n"
449 " STRNE R11, [R8, #0xE8] \n"
450 " STREQ R0, [R8, #0xE8] \n"
451 " LDR R0, [R4] \n"
452 " LDR R3, =0x61A8 \n"
453 " STR R0, [R8, #0xF0] \n"
454 " LDR R0, [R4, #4] \n"
455 " LDR R1, =0x7530 \n"
456 " STR R0, [R8, #0xF4] \n"
457 " LDR R0, [R4, #0x10] \n"
458 " MOV R2, #0x18 \n"
459 " STR R0, [R8, #0x100] \n"
460 " LDR R9, [R4, #8] \n"
461 " LDR R0, =0x3E9 \n"
462 " CMP R9, #0xF \n"
463 " MOV R12, #0x3E8 \n"
464 " MOV R10, #0x1E \n"
465 " ADDCC PC, PC, R9, LSL#2 \n"
466 " B loc_F8431724 \n"
467 " B loc_F84316AC \n"
468 " B loc_F84316A4 \n"
469 " B loc_F8431694 \n"
470 " B loc_F8431700 \n"
471 " B loc_F8431710 \n"
472 " B loc_F8431724 \n"
473 " B loc_F8431724 \n"
474 " B loc_F8431724 \n"
475 " B loc_F8431724 \n"
476 " B loc_F84316CC \n"
477 " B loc_F84316C4 \n"
478 " B loc_F84316BC \n"
479 " B loc_F84316F8 \n"
480 " B loc_F84316F0 \n"
481 " B loc_F84316DC \n"
482
483 "loc_F8431694:\n"
484 " LDR R5, =0x5DC0 \n"
485 " STR R2, [R8, #0xF8] \n"
486 " STR R5, [R8, #0x154] \n"
487 " B loc_F84316B4 \n"
488
489 "loc_F84316A4:\n"
490 " MOV R5, R3 \n"
491 " B loc_F84316E0 \n"
492
493 "loc_F84316AC:\n"
494 " MOV R5, R1 \n"
495 " B loc_F84316D0 \n"
496
497 "loc_F84316B4:\n"
498 " STR R0, [R8, #0x158] \n"
499 " B loc_F8431730 \n"
500
501 "loc_F84316BC:\n"
502 " LDR R5, =0x5DC \n"
503 " B loc_F84316D0 \n"
504
505 "loc_F84316C4:\n"
506 " LDR R5, =0xBB8 \n"
507 " B loc_F84316D0 \n"
508
509 "loc_F84316CC:\n"
510 " LDR R5, =0x1770 \n"
511
512 "loc_F84316D0:\n"
513 " STR R1, [R8, #0x154] \n"
514 " STR R10, [R8, #0xF8] \n"
515 " B loc_F84316B4 \n"
516
517 "loc_F84316DC:\n"
518 " LDR R5, =0x4E2 \n"
519
520 "loc_F84316E0:\n"
521 " STR R2, [R8, #0xF8] \n"
522 " STR R3, [R8, #0x154] \n"
523 " STR R12, [R8, #0x158] \n"
524 " B loc_F8431730 \n"
525
526 "loc_F84316F0:\n"
527 " LDR R5, =0x9C4 \n"
528 " B loc_F84316E0 \n"
529
530 "loc_F84316F8:\n"
531 " LDR R5, =0x1388 \n"
532 " B loc_F84316E0 \n"
533
534 "loc_F8431700:\n"
535 " STR R1, [R8, #0x154] \n"
536 " LDR R5, =0x57600000 \n"
537 " MOV R1, #0xF0 \n"
538 " B loc_F843171C \n"
539
540 "loc_F8431710:\n"
541 " LDR R5, =0x28800000 \n"
542 " STR R1, [R8, #0x154] \n"
543 " MOV R1, #0x78 \n"
544
545 "loc_F843171C:\n"
546 " STR R1, [R8, #0xF8] \n"
547 " B loc_F84316B4 \n"
548
549 "loc_F8431724:\n"
550 " LDR R1, =0x411 \n"
551 " LDR R0, =0xF842EBB0 /*'MovWriter.c'*/ \n"
552 " BL _DebugAssert \n"
553
554 "loc_F8431730:\n"
555 " LDR R0, [R8, #0xF8] \n"
556 " LDR R1, =0x1C20 \n"
557 " MOV R0, R0, LSR#1 \n"
558 " STR R0, [R8, #0xFC] \n"
559 " LDR R0, [R7] \n"
560 " STR R0, [R8, #0x104] \n"
561 " LDRH R0, [R7, #0x10] \n"
562 " STR R0, [R8, #0x108] \n"
563 " LDR R0, [R7, #4] \n"
564 " STRH R0, [R8, #2] \n"
565 " LDR R0, [R7, #8] \n"
566 " STRH R0, [R8, #4] \n"
567 " LDR R0, [R7, #0x14] \n"
568 " STR R0, [R8, #0x10C] \n"
569 " LDR R0, [SP, #0x3C] \n"
570 " STR R0, [R8, #0x150] \n"
571 " LDR R0, [R8, #0xF0] \n"
572 " CMP R0, #0x140 \n"
573 " MOVEQ R0, #0x20000 \n"
574 " MOVEQ R6, #1 \n"
575 " STREQ R0, [R8, #0xC4] \n"
576 " BEQ loc_F84317C8 \n"
577 " CMP R0, #0x280 \n"
578 " LDREQ R0, =0x7A760 \n"
579 " MOVEQ R6, #2 \n"
580 " STREQ R0, [R8, #0xC4] \n"
581 " BEQ loc_F84317C8 \n"
582 " CMP R0, #0x500 \n"
583 " LDREQ R0, =0x11DA50 \n"
584 " LDR R1, =0x1C20 \n"
585 " MOVEQ R6, #4 \n"
586 " STREQ R0, [R8, #0xC4] \n"
587 " BEQ loc_F84317C8 \n"
588 " CMP R0, #0x780 \n"
589 " BNE loc_F84317D0 \n"
590
591 " MOV R0, #2097152 \n"
592 " MOV R6, #5 \n"
593 " STR R0, [R8, #0xC4] \n"
594
595 "loc_F84317C8:\n"
596 " STR R1, [R8, #0x58] \n"
597 " B loc_F84317DC \n"
598
599 "loc_F84317D0:\n"
600 " LDR R1, =0x439 \n"
601 " LDR R0, =0xF842EBB0 /*'MovWriter.c'*/ \n"
602 " BL _DebugAssert \n"
603
604 "loc_F84317DC:\n"
605 " LDR R9, [R4, #8] \n"
606 " CMP R9, #0xB \n"
607 " CMPNE R9, #0xA \n"
608 " CMPNE R9, #9 \n"
609 " BNE loc_F8431810 \n"
610 " LDR R0, [R8, #0xF0] \n"
611 " CMP R0, #0x500 \n"
612 " BNE loc_F8431810 \n"
613 " LDR R0, [R8, #0x58] \n"
614 " LDR R1, [R8, #0x158] \n"
615 " MUL R0, R5, R0 \n"
616 " BL sub_006ACF94 \n"
617 " B loc_F8431830 \n"
618
619 "loc_F8431810:\n"
620 " LDR R0, [R8, #0x58] \n"
621 " LDR R1, [R8, #0x158] \n"
622 " MUL R0, R5, R0 \n"
623 " BL sub_006ACF94 \n"
624 " MOV R1, #5 \n"
625 " BL sub_006ACF94 \n"
626 " ADD R0, R0, #1 \n"
627 " ADD R0, R0, R0, LSL#2 \n"
628
629 "loc_F8431830:\n"
630 " CMP R9, #0xB \n"
631 " CMPNE R9, #0xA \n"
632 " CMPNE R9, #9 \n"
633 " STR R0, [R8, #0x54] \n"
634 " BNE loc_F8431858 \n"
635 " LDR R1, [R8, #0x158] \n"
636 " MUL R0, R1, R0 \n"
637 " MOV R1, R5 \n"
638 " BL sub_006ACF94 \n"
639 " STR R0, [R8, #0x58] \n"
640
641 "loc_F8431858:\n"
642 " CMP R9, #3 \n"
643 " CMPNE R9, #4 \n"
644 " BNE loc_F8431890 \n"
645 " RSB R0, R5, R5, LSL#4 \n"
646 " STR R10, [R8, #0x58] \n"
647 " LDR R1, [R8, #0x158] \n"
648 " MOV R0, R0, LSL#1 \n"
649 " BL sub_006ACF94 \n"
650 " LDR R1, [R8, #0x100] \n"
651 " MOV R10, R1 \n"
652 " BL sub_006ACF94 \n"
653 " ADD R0, R0, #1 \n"
654 " MUL R0, R10, R0 \n"
655 " STR R0, [R8, #0x54] \n"
656
657 "loc_F8431890:\n"
658 " ADD R0, R5, R5, LSL#8 \n"
659 " LDR R1, [R8, #0x158] \n"
660 " RSB R0, R0, R0, LSL#3 \n"
661 " BL sub_006ACF94 \n"
662 " STR R0, [R8, #0x88] \n"
663 " LDR R0, [R4, #0xC] \n"
664 " CMP R0, #0 \n"
665 " MOVNE R0, #1 \n"
666 " STR R0, [SP] \n"
667 " LDR R5, [R7, #0xC] \n"
668 " MOV R0, R5, LSR#1 \n"
669 " STR R5, [R8, #0xAC] \n"
670 " STR R0, [R8, #0xB0] \n"
671 " LDR R0, [SP, #8] \n"
672 " ADD R0, R0, #3 \n"
673 " BIC R1, R0, #3 \n"
674 " STR R1, [R8, #0x114] \n"
675 " LDR R0, [R8, #0x54] \n"
676 " MOV R0, R0, LSL#2 \n"
677 " ADD R1, R1, R0 \n"
678 " STR R1, [R8, #0x118] \n"
679 " LDRH R7, [R8, #4] \n"
680 " LDR R2, [SP, #0xC] \n"
681 " LDR R3, [SP, #8] \n"
682 " CMP R7, #0 \n"
683 " ADD R10, R3, R2 \n"
684 " BEQ sub_F8431B5C \n"
685 " ADD R9, R1, R0 \n"
686 " STR R9, [R8, #0x11C] \n"
687 " LDR R1, [R8, #0xFC] \n"
688 " BL sub_006ACF94 \n"
689 " ADD R0, R0, R9 \n"
690 " ADD R0, R0, #0x1F \n"
691 " BIC R0, R0, #0x1F \n"
692 " STR R0, [R8, #0x120] \n"
693 " LDR R1, [R8, #0xE8] \n"
694 " CMP R1, #0 \n"
695 " BEQ sub_F84319F0 \n"
696 " LDR R2, [R8, #0xC4] \n"
697 " ADD R0, R0, R2 \n"
698 " STR R0, [R8, #0x2C] \n"
699 " ADD R0, R0, #0x20 \n"
700 " B sub_F84319B8 \n"
701 );
702 }
703
704
705
706 void __attribute__((naked,noinline)) sub_F8235A14_my() {
707 asm volatile (
708 " STMFD SP!, {R4-R8,LR} \n"
709 " SUB SP, SP, #0x48 \n"
710 " MOV R8, #0 \n"
711 " LDR R5, =0x9C78 \n"
712 " STR R8, [SP, #0x38] \n"
713 " STR R8, [SP, #0x30] \n"
714 " STR R8, [R5, #0xC4] \n"
715 " LDR R1, [R5, #0x44] \n"
716 " MOV R4, R0 \n"
717 " CMP R1, #3 \n"
718 " MOV R6, R8 \n"
719 " MOV R7, #1 \n"
720 " BNE loc_F8235A6C \n"
721 " LDR R0, [R5, #0xE4] \n"
722 " LDR R1, [R5, #0xE8] \n"
723 " CMP R0, R1 \n"
724 " BNE loc_F8235B8C \n"
725 " MOV R0, #4 \n"
726 " STR R0, [R5, #0x44] \n"
727 " MVN R0, #0 \n"
728 " STR R0, [R5, #0xE4] \n"
729 " B loc_F8235A74 \n"
730
731 "loc_F8235A6C:\n"
732 " CMP R1, #4 \n"
733 " BNE loc_F8235B8C \n"
734
735 "loc_F8235A74:\n"
736 " LDRH R0, [R5, #6] \n"
737 " CMP R0, #3 \n"
738 " BNE loc_F8235AAC \n"
739 " LDR R0, [R5, #0xC8] \n"
740 " CMP R0, #0 \n"
741 " LDREQ R1, =0x86B \n"
742 " LDREQ R0, =0xF82342D4 /*'MovieRecorder.c'*/ \n"
743 " BLEQ _DebugAssert \n"
744 " LDR R0, [R5, #0x6C] \n"
745 " LDR R1, [R5, #0xC8] \n"
746 " BL sub_006ACF94 \n"
747 " CMP R1, #0 \n"
748 " MOVNE R7, #0 \n"
749 " BNE loc_F8235AC8 \n"
750
751 "loc_F8235AAC:\n"
752 " ADD R3, SP, #0x30 \n"
753 " ADD R2, SP, #0x34 \n"
754 " ADD R1, SP, #0x38 \n"
755 " ADD R0, SP, #0x3C \n"
756 " BL sub_F8433278 \n"
757 " MOVS R8, R0 \n"
758 " BNE loc_F8235AE4 \n"
759
760 "loc_F8235AC8:\n"
761 " LDR R0, [R5, #0x34] \n"
762 " CMP R0, #1 \n"
763 " BNE loc_F8235B94 \n"
764 " LDR R0, [R5, #0x6C] \n"
765 " LDR R1, [R5, #0x48] \n"
766 " CMP R0, R1 \n"
767 " BCC loc_F8235B94 \n"
768
769 "loc_F8235AE4:\n"
770 " MOV R0, R8 \n"
771 " BL sub_F8234EC4 \n"
772 " BL sub_F82369E0 \n"
773 " LDR R2, [R5, #0x64] \n"
774 " ADD R3, SP, #0x40 \n"
775 " MVN R1, #1 \n"
776 " MOV R0, #0 \n"
777 " ADD R7, SP, #0x1C \n"
778 " STMIA R7, {R0-R3} \n"
779 " LDR R3, [R4, #0x1C] \n"
780 " LDR R1, [R5, #0x74] \n"
781 " LDR R2, [R5, #0x78] \n"
782 " ADD R0, SP, #0x44 \n"
783 " ADD R4, SP, #0xC \n"
784 " STMIA R4, {R0-R3} \n"
785 " MOV R3, #0 \n"
786 " MOV R1, #0x40 \n"
787 " STMEA SP, {R1,R3} \n"
788 " MOV R2, #0 \n"
789 " STR R3, [SP, #8] \n"
790 " LDR R3, =0x1417EC \n"
791 " MOV R1, R2 \n"
792 " MOV R0, R2 \n"
793 " BL sub_F83DA26C \n"
794 " LDR R0, [R5, #0x1C] \n"
795 " LDR R1, [R5, #0x60] \n"
796 " BL _TakeSemaphore \n"
797 " CMP R0, #9 \n"
798 " BNE loc_F8235B60 \n"
799
800 "loc_F8235B58:\n"
801 " MOV R1, #1 \n"
802 " B loc_F8235CB4 \n"
803
804 "loc_F8235B60:\n"
805 " LDR R0, [SP, #0x40] \n"
806 " CMP R0, #0 \n"
807 " BEQ loc_F8235B74 \n"
808
809 "loc_F8235B6C:\n"
810 " MOV R1, #1 \n"
811 " B loc_F8235CCC \n"
812
813 "loc_F8235B74:\n"
814 " MOV R0, #1 \n"
815 " BL sub_F83DA318 \n"
816 " BL sub_F83DA3C4 \n"
817 " MOV R0, #5 \n"
818 " STR R6, [R5, #0x34]! \n"
819 " STR R0, [R5, #0x10] \n"
820
821 "loc_F8235B8C:\n"
822 " ADD SP, SP, #0x48 \n"
823 " LDMFD SP!, {R4-R8,PC} \n"
824
825 "loc_F8235B94:\n"
826 " CMP R7, #1 \n"
827 " BNE loc_F8235D58 \n"
828 " MOV R0, #1 \n"
829 " STR R0, [R5, #0x38] \n"
830 " LDR R0, [R5, #0x6C] \n"
831 " LDR R8, [R4, #0xC] \n"
832 " CMP R0, #0 \n"
833 " LDRNE R7, [SP, #0x38] \n"
834 " LDRNE R12, [SP, #0x3C] \n"
835 " BNE loc_F8235C4C \n"
836 " LDR R0, [R4, #0x20] \n"
837 " LDR R2, [R5, #0x64] \n"
838 " ADD R3, SP, #0x40 \n"
839 " MVN R1, #0 \n"
840 " ADD R7, SP, #0x1C \n"
841 " STMIA R7, {R0-R3} \n"
842 " LDR R3, [R4, #0x1C] \n"
843 " LDR R1, [R5, #0x74] \n"
844 " LDR R2, [R5, #0x78] \n"
845 " ADD R0, SP, #0x44 \n"
846 " ADD R7, SP, #0xC \n"
847 " STMIA R7, {R0-R3} \n"
848 " LDR R1, [SP, #0x34] \n"
849 " LDR R2, [SP, #0x38] \n"
850 " LDR R3, [SP, #0x30] \n"
851 " STMFA SP, {R1,R3} \n"
852 " STR R2, [SP] \n"
853 " LDMIB R4, {R0,R1} \n"
854 " LDR R3, [SP, #0x3C] \n"
855 " MOV R2, R8 \n"
856 " BL sub_F83DA26C \n"
857 " LDR R0, [R5, #0x1C] \n"
858 " LDR R1, [R5, #0x60] \n"
859 " BL _TakeSemaphore \n"
860 " CMP R0, #9 \n"
861 " BEQ loc_F8235B58 \n"
862 " LDR R0, [SP, #0x40] \n"
863 " CMP R0, #0 \n"
864 " BNE loc_F8235B6C \n"
865 " MOV R0, #1 \n"
866 " BL sub_F83DA318 \n"
867 " LDR R0, [SP, #0x44] \n"
868 " LDR R1, [SP, #0x3C] \n"
869 " ADD R12, R1, R0 \n"
870 " LDR R1, [SP, #0x38] \n"
871 " SUB R7, R1, R0 \n"
872
873 "loc_F8235C4C:\n"
874 " LDR R0, [R4, #0x20] \n"
875 " LDR R1, [R5, #0x68] \n"
876 " LDR R2, [R5, #0x64] \n"
877 " ADD R3, SP, #0x40 \n"
878 " ADD LR, SP, #0x1C \n"
879 " STMIA LR, {R0-R3} \n"
880 " LDR R3, [R4, #0x1C] \n"
881 " LDR R1, [R5, #0x74] \n"
882 " LDR R2, [R5, #0x78] \n"
883 " ADD R0, SP, #0x44 \n"
884 " ADD LR, SP, #0xC \n"
885 " STMIA LR, {R0-R3} \n"
886 " LDR R2, [SP, #0x34] \n"
887 " LDR R3, [SP, #0x30] \n"
888 " STMFA SP, {R2,R3} \n"
889 " STR R7, [SP] \n"
890 " LDMIB R4, {R0,R1} \n"
891 " MOV R3, R12 \n"
892 " MOV R2, R8 \n"
893 " BL sub_F83DA26C \n"
894 " LDR R0, [R5, #0x1C] \n"
895 " LDR R1, [R5, #0x60] \n"
896 " BL _TakeSemaphore \n"
897 " CMP R0, #9 \n"
898 " BNE loc_F8235CBC \n"
899 " MOV R1, #0 \n"
900
901 "loc_F8235CB4:\n"
902 " MOV R0, #0x90000 \n"
903 " B loc_F8235CD0 \n"
904
905 "loc_F8235CBC:\n"
906 " LDR R0, [SP, #0x40] \n"
907 " CMP R0, #0 \n"
908 " BEQ loc_F8235CD8 \n"
909 " MOV R1, #0 \n"
910
911 "loc_F8235CCC:\n"
912 " MOV R0, #0xA0000 \n"
913
914 "loc_F8235CD0:\n"
915 " BL sub_F82352B8 \n"
916 " B loc_F8235B8C \n"
917
918 "loc_F8235CD8:\n"
919 " MOV R0, #0 \n"
920 " BL sub_F83DA318 \n"
921 " LDR R0, [SP, #0x3C] \n"
922 " LDR R1, [SP, #0x44] \n"
923 " BL sub_F84334F0 \n"
924 " LDR R0, [R5, #0x68] \n"
925 " LDR R3, =0x9CF0 \n"
926 " ADD R1, R0, #1 \n"
927 " STR R1, [R5, #0x68] \n"
928 " LDR R0, [SP, #0x44] \n"
929 " SUB R2, R3, #4 \n"
930 " BL sub_F842E25C \n"
931
932 " LDR R0, =video_compression_rate\n"
933 " BL set_quality\n"
934
935 " LDR R0, [R5, #0x64] \n"
936 " CMP R0, #1 \n"
937 " BNE loc_F8235D64 \n"
938 " ADD R0, SP, #0x2C \n"
939 " BL sub_F81E590C \n"
940 " LDR R1, =0x14175C \n"
941 " LDR R0, [R1, #4] \n"
942 " LDR R1, [R1] \n"
943 " SUB R2, R0, #0x400 \n"
944 " SUBS R2, R2, #0x38 \n"
945 " ADDEQ R0, R0, #8 \n"
946 " MOV R1, R1, LSR#4 \n"
947 " MOV R0, R0, LSR#4 \n"
948 " MUL R1, R0, R1 \n"
949 " LDR R0, [SP, #0x2C] \n"
950 " BL sub_006ACF94 \n"
951 " LDR R1, =0x14178C \n"
952 " STR R0, [SP, #0x2C] \n"
953 " BL sub_F842E598 \n"
954 " B loc_F8235D64 \n"
955
956 "loc_F8235D58:\n"
957 " LDRH R0, [R5, #6] \n"
958 " CMP R0, #3 \n"
959 " BNE loc_F8235B8C \n"
960
961 "loc_F8235D64:\n"
962 " LDR R0, [R5, #0x6C] \n"
963 " ADD R0, R0, #1 \n"
964 " STR R0, [R5, #0x6C] \n"
965 " LDRH R1, [R5, #6] \n"
966 " CMP R1, #3 \n"
967 " LDRNE R1, [R5, #0x54] \n"
968 " MULNE R0, R1, R0 \n"
969 " LDRNE R1, [R5, #0x50] \n"
970 " BNE loc_F8235DA4 \n"
971 " LDR R1, [R5, #0x58] \n"
972 " CMP R1, #0x19 \n"
973 " LDRNE R1, =0x3E9 \n"
974 " MOVEQ R1, #0x3E8 \n"
975 " MUL R0, R1, R0 \n"
976 " LDRNE R1, =0x1770 \n"
977 " LDREQ R1, =0x1388 \n"
978
979 "loc_F8235DA4:\n"
980 " BL sub_006ACF94 \n"
981 " MOV R4, R0 \n"
982 " BL sub_F8433BAC \n"
983 " LDR R0, [R5, #0x7C] \n"
984 " CMP R0, R4 \n"
985 " BNE loc_F8235DC8 \n"
986 " LDR R0, [R5, #0x3C] \n"
987 " CMP R0, #1 \n"
988 " BNE loc_F8235DDC \n"
989
990 "loc_F8235DC8:\n"
991 " LDR R1, [R5, #0xA8] \n"
992 " MOV R0, R4 \n"
993 " BLX R1 \n"
994 " STR R4, [R5, #0x7C] \n"
995 " STR R6, [R5, #0x3C] \n"
996
997 "loc_F8235DDC:\n"
998 " STR R6, [R5, #0x38] \n"
999 " B loc_F8235B8C \n"
1000 );
1001 }