This source file includes following definitions.
- sub_FF93DDF4_my
- sub_FF8662E0_my
- capt_seq_task
- exp_drv_task
- sub_FF8A6FE0_my
- sub_FF898DC8_my
1 #include "lolevel.h"
2 #include "platform.h"
3 #include "core.h"
4 #include "conf.h"
5
6 static long *nrflag = (long*)0x93C8;
7
8 #include "../../../generic/capt_seq.c"
9
10 void __attribute__((naked,noinline)) sub_FF93DDF4_my() {
11 asm volatile (
12 " STMFD SP!, {R1-R7,LR}\n"
13 " MOV R4, R0\n"
14 " BL sub_FF93EA40\n"
15 " MVN R1, #0\n"
16 " BL sub_FF86E0B8\n"
17 " MOV R2, #4\n"
18 " ADD R1, SP, #4\n"
19 " MOV R0, #0x8A\n"
20 " BL sub_FF876358\n"
21 " TST R0, #1\n"
22 " LDRNE R1, =0x373\n"
23 " LDRNE R0, =0xFF93DDC0\n"
24 " BLNE sub_FF81B1CC\n"
25 " LDR R7, =0x1B2C8\n"
26 " LDR R6, =0x1B208\n"
27 " LDRSH R1, [R7,#0xE]\n"
28 " LDR R0, [R6,#0x88]\n"
29 " BL sub_FF9016DC\n"
30 " BL sub_FF84CDCC\n"
31 " LDR R3, =0x93CC\n"
32 " STRH R0, [R4,#0x94]\n"
33 " STR R3, [SP]\n"
34 " MOV R1, R0\n"
35 " LDRH R0, [R6,#0x5C]\n"
36 " LDRSH R2, [R7,#0xC]\n"
37 " SUB R3, R3, #4\n"
38 " BL sub_FF93F038\n"
39 " BL wait_until_remote_button_is_released\n"
40 " BL capt_seq_hook_set_nr\n"
41 " B sub_FF93DE60\n"
42 );
43 }
44
45 void __attribute__((naked,noinline)) sub_FF8662E0_my() {
46 asm volatile (
47 " STMFD SP!, {R4-R6,LR}\n"
48 " LDR R4, [R0,#0xC]\n"
49 " LDR R6, =0x1B208\n"
50 " LDR R0, [R4,#8]\n"
51 " MOV R5, #0\n"
52 " ORR R0, R0, #1\n"
53 " STR R0, [R4,#8]\n"
54 " LDR R0, [R6,#0x24]\n"
55 " CMP R0, #0\n"
56 " MOVEQ R0, #2\n"
57 " BLEQ sub_FF86004C\n"
58 " BL sub_FF866800\n"
59 " LDR R0, [R6,#0x24]\n"
60 " CMP R0, #0\n"
61 " BNE loc_FF866390\n"
62 " MOV R0, #0\n"
63 " BL sub_FF93E8DC\n"
64 " MOV R0, R4\n"
65 " BL sub_FF866B50\n"
66 " MOV R0, R4\n"
67 " BL sub_FF93C9A4\n"
68 " CMP R0, #0\n"
69 " BEQ loc_FF866360\n"
70 " BL sub_FF93E91C\n"
71 " MOV R0, R4\n"
72 " BL sub_FF93CA88\n"
73 " TST R0, #1\n"
74 " MOVNE R2, R4\n"
75 " LDMNEFD SP!, {R4-R6,LR}\n"
76 " MOVNE R1, #1\n"
77 " BNE sub_FF8643C4\n"
78 " B loc_FF86636C\n"
79 "loc_FF866360:\n"
80 " MOV R0, R4\n"
81 " BL sub_FF93CA24\n"
82 " BL sub_FF93E91C\n"
83 "loc_FF86636C:\n"
84 " MOV R0, R4\n"
85 " BL sub_FF8659AC\n"
86 " MOV R0, R4\n"
87 " BL sub_FF93DCB0\n"
88 " BL sub_FF93E76C\n"
89 " MOV R0, R4\n"
90 " BL sub_FF93DDF4_my\n"
91 " MOV R5, R0\n"
92 " B loc_FF8663A0\n"
93 "loc_FF866390:\n"
94 " LDR R0, =0x54EC\n"
95 " LDR R0, [R0,#4]\n"
96 " CMP R0, #0\n"
97 " MOVNE R5, #0x1D\n"
98 "loc_FF8663A0:\n"
99 " BL capt_seq_hook_raw_here\n"
100 " BL sub_FF8686F0\n"
101 " BL sub_FF868738\n"
102 " BL sub_FF868778\n"
103 " MOV R2, R4\n"
104 " MOV R1, #1\n"
105 " MOV R0, R5\n"
106 " BL sub_FF8643C4\n"
107 " BL sub_FF93E04C\n"
108 " CMP R0, #0\n"
109 " LDRNE R0, [R4,#8]\n"
110 " ORRNE R0, R0, #0x2000\n"
111 " STRNE R0, [R4,#8]\n"
112 " LDMFD SP!, {R4-R6,PC}\n"
113 );
114 }
115
116 void __attribute__((naked,noinline)) capt_seq_task() {
117 asm volatile (
118 " STMFD SP!, {R3-R9,LR}\n"
119 " LDR R6, =0x54EC\n"
120 " LDR R4, =0x1B208\n"
121 " MOV R9, #1\n"
122 " MOV R7, #0\n"
123 "loc_FF865F20:\n"
124 " LDR R0, [R6,#0xC]\n"
125 " MOV R2, #0\n"
126 " MOV R1, SP\n"
127 " BL sub_FF82746C\n"
128 " TST R0, #1\n"
129 " BEQ loc_FF865F4C\n"
130 " LDR R1, =0x539\n"
131 " LDR R0, =0xFF865A28\n"
132 " BL sub_FF81B1CC\n"
133 " BL sub_FF81B184\n"
134 " LDMFD SP!, {R3-R9,PC}\n"
135 "loc_FF865F4C:\n"
136 " LDR R0, [SP]\n"
137 " LDR R1, [R0]\n"
138 " CMP R1, #0x20\n"
139 " ADDLS PC, PC, R1,LSL#2\n"
140 " B loc_FF8661BC\n"
141 " B loc_FF865FE4\n"
142 " B loc_FF866048\n"
143 " B loc_FF866050\n"
144 " B loc_FF866068\n"
145 " B loc_FF86605C\n"
146 " B loc_FF866070\n"
147 " B loc_FF866078\n"
148 " B loc_FF866080\n"
149 " B loc_FF8660D8\n"
150 " B loc_FF866100\n"
151 " B loc_FF8660E4\n"
152 " B loc_FF8660F0\n"
153 " B loc_FF8660F8\n"
154 " B loc_FF866108\n"
155 " B loc_FF866110\n"
156 " B loc_FF866118\n"
157 " B loc_FF866120\n"
158 " B loc_FF866128\n"
159 " B loc_FF866130\n"
160 " B loc_FF866138\n"
161 " B loc_FF866140\n"
162 " B loc_FF866148\n"
163 " B loc_FF866150\n"
164 " B loc_FF866158\n"
165 " B loc_FF866164\n"
166 " B loc_FF86616C\n"
167 " B loc_FF866178\n"
168 " B loc_FF866180\n"
169 " B loc_FF866188\n"
170 " B loc_FF866190\n"
171 " B loc_FF866198\n"
172 " B loc_FF8661A4\n"
173 " B loc_FF8661C8\n"
174 "loc_FF865FE4:\n"
175
176 " BL sub_FF866810\n"
177
178 " STMFD SP!, {R1-R12,LR}\n"
179 " BL captseq_hack_override_active\n"
180 " LDMFD SP!, {R1-R12,LR}\n"
181 " STR R0,[SP,#-4]!\n"
182 " BL shooting_expo_param_override\n"
183 " BL sub_FF863F08\n"
184 " LDR R0,[SP],#4\n"
185 " CMP R0, #1\n"
186 " MOVEQ R0, #0\n"
187 " STREQ R0, [R4,#0x24]\n"
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206 " LDR R0, [R4,#0x24]\n"
207 " CMP R0, #0\n"
208 " BEQ loc_FF8661C8\n"
209 " BL sub_FF865700\n"
210 " MOV R5, R0\n"
211 " LDR R0, [R4,#0x24]\n"
212 " CMP R0, #0\n"
213 " BEQ loc_FF86602C\n"
214 " MOV R0, #0xC\n"
215 " BL sub_FF869DCC\n"
216 " TST R0, #1\n"
217 " STRNE R9, [R6,#4]\n"
218 " LDRNE R0, [R5,#8]\n"
219 " ORRNE R0, R0, #0x40000000\n"
220 " STRNE R0, [R5,#8]\n"
221 " BNE loc_FF8661C8\n"
222 "loc_FF86602C:\n"
223 " MOV R0, R5\n"
224 " BL sub_FF8659AC\n"
225 " MOV R0, R5\n"
226 " BL sub_FF93DDF4\n"
227 " TST R0, #1\n"
228 " STRNE R9, [R6,#4]\n"
229 " B loc_FF8661C8\n"
230 "loc_FF866048:\n"
231
232 " BL sub_FF8662E0_my\n"
233 " B loc_FF866060\n"
234 "loc_FF866050:\n"
235
236 " MOV R0, #1\n"
237 " BL sub_FF866A28\n"
238 " B loc_FF8661C8\n"
239 "loc_FF86605C:\n"
240
241 " BL sub_FF866474\n"
242 "loc_FF866060:\n"
243 " STR R7, [R4,#0x24]\n"
244 " B loc_FF8661C8\n"
245 "loc_FF866068:\n"
246
247 " BL sub_FF8667F0\n"
248 " B loc_FF866060\n"
249 "loc_FF866070:\n"
250
251 " BL sub_FF8667F8\n"
252 " B loc_FF8661C8\n"
253 "loc_FF866078:\n"
254
255 " BL sub_FF866948\n"
256 " B loc_FF8660DC\n"
257 "loc_FF866080:\n"
258
259 " LDR R5, [R0,#0xC]\n"
260 " BL sub_FF866800\n"
261 " MOV R0, R5\n"
262 " BL sub_FF93CD94\n"
263 " TST R0, #1\n"
264 " MOV R8, R0\n"
265 " BNE loc_FF8660C0\n"
266 " BL sub_FF8764E8\n"
267 " STR R0, [R5,#0x18]\n"
268 " MOV R0, R5\n"
269 " BL sub_FF93DCB0\n"
270 " MOV R0, R5\n"
271 " BL sub_FF93E0BC\n"
272 " MOV R8, R0\n"
273 " LDR R0, [R5,#0x18]\n"
274 " BL sub_FF8766FC\n"
275 "loc_FF8660C0:\n"
276 " BL sub_FF8667F0\n"
277 " MOV R2, R5\n"
278 " MOV R1, #9\n"
279 " MOV R0, R8\n"
280 " BL sub_FF8643C4\n"
281 " B loc_FF8661C8\n"
282 "loc_FF8660D8:\n"
283
284 " BL sub_FF8669A8\n"
285 "loc_FF8660DC:\n"
286 " BL sub_FF863F08\n"
287 " B loc_FF8661C8\n"
288 "loc_FF8660E4:\n"
289
290 " LDR R0, [R4,#0x54]\n"
291 " BL sub_FF866DBC\n"
292 " B loc_FF8661C8\n"
293 "loc_FF8660F0:\n"
294
295 " BL sub_FF86706C\n"
296 " B loc_FF8661C8\n"
297 "loc_FF8660F8:\n"
298
299 " BL sub_FF8670FC\n"
300 " B loc_FF8661C8\n"
301 "loc_FF866100:\n"
302
303 " BL sub_FF8667F0\n"
304 " B loc_FF8661C8\n"
305 "loc_FF866108:\n"
306
307 " BL sub_FF93CFC0\n"
308 " B loc_FF8661C8\n"
309 "loc_FF866110:\n"
310
311 " BL sub_FF93D1A8\n"
312 " B loc_FF8661C8\n"
313 "loc_FF866118:\n"
314
315 " BL sub_FF93D238\n"
316 " B loc_FF8661C8\n"
317 "loc_FF866120:\n"
318
319 " BL sub_FF93D2EC\n"
320 " B loc_FF8661C8\n"
321 "loc_FF866128:\n"
322
323 " BL sub_FF93D4EC\n"
324 " B loc_FF8661C8\n"
325 "loc_FF866130:\n"
326
327 " BL sub_FF93D544\n"
328 " B loc_FF8661C8\n"
329 "loc_FF866138:\n"
330
331 " MOV R0, #0\n"
332 " B loc_FF86615C\n"
333 "loc_FF866140:\n"
334
335 " BL sub_FF93D704\n"
336 " B loc_FF8661C8\n"
337 "loc_FF866148:\n"
338
339 " BL sub_FF93D794\n"
340 " B loc_FF8661C8\n"
341 "loc_FF866150:\n"
342
343 " BL sub_FF93D854\n"
344 " B loc_FF8661C8\n"
345 "loc_FF866158:\n"
346
347 " MOV R0, #1\n"
348 "loc_FF86615C:\n"
349 " BL sub_FF93D5CC\n"
350 " B loc_FF8661C8\n"
351 "loc_FF866164:\n"
352
353 " BL sub_FF866BA8\n"
354 " B loc_FF8661C8\n"
355 "loc_FF86616C:\n"
356
357 " BL sub_FF866C48\n"
358 " BL sub_FF8249F4\n"
359 " B loc_FF8661C8\n"
360 "loc_FF866178:\n"
361
362 " BL sub_FF93D3A8\n"
363 " B loc_FF8661C8\n"
364 "loc_FF866180:\n"
365
366 " BL sub_FF93D414\n"
367 " B loc_FF8661C8\n"
368 "loc_FF866188:\n"
369
370 " BL sub_FF868688\n"
371 " B loc_FF8661C8\n"
372 "loc_FF866190:\n"
373
374 " BL sub_FF8686F0\n"
375 " B loc_FF8661C8\n"
376 "loc_FF866198:\n"
377
378 " BL sub_FF86874C\n"
379 " BL sub_FF86870C\n"
380 " B loc_FF8661C8\n"
381 "loc_FF8661A4:\n"
382
383 " MOV R0, #1\n"
384 " BL sub_FF93E8DC\n"
385 " LDRH R0, [R4,#0x8C]\n"
386 " CMP R0, #3\n"
387 " BLNE sub_FF868948\n"
388 " B loc_FF8661C8\n"
389 "loc_FF8661BC:\n"
390
391 " LDR R1, =0x65E\n"
392 " LDR R0, =0xFF865A28\n"
393 " BL sub_FF81B1CC\n"
394 "loc_FF8661C8:\n"
395
396
397 " LDR R0, [SP]\n"
398 " LDR R1, [R0,#4]\n"
399 " LDR R0, [R6,#8]\n"
400 " BL sub_FF86E084\n"
401 " LDR R5, [SP]\n"
402 " LDR R0, [R5,#8]\n"
403 " CMP R0, #0\n"
404 " LDREQ R1, =0x11D\n"
405 " LDREQ R0, =0xFF865A28\n"
406 " BLEQ sub_FF81B1CC\n"
407 " STR R7, [R5,#8]\n"
408 " B loc_FF865F20\n"
409 );
410 }
411
412
413
414
415 void __attribute__((naked,noinline)) exp_drv_task() {
416 asm volatile (
417 " STMFD SP!, {R4-R8,LR} \n"
418 " SUB SP, SP, #0x20 \n"
419 " LDR R8, =0xBB8 \n"
420 " LDR R7, =0x6BFC \n"
421 " LDR R5, =0x2049C \n"
422 " MOV R0, #0 \n"
423 " ADD R6, SP, #0x10 \n"
424 " STR R0, [SP, #0xC] \n"
425
426 "loc_FF8A9574:\n"
427 " LDR R0, [R7, #0x20] \n"
428 " MOV R2, #0 \n"
429 " ADD R1, SP, #0x1C \n"
430 " BL sub_FF82746C /*_ReceiveMessageQueue*/ \n"
431 " LDR R0, [SP, #0xC] \n"
432 " CMP R0, #1 \n"
433 " BNE loc_FF8A95BC \n"
434 " LDR R0, [SP, #0x1C] \n"
435 " LDR R0, [R0] \n"
436 " CMP R0, #0x13 \n"
437 " CMPNE R0, #0x14 \n"
438 " CMPNE R0, #0x15 \n"
439 " BEQ loc_FF8A96D8 \n"
440 " CMP R0, #0x27 \n"
441 " BEQ loc_FF8A96B0 \n"
442 " ADD R1, SP, #0xC \n"
443 " MOV R0, #0 \n"
444 " BL sub_FF8A9504 \n"
445
446 "loc_FF8A95BC:\n"
447 " LDR R0, [SP, #0x1C] \n"
448 " LDR R1, [R0] \n"
449 " CMP R1, #0x2C \n"
450 " BNE loc_FF8A95EC \n"
451 " LDR R0, [SP, #0x1C] \n"
452 " BL sub_FF8AA7C4 \n"
453 " LDR R0, [R7, #0x1C] \n"
454 " MOV R1, #1 \n"
455 " BL sub_FF86E084 /*_SetEventFlag*/ \n"
456 " BL _ExitTask \n"
457 " ADD SP, SP, #0x20 \n"
458 " LDMFD SP!, {R4-R8,PC} \n"
459
460 "loc_FF8A95EC:\n"
461 " CMP R1, #0x2B \n"
462 " BNE loc_FF8A9608 \n"
463 " LDR R2, [R0, #0x88]! \n"
464 " LDR R1, [R0, #4] \n"
465 " MOV R0, R1 \n"
466 " BLX R2 \n"
467 " B loc_FF8A9B44 \n"
468
469 "loc_FF8A9608:\n"
470 " CMP R1, #0x25 \n"
471 " BNE loc_FF8A9658 \n"
472 " LDR R0, [R7, #0x1C] \n"
473 " MOV R1, #0x80 \n"
474 " BL sub_FF86E0B8 /*_ClearEventFlag*/ \n"
475 " LDR R0, =0xFF8A5FA4 \n"
476 " MOV R1, #0x80 \n"
477 " BL sub_FF9300AC \n"
478 " LDR R0, [R7, #0x1C] \n"
479 " MOV R2, R8 \n"
480 " MOV R1, #0x80 \n"
481 " BL sub_FF86DFC4 /*_WaitForAllEventFlag*/ \n"
482 " TST R0, #1 \n"
483 " LDRNE R1, =0xD36 \n"
484 " BNE loc_FF8A969C \n"
485
486 "loc_FF8A9644:\n"
487 " LDR R1, [SP, #0x1C] \n"
488 " LDR R0, [R1, #0x8C] \n"
489 " LDR R1, [R1, #0x88] \n"
490 " BLX R1 \n"
491 " B loc_FF8A9B44 \n"
492
493 "loc_FF8A9658:\n"
494 " CMP R1, #0x26 \n"
495 " BNE loc_FF8A96A8 \n"
496 " ADD R1, SP, #0xC \n"
497 " BL sub_FF8A9504 \n"
498 " LDR R0, [R7, #0x1C] \n"
499 " MOV R1, #0x100 \n"
500 " BL sub_FF86E0B8 /*_ClearEventFlag*/ \n"
501 " LDR R0, =0xFF8A5FB4 \n"
502 " MOV R1, #0x100 \n"
503 " BL sub_FF930334 \n"
504 " LDR R0, [R7, #0x1C] \n"
505 " MOV R2, R8 \n"
506 " MOV R1, #0x100 \n"
507 " BL sub_FF86DFC4 /*_WaitForAllEventFlag*/ \n"
508 " TST R0, #1 \n"
509 " BEQ loc_FF8A9644 \n"
510 " MOV R1, #0xD40 \n"
511
512 "loc_FF8A969C:\n"
513 " LDR R0, =0xFF8A66A4 \n"
514 " BL _DebugAssert \n"
515 " B loc_FF8A9644 \n"
516
517 "loc_FF8A96A8:\n"
518 " CMP R1, #0x27 \n"
519 " BNE loc_FF8A96C0 \n"
520
521 "loc_FF8A96B0:\n"
522 " LDR R0, [SP, #0x1C] \n"
523 " ADD R1, SP, #0xC \n"
524 " BL sub_FF8A9504 \n"
525 " B loc_FF8A9644 \n"
526
527 "loc_FF8A96C0:\n"
528 " CMP R1, #0x2A \n"
529 " BNE loc_FF8A96D8 \n"
530 " BL sub_FF899058 \n"
531 " BL sub_FF899CE4 \n"
532 " BL sub_FF89981C \n"
533 " B loc_FF8A9644 \n"
534
535 "loc_FF8A96D8:\n"
536 " LDR R0, [SP, #0x1C] \n"
537 " MOV R4, #1 \n"
538 " LDR R1, [R0] \n"
539 " CMP R1, #0x11 \n"
540 " CMPNE R1, #0x12 \n"
541 " BNE loc_FF8A9748 \n"
542 " LDR R1, [R0, #0x7C] \n"
543 " ADD R1, R1, R1, LSL#1 \n"
544 " ADD R1, R0, R1, LSL#2 \n"
545 " SUB R1, R1, #8 \n"
546 " LDMIA R1, {R2-R4} \n"
547 " STMIA R6, {R2-R4} \n"
548 " BL sub_FF8A8024 \n"
549 " LDR R0, [SP, #0x1C] \n"
550 " LDR R1, [R0, #0x7C] \n"
551 " LDR R3, [R0, #0x88] \n"
552 " LDR R2, [R0, #0x8C] \n"
553 " ADD R0, R0, #4 \n"
554 " BLX R3 \n"
555 " LDR R0, [SP, #0x1C] \n"
556 " BL sub_FF8AAB98 \n"
557 " LDR R0, [SP, #0x1C] \n"
558 " LDR R1, [R0, #0x7C] \n"
559 " LDR R3, [R0, #0x90] \n"
560 " LDR R2, [R0, #0x94] \n"
561 " ADD R0, R0, #4 \n"
562 " BLX R3 \n"
563 " B loc_FF8A9A84 \n"
564
565 "loc_FF8A9748:\n"
566 " CMP R1, #0x13 \n"
567 " CMPNE R1, #0x14 \n"
568 " CMPNE R1, #0x15 \n"
569 " BNE loc_FF8A97FC \n"
570 " ADD R3, SP, #0xC \n"
571 " MOV R2, SP \n"
572 " ADD R1, SP, #0x10 \n"
573 " BL sub_FF8A826C \n"
574 " CMP R0, #1 \n"
575 " MOV R4, R0 \n"
576 " CMPNE R4, #5 \n"
577 " BNE loc_FF8A9798 \n"
578 " LDR R0, [SP, #0x1C] \n"
579 " MOV R2, R4 \n"
580 " LDR R1, [R0, #0x7C]! \n"
581 " LDR R12, [R0, #0xC]! \n"
582 " LDR R3, [R0, #4] \n"
583 " MOV R0, SP \n"
584 " BLX R12 \n"
585 " B loc_FF8A97D0 \n"
586
587 "loc_FF8A9798:\n"
588 " LDR R0, [SP, #0x1C] \n"
589 " CMP R4, #2 \n"
590 " LDR R3, [R0, #0x8C] \n"
591 " CMPNE R4, #6 \n"
592 " BNE loc_FF8A97E4 \n"
593 " LDR R12, [R0, #0x88] \n"
594 " MOV R0, SP \n"
595 " MOV R2, R4 \n"
596 " MOV R1, #1 \n"
597 " BLX R12 \n"
598 " LDR R0, [SP, #0x1C] \n"
599 " MOV R2, SP \n"
600 " ADD R1, SP, #0x10 \n"
601 " BL sub_FF8A9218 \n"
602
603 "loc_FF8A97D0:\n"
604 " LDR R0, [SP, #0x1C] \n"
605 " LDR R2, [SP, #0xC] \n"
606 " MOV R1, R4 \n"
607 " BL sub_FF8A94A4 \n"
608 " B loc_FF8A9A84 \n"
609
610 "loc_FF8A97E4:\n"
611 " LDR R1, [R0, #0x7C] \n"
612 " LDR R12, [R0, #0x88] \n"
613 " ADD R0, R0, #4 \n"
614 " MOV R2, R4 \n"
615 " BLX R12 \n"
616 " B loc_FF8A9A84 \n"
617
618 "loc_FF8A97FC:\n"
619 " CMP R1, #0x21 \n"
620 " CMPNE R1, #0x22 \n"
621 " BNE loc_FF8A9848 \n"
622 " LDR R1, [R0, #0x7C] \n"
623 " ADD R1, R1, R1, LSL#1 \n"
624 " ADD R1, R0, R1, LSL#2 \n"
625 " SUB R1, R1, #8 \n"
626 " LDMIA R1, {R2-R4} \n"
627 " STMIA R6, {R2-R4} \n"
628 " BL sub_FF8A75B0 \n"
629 " LDR R0, [SP, #0x1C] \n"
630 " LDR R1, [R0, #0x7C] \n"
631 " LDR R3, [R0, #0x88] \n"
632 " LDR R2, [R0, #0x8C] \n"
633 " ADD R0, R0, #4 \n"
634 " BLX R3 \n"
635 " LDR R0, [SP, #0x1C] \n"
636 " BL sub_FF8A78A0 \n"
637 " B loc_FF8A9A84 \n"
638
639 "loc_FF8A9848:\n"
640 " ADD R1, R0, #4 \n"
641 " LDMIA R1, {R2,R3,R12} \n"
642 " STMIA R6, {R2,R3,R12} \n"
643 " LDR R1, [R0] \n"
644 " CMP R1, #0x24 \n"
645 " ADDLS PC, PC, R1, LSL#2 \n"
646 " B loc_FF8A9A64 \n"
647 " B loc_FF8A98F8 \n"
648 " B loc_FF8A98F8 \n"
649 " B loc_FF8A994C \n"
650 " B loc_FF8A9954 \n"
651 " B loc_FF8A9954 \n"
652 " B loc_FF8A9954 \n"
653 " B loc_FF8A98F8 \n"
654 " B loc_FF8A994C \n"
655 " B loc_FF8A9954 \n"
656 " B loc_FF8A9954 \n"
657 " B loc_FF8A996C \n"
658 " B loc_FF8A996C \n"
659 " B loc_FF8A9A58 \n"
660 " B loc_FF8A9A60 \n"
661 " B loc_FF8A9A60 \n"
662 " B loc_FF8A9A60 \n"
663 " B loc_FF8A9A60 \n"
664 " B loc_FF8A9A64 \n"
665 " B loc_FF8A9A64 \n"
666 " B loc_FF8A9A64 \n"
667 " B loc_FF8A9A64 \n"
668 " B loc_FF8A9A64 \n"
669 " B loc_FF8A995C \n"
670 " B loc_FF8A9964 \n"
671 " B loc_FF8A9964 \n"
672 " B loc_FF8A9978 \n"
673 " B loc_FF8A9978 \n"
674 " B loc_FF8A9980 \n"
675 " B loc_FF8A99B0 \n"
676 " B loc_FF8A99E0 \n"
677 " B loc_FF8A9A10 \n"
678 " B loc_FF8A9A40 \n"
679 " B loc_FF8A9A40 \n"
680 " B loc_FF8A9A64 \n"
681 " B loc_FF8A9A64 \n"
682 " B loc_FF8A9A48 \n"
683 " B loc_FF8A9A50 \n"
684
685 "loc_FF8A98F8:\n"
686 " BL sub_FF8A6490 \n"
687 " B loc_FF8A9A64 \n"
688
689
690 "loc_FF8A994C:\n"
691 " BL sub_FF8A6718 \n"
692 " B loc_FF8A9A64 \n"
693
694 "loc_FF8A9954:\n"
695 " BL sub_FF8A691C \n"
696 " B loc_FF8A9A64 \n"
697
698 "loc_FF8A995C:\n"
699 " BL sub_FF8A6B84 \n"
700 " B loc_FF8A9A64 \n"
701
702 "loc_FF8A9964:\n"
703 " BL sub_FF8A6D78 \n"
704 " B loc_FF8A9A64 \n"
705
706 "loc_FF8A996C:\n"
707 " BL sub_FF8A6FE0_my \n"
708 " MOV R4, #0 \n"
709 " B loc_FF8A9A64 \n"
710
711 "loc_FF8A9978:\n"
712 " BL sub_FF8A711C \n"
713 " B loc_FF8A9A64 \n"
714
715 "loc_FF8A9980:\n"
716 " LDRH R1, [R0, #4] \n"
717 " STRH R1, [SP, #0x10] \n"
718 " LDRH R1, [R5, #2] \n"
719 " STRH R1, [SP, #0x12] \n"
720 " LDRH R1, [R5, #4] \n"
721 " STRH R1, [SP, #0x14] \n"
722 " LDRH R1, [R5, #6] \n"
723 " STRH R1, [SP, #0x16] \n"
724 " LDRH R1, [R0, #0xC] \n"
725 " STRH R1, [SP, #0x18] \n"
726 " BL sub_FF8AA838 \n"
727 " B loc_FF8A9A64 \n"
728
729 "loc_FF8A99B0:\n"
730 " LDRH R1, [R0, #4] \n"
731 " STRH R1, [SP, #0x10] \n"
732 " LDRH R1, [R5, #2] \n"
733 " STRH R1, [SP, #0x12] \n"
734 " LDRH R1, [R5, #4] \n"
735 " STRH R1, [SP, #0x14] \n"
736 " LDRH R1, [R5, #6] \n"
737 " STRH R1, [SP, #0x16] \n"
738 " LDRH R1, [R5, #8] \n"
739 " STRH R1, [SP, #0x18] \n"
740 " BL sub_FF8AA9B4 \n"
741 " B loc_FF8A9A64 \n"
742
743 "loc_FF8A99E0:\n"
744 " LDRH R1, [R5] \n"
745 " STRH R1, [SP, #0x10] \n"
746 " LDRH R1, [R0, #6] \n"
747 " STRH R1, [SP, #0x12] \n"
748 " LDRH R1, [R5, #4] \n"
749 " STRH R1, [SP, #0x14] \n"
750 " LDRH R1, [R5, #6] \n"
751 " STRH R1, [SP, #0x16] \n"
752 " LDRH R1, [R5, #8] \n"
753 " STRH R1, [SP, #0x18] \n"
754 " BL sub_FF8AAA60 \n"
755 " B loc_FF8A9A64 \n"
756
757 "loc_FF8A9A10:\n"
758 " LDRH R1, [R5] \n"
759 " STRH R1, [SP, #0x10] \n"
760 " LDRH R1, [R5, #2] \n"
761 " STRH R1, [SP, #0x12] \n"
762 " LDRH R1, [R5, #4] \n"
763 " STRH R1, [SP, #0x14] \n"
764 " LDRH R1, [R5, #6] \n"
765 " STRH R1, [SP, #0x16] \n"
766 " LDRH R1, [R0, #0xC] \n"
767 " STRH R1, [SP, #0x18] \n"
768 " BL sub_FF8AAB00 \n"
769 " B loc_FF8A9A64 \n"
770
771 "loc_FF8A9A40:\n"
772 " BL sub_FF8A7390 \n"
773 " B loc_FF8A9A64 \n"
774
775 "loc_FF8A9A48:\n"
776 " BL sub_FF8A79A4 \n"
777 " B loc_FF8A9A64 \n"
778
779 "loc_FF8A9A50:\n"
780 " BL sub_FF8A7BDC \n"
781 " B loc_FF8A9A64 \n"
782
783 "loc_FF8A9A58:\n"
784 " BL sub_FF8A7D54 \n"
785 " B loc_FF8A9A64 \n"
786
787 "loc_FF8A9A60:\n"
788 " BL sub_FF8A7EEC \n"
789
790 "loc_FF8A9A64:\n"
791 " LDR R0, [SP, #0x1C] \n"
792 " LDR R1, [R0, #0x7C] \n"
793 " LDR R3, [R0, #0x88] \n"
794 " LDR R2, [R0, #0x8C] \n"
795 " ADD R0, R0, #4 \n"
796 " BLX R3 \n"
797 " CMP R4, #1 \n"
798 " BNE loc_FF8A9ACC \n"
799
800 "loc_FF8A9A84:\n"
801 " LDR R0, [SP, #0x1C] \n"
802 " MOV R2, #0xC \n"
803 " LDR R1, [R0, #0x7C] \n"
804 " ADD R1, R1, R1, LSL#1 \n"
805 " ADD R0, R0, R1, LSL#2 \n"
806 " SUB R4, R0, #8 \n"
807 " LDR R0, =0x2049C \n"
808 " ADD R1, SP, #0x10 \n"
809 " BL sub_FFADE20C \n"
810 " LDR R0, =0x204A8 \n"
811 " MOV R2, #0xC \n"
812 " ADD R1, SP, #0x10 \n"
813 " BL sub_FFADE20C \n"
814 " LDR R0, =0x204B4 \n"
815 " MOV R2, #0xC \n"
816 " MOV R1, R4 \n"
817 " BL sub_FFADE20C \n"
818 " B loc_FF8A9B44 \n"
819
820 "loc_FF8A9ACC:\n"
821 " LDR R0, [SP, #0x1C] \n"
822 " LDR R0, [R0] \n"
823 " CMP R0, #0xB \n"
824 " BNE loc_FF8A9B14 \n"
825 " MOV R3, #0 \n"
826 " STR R3, [SP] \n"
827 " MOV R3, #1 \n"
828 " MOV R2, #1 \n"
829 " MOV R1, #1 \n"
830 " MOV R0, #0 \n"
831 " BL sub_FF8A6298 \n"
832 " MOV R3, #0 \n"
833 " STR R3, [SP] \n"
834 " MOV R3, #1 \n"
835 " MOV R2, #1 \n"
836 " MOV R1, #1 \n"
837 " MOV R0, #0 \n"
838 " B loc_FF8A9B40 \n"
839
840 "loc_FF8A9B14:\n"
841 " MOV R3, #1 \n"
842 " MOV R2, #1 \n"
843 " MOV R1, #1 \n"
844 " MOV R0, #1 \n"
845 " STR R3, [SP] \n"
846 " BL sub_FF8A6298 \n"
847 " MOV R3, #1 \n"
848 " MOV R2, #1 \n"
849 " MOV R1, #1 \n"
850 " MOV R0, #1 \n"
851 " STR R3, [SP] \n"
852
853 "loc_FF8A9B40:\n"
854 " BL sub_FF8A63D8 \n"
855
856 "loc_FF8A9B44:\n"
857 " LDR R0, [SP, #0x1C] \n"
858 " BL sub_FF8AA7C4 \n"
859 " B loc_FF8A9574 \n"
860 );
861 }
862
863
864
865 void __attribute__((naked,noinline)) sub_FF8A6FE0_my() {
866 asm volatile (
867 " STMFD SP!, {R4-R8,LR} \n"
868 " LDR R7, =0x6BFC \n"
869 " MOV R4, R0 \n"
870 " LDR R0, [R7, #0x1C] \n"
871 " MOV R1, #0x3E \n"
872 " BL sub_FF86E0B8 /*_ClearEventFlag*/ \n"
873 " LDRSH R0, [R4, #4] \n"
874 " MOV R2, #0 \n"
875 " MOV R1, #0 \n"
876 " BL sub_FF8A6028 \n"
877 " MOV R6, R0 \n"
878 " LDRSH R0, [R4, #6] \n"
879 " BL sub_FF8A6138 \n"
880 " LDRSH R0, [R4, #8] \n"
881 " BL sub_FF8A6190 \n"
882 " LDRSH R0, [R4, #0xA] \n"
883 " BL sub_FF8A61E8 \n"
884 " LDRSH R0, [R4, #0xC] \n"
885 " BL sub_FF8A6240 \n"
886 " MOV R5, R0 \n"
887 " LDR R0, [R4] \n"
888 " LDR R8, =0x204B4 \n"
889 " CMP R0, #0xB \n"
890 " MOVEQ R6, #0 \n"
891 " MOVEQ R5, #0 \n"
892 " BEQ loc_FF8A7070 \n"
893 " CMP R6, #1 \n"
894 " BNE loc_FF8A7070 \n"
895 " LDRSH R0, [R4, #4] \n"
896 " LDR R1, =0xFF8A5F94 \n"
897 " MOV R2, #2 \n"
898 " BL sub_FF930200 \n"
899 " STRH R0, [R4, #4] \n"
900 " MOV R0, #0 \n"
901 " STR R0, [R7, #0x28] \n"
902 " B loc_FF8A7078 \n"
903
904 "loc_FF8A7070:\n"
905 " LDRH R0, [R8] \n"
906 " STRH R0, [R4, #4] \n"
907
908 "loc_FF8A7078:\n"
909 " CMP R5, #1 \n"
910 " LDRNEH R0, [R8, #8] \n"
911 " BNE loc_FF8A7094 \n"
912 " LDRSH R0, [R4, #0xC] \n"
913 " LDR R1, =0xFF8A6018 \n"
914 " MOV R2, #0x20 \n"
915 " BL sub_FF8AA7F4 \n"
916
917 "loc_FF8A7094:\n"
918 " STRH R0, [R4, #0xC] \n"
919 " LDRSH R0, [R4, #6] \n"
920 " BL sub_FF898DC8_my \n"
921 " LDR PC, =0xFF8A70A0 \n"
922 );
923 }
924
925
926
927 void __attribute__((naked,noinline)) sub_FF898DC8_my() {
928 asm volatile (
929 " STMFD SP!, {R4-R6,LR} \n"
930 " LDR R5, =0x6924 \n"
931 " MOV R4, R0 \n"
932 " LDR R0, [R5, #4] \n"
933 " CMP R0, #1 \n"
934 " MOVNE R1, #0x140 \n"
935 " LDRNE R0, =0xFF898BCC \n"
936 " BLNE _DebugAssert \n"
937 " CMN R4, #0xC00 \n"
938 " LDREQSH R4, [R5, #2] \n"
939 " CMN R4, #0xC00 \n"
940 " LDREQ R1, =0x146 \n"
941 " LDREQ R0, =0xFF898BCC \n"
942 " STRH R4, [R5, #2] \n"
943 " BLEQ _DebugAssert \n"
944 " MOV R0, R4 \n"
945 " BL apex2us \n"
946 " MOV R4, R0 \n"
947
948 " MOV R0, R4 \n"
949 " BL sub_FF8CCEF0 \n"
950 " TST R0, #1 \n"
951 " LDRNE R1, =0x14B \n"
952 " LDMNEFD SP!, {R4-R6,LR} \n"
953 " LDRNE R0, =0xFF898BCC \n"
954 " BNE _DebugAssert \n"
955 " LDMFD SP!, {R4-R6,PC} \n"
956 );
957 }