This source file includes following definitions.
- capt_seq_task
- sub_FF879B58_my
- sub_FF966904_my
- exp_drv_task
- sub_FF8BE698_my
- sub_FF8B079C_my
1 #include "lolevel.h"
2 #include "platform.h"
3 #include "core.h"
4
5 static long *nrflag = (long*)0x7FD0;
6
7 #include "../../../generic/capt_seq.c"
8
9 void __attribute__((naked,noinline)) capt_seq_task() {
10 asm volatile (
11 "STMFD SP!, {R3-R9,LR}\n"
12 "LDR R6, =0x2C58\n"
13 "LDR R4, =0x39F60\n"
14 "MOV R9, #1\n"
15 "MOV R7, #0\n"
16 "loc_FF87A21C:\n"
17 "LDR R0, [R6,#4]\n"
18 "MOV R2, #0\n"
19 "MOV R1, SP\n"
20 "BL sub_FF8382FC \n"
21 "TST R0, #1\n"
22 "BEQ loc_FF87A248\n"
23 "LDR R1, =0x5B3\n"
24 "LDR R0, =0xFF879A2C\n"
25 "BL sub_FF81E88C\n"
26 "BL sub_FF81E844 \n"
27 "LDMFD SP!, {R3-R9,PC}\n"
28 "loc_FF87A248:\n"
29 "LDR R0, [SP]\n"
30 "LDR R1, [R0]\n"
31 "CMP R1, #0x21\n"
32 "ADDLS PC, PC, R1,LSL#2\n"
33 "B loc_FF87A50C\n"
34 "loc_FF87A25C:\n"
35 "B loc_FF87A2E4\n"
36 "loc_FF87A260:\n"
37 "B loc_FF87A350\n"
38 "loc_FF87A264:\n"
39 "B loc_FF87A38C\n"
40 "loc_FF87A268:\n"
41 "B loc_FF87A3A0\n"
42 "loc_FF87A26C:\n"
43 "B loc_FF87A398\n"
44 "loc_FF87A270:\n"
45 "B loc_FF87A3A8\n"
46 "loc_FF87A274:\n"
47 "B loc_FF87A3B0\n"
48 "loc_FF87A278:\n"
49 "B loc_FF87A3B8\n"
50 "loc_FF87A27C:\n"
51 "B loc_FF87A410\n"
52 "loc_FF87A280:\n"
53 "B loc_FF87A438\n"
54 "loc_FF87A284:\n"
55 "B loc_FF87A41C\n"
56 "loc_FF87A288:\n"
57 "B loc_FF87A428\n"
58 "loc_FF87A28C:\n"
59 "B loc_FF87A430\n"
60 "loc_FF87A290:\n"
61 "B loc_FF87A440\n"
62 "loc_FF87A294:\n"
63 "B loc_FF87A448\n"
64 "loc_FF87A298:\n"
65 "B loc_FF87A450\n"
66 "loc_FF87A29C:\n"
67 "B loc_FF87A458\n"
68 "loc_FF87A2A0:\n"
69 "B loc_FF87A460\n"
70 "loc_FF87A2A4:\n"
71 "B loc_FF87A468\n"
72 "loc_FF87A2A8:\n"
73 "B loc_FF87A470\n"
74 "loc_FF87A2AC:\n"
75 "B loc_FF87A478\n"
76 "loc_FF87A2B0:\n"
77 "B loc_FF87A480\n"
78 "loc_FF87A2B4:\n"
79 "B loc_FF87A488\n"
80 "loc_FF87A2B8:\n"
81 "B loc_FF87A494\n"
82 "loc_FF87A2BC:\n"
83 "B loc_FF87A49C\n"
84 "loc_FF87A2C0:\n"
85 "B loc_FF87A4A8\n"
86 "loc_FF87A2C4:\n"
87 "B loc_FF87A4B0\n"
88 "loc_FF87A2C8:\n"
89 "B loc_FF87A4B8\n"
90 "loc_FF87A2CC:\n"
91 "B loc_FF87A4C0\n"
92 "loc_FF87A2D0:\n"
93 "B loc_FF87A4C8\n"
94 "loc_FF87A2D4:\n"
95 "B loc_FF87A4D0\n"
96 "loc_FF87A2D8:\n"
97 "B loc_FF87A4D8\n"
98 "loc_FF87A2DC:\n"
99 "B loc_FF87A4E4\n"
100 "loc_FF87A2E0:\n"
101 "B loc_FF87A518\n"
102 "loc_FF87A2E4:\n"
103 "BL sub_FF87AB20\n"
104 "BL shooting_expo_param_override\n"
105 "BL sub_FF877B70\n"
106
107
108
109 "MOV R0, #0\n"
110 "STR R0, [R4,#0x24]\n"
111
112
113 "LDR R0, [R4,#0x24]\n"
114 "CMP R0, #0\n"
115 "BEQ loc_FF87A518\n"
116 "BL sub_FF879700\n"
117 "MOV R5, R0\n"
118 "LDR R0, [R4,#0x24]\n"
119 "CMP R0, #0\n"
120 "BEQ loc_FF87A32C\n"
121 "MOV R0, #0xC\n"
122 "BL sub_FF87F958\n"
123 "TST R0, #1\n"
124 "STRNE R9, [R6,#0x10]\n"
125 "LDRNE R0, [R5,#8]\n"
126 "ORRNE R0, R0, #0x40000000\n"
127 "STRNE R0, [R5,#8]\n"
128 "BNE loc_FF87A518\n"
129 "loc_FF87A32C:\n"
130 "MOV R0, R5\n"
131 "BL sub_FF966068\n"
132 "MOV R0, R5\n"
133 "BL sub_FF879AE0\n"
134 "MOV R0, R5\n"
135
136 "BL sub_FF966904_my\n"
137 "BL capt_seq_hook_raw_here\n"
138 "TST R0, #1\n"
139 "STRNE R9, [R6,#0x10]\n"
140 "B loc_FF87A518\n"
141 "loc_FF87A350:\n"
142 "LDR R0, [R4,#0x24]\n"
143 "CMP R0, #0\n"
144 "BNE loc_FF87A37C\n"
145 "MOV R0, #0xC\n"
146 "BL sub_FF87F958\n"
147 "TST R0, #1\n"
148 "LDRNE R0, [SP]\n"
149 "MOVNE R1, #1\n"
150 "LDRNE R2, [R0,#0xC]\n"
151 "MOVNE R0, #1\n"
152 "BNE loc_FF87A408\n"
153 "loc_FF87A37C:\n"
154 "LDR R0, [SP]\n"
155
156 "BL sub_FF879B58_my\n"
157 "loc_FF87A384:\n"
158 "STR R7, [R4,#0x24]\n"
159 "B loc_FF87A518\n"
160 "loc_FF87A38C:\n"
161 "MOV R0, #1\n"
162 "BL sub_FF87AD74 \n"
163 "B loc_FF87A518\n"
164 "loc_FF87A398:\n"
165 "BL sub_FF87A7D0\n"
166 "B loc_FF87A384\n"
167 "loc_FF87A3A0:\n"
168 "BL sub_FF87AB00\n"
169 "B loc_FF87A384\n"
170 "loc_FF87A3A8:\n"
171 "BL sub_FF87AB08\n"
172 "B loc_FF87A518\n"
173 "loc_FF87A3B0:\n"
174 "BL sub_FF87AC94\n"
175 "B loc_FF87A414\n"
176 "loc_FF87A3B8:\n"
177 "LDR R5, [R0,#0xC]\n"
178 "BL sub_FF87AB10\n"
179 "MOV R0, R5\n"
180 "BL sub_FF9654F4 \n"
181 "TST R0, #1\n"
182 "MOV R8, R0\n"
183 "BNE loc_FF87A3F8\n"
184 "BL sub_FF88CC20 \n"
185 "STR R0, [R5,#0x18]\n"
186 "MOV R0, R5\n"
187 "BL sub_FF96681C \n"
188 "MOV R0, R5\n"
189 "BL sub_FF966C1C \n"
190 "MOV R8, R0\n"
191 "LDR R0, [R5,#0x18]\n"
192 "BL sub_FF88CE34 \n"
193 "loc_FF87A3F8:\n"
194 "BL sub_FF87AB00\n"
195 "MOV R2, R5\n"
196 "MOV R1, #9\n"
197 "MOV R0, R8\n"
198 "loc_FF87A408:\n"
199 "BL sub_FF8780D8 \n"
200 "B loc_FF87A518\n"
201 "loc_FF87A410:\n"
202 "BL sub_FF87ACF4\n"
203 "loc_FF87A414:\n"
204 "BL sub_FF877B70\n"
205 "B loc_FF87A518\n"
206 "loc_FF87A41C:\n"
207 "LDR R0, [R4,#0x54]\n"
208 "BL sub_FF87B5D4 \n"
209 "B loc_FF87A518\n"
210 "loc_FF87A428:\n"
211 "BL sub_FF87B888\n"
212 "B loc_FF87A518\n"
213 "loc_FF87A430:\n"
214 "BL sub_FF87B91C\n"
215 "B loc_FF87A518\n"
216 "loc_FF87A438:\n"
217 "BL sub_FF87AB00\n"
218 "B loc_FF87A518\n"
219 "loc_FF87A440:\n"
220 "BL sub_FF965710\n"
221 "B loc_FF87A518\n"
222 "loc_FF87A448:\n"
223 "BL sub_FF965924\n"
224 "B loc_FF87A518\n"
225 "loc_FF87A450:\n"
226 "BL sub_FF9659AC\n"
227 "B loc_FF87A518\n"
228 "loc_FF87A458:\n"
229 "BL sub_FF965A9C\n"
230 "B loc_FF87A518\n"
231 "loc_FF87A460:\n"
232 "BL sub_FF965B90\n"
233 "B loc_FF87A518\n"
234 "loc_FF87A468:\n"
235 "MOV R0, #0\n"
236 "B loc_FF87A48C\n"
237 "loc_FF87A470:\n"
238 "BL sub_FF965DAC\n"
239 "B loc_FF87A518\n"
240 "loc_FF87A478:\n"
241 "BL sub_FF965E3C\n"
242 "B loc_FF87A518\n"
243 "loc_FF87A480:\n"
244 "BL sub_FF965EFC\n"
245 "B loc_FF87A518\n"
246 "loc_FF87A488:\n"
247 "MOV R0, #1\n"
248 "loc_FF87A48C:\n"
249 "BL sub_FF965C5C\n"
250 "B loc_FF87A518\n"
251 "loc_FF87A494:\n"
252 "BL sub_FF87AF5C\n"
253 "B loc_FF87A518\n"
254 "loc_FF87A49C:\n"
255 "BL sub_FF87AFFC\n"
256 "BL sub_FF87A640 \n"
257 "B loc_FF87A518\n"
258 "loc_FF87A4A8:\n"
259 "BL sub_FF87B370\n"
260 "B loc_FF87A518\n"
261 "loc_FF87A4B0:\n"
262 "BL sub_FF87B48C\n"
263 "B loc_FF87A518\n"
264 "loc_FF87A4B8:\n"
265 "BL sub_FF8799B8\n"
266 "B loc_FF87A518\n"
267 "loc_FF87A4C0:\n"
268 "BL sub_FF835FDC\n"
269 "B loc_FF87A518\n"
270 "loc_FF87A4C8:\n"
271 "BL sub_FF87DCDC\n"
272 "B loc_FF87A518\n"
273 "loc_FF87A4D0:\n"
274 "BL sub_FF87DD44\n"
275 "B loc_FF87A518\n"
276 "loc_FF87A4D8:\n"
277 "BL sub_FF87DDA0\n"
278 "BL sub_FF87DD60\n"
279 "B loc_FF87A518\n"
280 "loc_FF87A4E4:\n"
281 "MOV R0, #1\n"
282 "BL sub_FF967484\n"
283 "MOV R0, #1\n"
284 "BL sub_FF967594\n"
285 "LDRH R0, [R4,#0xA0]\n"
286 "CMP R0, #4\n"
287 "BNE loc_FF87A518\n"
288 "BL sub_FF87DD44\n"
289 "BL sub_FF87E18C\n"
290 "B loc_FF87A518\n"
291 "loc_FF87A50C:\n"
292 "LDR R1, =0x708\n"
293 "LDR R0, =0xFF879A2C\n"
294 "BL sub_FF81E88C\n"
295 "loc_FF87A518:\n"
296 "LDR R0, [SP]\n"
297 "LDR R1, [R0,#4]\n"
298 "LDR R0, [R6]\n"
299 "BL sub_FF88490C\n"
300 "LDR R5, [SP]\n"
301 "LDR R0, [R5,#8]\n"
302 "CMP R0, #0\n"
303 "LDREQ R1, =0x131\n"
304 "LDREQ R0, =0xFF879A2C\n"
305 "BLEQ sub_FF81E88C\n"
306 "STR R7, [R5,#8]\n"
307 "B loc_FF87A21C\n"
308 );
309 }
310
311
312 void __attribute__((naked,noinline)) sub_FF879B58_my() {
313 asm volatile (
314 "STMFD SP!, {R3-R9,LR}\n"
315 "LDR R4, [R0,#0xC]\n"
316 "LDR R5, =0x39F60\n"
317 "LDR R0, [R4,#8]\n"
318 "LDR R6, =0x420A\n"
319 "ORR R0, R0, #1\n"
320 "STR R0, [R4,#8]\n"
321 "LDRH R0, [R5]\n"
322 "LDR R8, =0x2C58\n"
323 "MOV R7, #0\n"
324 "CMP R0, R6\n"
325 "BEQ loc_FF879BFC\n"
326 "LDRH R0, [R5,#0x9E]\n"
327 "CMP R0, #3\n"
328 "BEQ loc_FF879C5C\n"
329 "LDR R0, [R4,#0xC]\n"
330 "CMP R0, #1\n"
331 "BLS loc_FF879C08\n"
332 "LDRH R0, [R5,#0x9C]\n"
333 "CMP R0, #0\n"
334 "BNE loc_FF879C5C\n"
335 "LDRH R0, [R5,#0x98]\n"
336 "CMP R0, #2\n"
337 "BNE loc_FF879C14\n"
338 "BL sub_FF87B0AC\n"
339 "LDRH R0, [R5]\n"
340 "CMP R0, R6\n"
341 "BEQ loc_FF879BFC\n"
342 "LDRH R0, [R5,#0x9E]\n"
343 "CMP R0, #3\n"
344 "BEQ loc_FF879C5C\n"
345 "LDR R0, [R4,#0xC]\n"
346 "CMP R0, #1\n"
347 "BLS loc_FF879C08\n"
348 "LDRH R0, [R5,#0x9C]\n"
349 "CMP R0, #0\n"
350 "BNE loc_FF879C5C\n"
351 "LDRH R0, [R5,#0x98]\n"
352 "CMP R0, #2\n"
353 "BEQ loc_FF879C40\n"
354 "B loc_FF879C14\n"
355 "loc_FF879BFC:\n"
356 "LDRH R0, [R5,#0x9E]\n"
357 "CMP R0, #3\n"
358 "BEQ loc_FF879C5C\n"
359 "loc_FF879C08:\n"
360 "LDRH R0, [R5,#0x9C]\n"
361 "CMP R0, #0\n"
362 "BNE loc_FF879C5C\n"
363 "loc_FF879C14:\n"
364 "LDRH R0, [R5,#0x98]\n"
365 "CMP R0, #1\n"
366 "BNE loc_FF879C5C\n"
367 "LDRH R0, [R5]\n"
368 "CMP R0, R6\n"
369 "LDRNE R0, [R4,#0xC]\n"
370 "CMPNE R0, #1\n"
371 "BLS loc_FF879C5C\n"
372 "LDR R0, [R4,#0x10]\n"
373 "CMP R0, #1\n"
374 "BNE loc_FF879C5C\n"
375 "loc_FF879C40:\n"
376 "MOV R3, #0x268\n"
377 "STR R3, [SP]\n"
378 "LDR R0, [R8]\n"
379 "LDR R2, =0xEA60\n"
380
381 "LDR R3, =0xFF879A2C\n"
382 "MOV R1, #0x40000000\n"
383 "BL sub_FF87FCB8\n"
384 "loc_FF879C5C:\n"
385 "BL sub_FF8799B8\n"
386 "LDR R0, [R5,#0x24]\n"
387 "CMP R0, #0\n"
388 "MOVEQ R0, #2\n"
389 "BLEQ sub_FF8762DC\n"
390 "BL sub_FF87AB10\n"
391 "LDR R0, [R5,#0x24]\n"
392 "CMP R0, #0\n"
393 "BNE loc_FF879D14\n"
394 "MOV R0, #0\n"
395 "BL sub_FF967484\n"
396 "MOV R0, #0\n"
397 "BL sub_FF967594\n"
398 "MOV R0, R4\n"
399 "BL sub_FF966068\n"
400 "MOV R0, R4\n"
401 "BL sub_FF87AED8\n"
402 "MOV R0, R4\n"
403 "BL sub_FF9650E4\n"
404 "CMP R0, #0\n"
405 "BEQ loc_FF879CDC\n"
406 "BL sub_FF9674C4\n"
407 "BL sub_FF9675D8\n"
408 "BL sub_FF967628\n"
409 "MOV R0, R4\n"
410 "BL sub_FF965228 \n"
411 "TST R0, #1\n"
412 "MOVNE R2, R4\n"
413 "LDMNEFD SP!, {R3-R9,LR}\n"
414 "MOVNE R1, #1\n"
415 "BNE sub_FF8780D8 \n"
416 "B loc_FF879CF0\n"
417 "loc_FF879CDC:\n"
418 "MOV R0, R4\n"
419 "BL sub_FF965194\n"
420 "BL sub_FF9674C4\n"
421 "BL sub_FF9675D8\n"
422 "BL sub_FF967628\n"
423 "loc_FF879CF0:\n"
424 "MOV R0, R4\n"
425 "BL sub_FF879AE0\n"
426 "MOV R0, R4\n"
427 "BL sub_FF96681C \n"
428 "BL sub_FF96729C \n"
429 "MOV R0, R4\n"
430
431 "BL sub_FF966904_my \n"
432 "MOV R7, R0\n"
433 "BL capt_seq_hook_raw_here\n"
434 "B loc_FF879D20\n"
435 "loc_FF879D14:\n"
436 "LDR R0, [R8,#0x10]\n"
437 "CMP R0, #0\n"
438 "MOVNE R7, #0x1D\n"
439 "loc_FF879D20:\n"
440 "BL sub_FF87DD44\n"
441 "BL sub_FF87DD8C\n"
442 "BL sub_FF87DDCC\n"
443 "MOV R2, R4\n"
444 "MOV R1, #1\n"
445 "MOV R0, R7\n"
446 "BL sub_FF8780D8 \n"
447 "BL sub_FF966BC0\n"
448 "CMP R0, #0\n"
449 "LDRNE R0, [R4,#8]\n"
450 "ORRNE R0, R0, #0x2000\n"
451 "STRNE R0, [R4,#8]\n"
452 "LDRH R0, [R5,#0x9E]\n"
453 "CMP R0, #3\n"
454 "BEQ locret_FF879D78\n"
455 "LDRH R0, [R5,#0x9C]\n"
456 "CMP R0, #0\n"
457 "LDREQH R0, [R5,#0x98]\n"
458 "CMPEQ R0, #2\n"
459 "MOVEQ R0, R4\n"
460 "LDMEQFD SP!, {R3-R9,LR}\n"
461 "BEQ sub_FF87B100\n"
462 "locret_FF879D78:\n"
463 "LDMFD SP!, {R3-R9,PC}\n"
464 );
465 }
466
467 void __attribute__((naked,noinline)) sub_FF966904_my() {
468 asm volatile (
469 "STMFD SP!, {R0-R8,LR}\n"
470 "MOV R4, R0\n"
471 "BL sub_FF967780\n"
472 "MVN R1, #0\n"
473 "BL sub_FF884940\n"
474 "LDR R5, =0x7FD0\n"
475 "LDR R0, [R5,#0xC]\n"
476 "CMP R0, #0\n"
477 "BNE loc_FF966954\n"
478 "MOV R1, #1\n"
479 "MOV R0, #0\n"
480 "BL sub_FF838B44\n"
481 "STR R0, [R5,#0xC]\n"
482 "MOV R3, #0\n"
483 "STR R3, [SP]\n"
484 "LDR R3, =0xFF966290 \n"
485
486 "LDR R0, =0xFF966B84\n"
487 "MOV R2, #0x400\n"
488 "MOV R1, #0x17\n"
489 "BL sub_FF838B10\n"
490 "loc_FF966954:\n"
491 "MOV R2, #4\n"
492 "ADD R1, SP, #8\n"
493 "MOV R0, #0x8A\n"
494 "BL sub_FF88CA90\n"
495 "TST R0, #1\n"
496 "LDRNE R1, =0x3C5\n"
497 "LDRNE R0, =0xFF966528\n"
498 "BLNE sub_FF81E88C\n"
499 "LDR R6, =0x3A02C\n"
500 "LDR R8, =0x39F60\n"
501 "LDR R3, [R6]\n"
502 "LDRSH R2, [R6,#0xC]\n"
503 "LDRSH R1, [R6,#0xE]\n"
504 "LDR R0, [R8,#0x94]\n"
505 "BL sub_FF92E144\n"
506 "BL sub_FF86157C \n"
507 "LDR R3, =0x7FD8\n"
508 "STRH R0, [R4,#0xA4]\n"
509 "SUB R2, R3, #4\n"
510 "STRD R2, [SP]\n"
511 "MOV R1, R0\n"
512 "LDRH R0, [R8,#0x5C]\n"
513 "LDRSH R2, [R6,#0xC]\n"
514 "SUB R3, R3, #8\n"
515 "BL sub_FF9694A0\n"
516 "BL wait_until_remote_button_is_released\n"
517 "BL capt_seq_hook_set_nr\n"
518 "B sub_FF9669B8\n"
519 );
520 }
521
522 void __attribute__((naked,noinline)) exp_drv_task(){
523 asm volatile(
524 "STMFD SP!, {R4-R8,LR}\n"
525 "SUB SP, SP, #0x20\n"
526 "LDR R8, =0xBB8\n"
527 "LDR R7, =0x4440\n"
528 "LDR R5, =0x4372C\n"
529 "MOV R0, #0\n"
530 "ADD R6, SP, #0x10\n"
531 "STR R0, [SP,#0xC]\n"
532 "loc_FF8C0EA0:\n"
533 "LDR R0, [R7,#0x20]\n"
534 "MOV R2, #0\n"
535 "ADD R1, SP, #0x1C\n"
536 "BL sub_FF8382FC \n"
537 "LDR R0, [SP,#0xC]\n"
538 "CMP R0, #1\n"
539 "BNE loc_FF8C0EEC\n"
540 "LDR R0, [SP,#0x1C]\n"
541 "LDR R0, [R0]\n"
542 "CMP R0, #0x13\n"
543 "CMPNE R0, #0x14\n"
544 "CMPNE R0, #0x15\n"
545 "CMPNE R0, #0x16\n"
546 "BEQ loc_FF8C1050\n"
547 "CMP R0, #0x28\n"
548 "BEQ loc_FF8C0FD8\n"
549 "ADD R1, SP, #0xC\n"
550 "MOV R0, #0\n"
551 "BL sub_FF8C0E30 \n"
552 "loc_FF8C0EEC:\n"
553 "LDR R0, [SP,#0x1C]\n"
554 "LDR R1, [R0]\n"
555 "CMP R1, #0x2E\n"
556 "BNE loc_FF8C0F1C\n"
557 "LDR R0, [SP,#0x1C]\n"
558 "BL sub_FF8C2188 \n"
559 "LDR R0, [R7,#0x1C]\n"
560 "MOV R1, #1\n"
561 "BL sub_FF88490C\n"
562 "BL sub_FF81E844 \n"
563 "ADD SP, SP, #0x20\n"
564 "LDMFD SP!, {R4-R8,PC}\n"
565 "loc_FF8C0F1C:\n"
566 "CMP R1, #0x2D\n"
567 "BNE loc_FF8C0F38\n"
568 "LDR R2, [R0,#0x8C]!\n"
569 "LDR R1, [R0,#4]\n"
570 "MOV R0, R1\n"
571 "BLX R2\n"
572 "B loc_FF8C1478\n"
573 "loc_FF8C0F38:\n"
574 "CMP R1, #0x26\n"
575 "BNE loc_FF8C0F88\n"
576 "LDR R0, [R7,#0x1C]\n"
577 "MOV R1, #0x80\n"
578 "BL sub_FF884940\n"
579 "LDR R0, =0xFF8BD5C8\n"
580 "MOV R1, #0x80\n"
581 "BL sub_FF959550 \n"
582 "LDR R0, [R7,#0x1C]\n"
583 "MOV R2, R8\n"
584 "MOV R1, #0x80\n"
585 "BL sub_FF88484C \n"
586 "TST R0, #1\n"
587 "LDRNE R1, =0xE5F\n"
588 "BNE loc_FF8C1044\n"
589 "loc_FF8C0F74:\n"
590 "LDR R1, [SP,#0x1C]\n"
591 "LDR R0, [R1,#0x90]\n"
592 "LDR R1, [R1,#0x8C]\n"
593 "BLX R1\n"
594 "B loc_FF8C1478\n"
595 "loc_FF8C0F88:\n"
596 "CMP R1, #0x27\n"
597 "BNE loc_FF8C0FD0\n"
598 "ADD R1, SP, #0xC\n"
599 "BL sub_FF8C0E30 \n"
600 "LDR R0, [R7,#0x1C]\n"
601 "MOV R1, #0x100\n"
602 "BL sub_FF884940\n"
603 "LDR R0, =0xFF8BD5D8\n"
604 "MOV R1, #0x100\n"
605 "BL sub_FF959EE0 \n"
606 "LDR R0, [R7,#0x1C]\n"
607 "MOV R2, R8\n"
608 "MOV R1, #0x100\n"
609 "BL sub_FF88484C \n"
610 "TST R0, #1\n"
611 "BEQ loc_FF8C0F74\n"
612 "LDR R1, =0xE69\n"
613 "B loc_FF8C1044\n"
614 "loc_FF8C0FD0:\n"
615 "CMP R1, #0x28\n"
616 "BNE loc_FF8C0FE8\n"
617 "loc_FF8C0FD8:\n"
618 "LDR R0, [SP,#0x1C]\n"
619 "ADD R1, SP, #0xC\n"
620 "BL sub_FF8C0E30 \n"
621 "B loc_FF8C0F74\n"
622 "loc_FF8C0FE8:\n"
623 "CMP R1, #0x2B\n"
624 "BNE loc_FF8C1000\n"
625 "BL sub_FF8B0A2C \n"
626 "BL sub_FF8B1650 \n"
627 "BL sub_FF8B11A4 \n"
628 "B loc_FF8C0F74\n"
629 "loc_FF8C1000:\n"
630 "CMP R1, #0x2C\n"
631 "BNE loc_FF8C1050\n"
632 "LDR R0, [R7,#0x1C]\n"
633 "MOV R1, #4\n"
634 "BL sub_FF884940\n"
635 "LDR R1, =0xFF8BD5F8\n"
636 "LDR R0, =0xFFFFF400\n"
637 "MOV R2, #4\n"
638 "BL sub_FF8B04A8\n"
639 "BL sub_FF8B0730 \n"
640 "LDR R0, [R7,#0x1C]\n"
641 "MOV R2, R8\n"
642 "MOV R1, #4\n"
643 "BL sub_FF884768 \n"
644 "TST R0, #1\n"
645 "BEQ loc_FF8C0F74\n"
646 "LDR R1, =0xE91\n"
647 "loc_FF8C1044:\n"
648 "LDR R0, =0xFF8BDC38\n"
649 "BL sub_FF81E88C\n"
650 "B loc_FF8C0F74\n"
651 "loc_FF8C1050:\n"
652 "LDR R0, [SP,#0x1C]\n"
653 "MOV R4, #1\n"
654 "LDR R1, [R0]\n"
655 "CMP R1, #0x11\n"
656 "CMPNE R1, #0x12\n"
657 "BNE loc_FF8C10C0\n"
658 "LDR R1, [R0,#0x7C]\n"
659 "ADD R1, R1, R1,LSL#1\n"
660 "ADD R1, R0, R1,LSL#2\n"
661 "SUB R1, R1, #8\n"
662 "LDMIA R1, {R2-R4}\n"
663 "STMIA R6, {R2-R4}\n"
664 "BL sub_FF8BF7B0\n"
665 "LDR R0, [SP,#0x1C]\n"
666 "LDR R1, [R0,#0x7C]\n"
667 "LDR R3, [R0,#0x8C]\n"
668 "LDR R2, [R0,#0x90]\n"
669 "ADD R0, R0, #4\n"
670 "BLX R3\n"
671 "LDR R0, [SP,#0x1C]\n"
672 "BL sub_FF8C2550 \n"
673 "LDR R0, [SP,#0x1C]\n"
674 "LDR R1, [R0,#0x7C]\n"
675 "LDR R3, [R0,#0x94]\n"
676 "LDR R2, [R0,#0x98]\n"
677 "ADD R0, R0, #4\n"
678 "BLX R3\n"
679 "B loc_FF8C13B8\n"
680 "loc_FF8C10C0:\n"
681 "CMP R1, #0x13\n"
682 "CMPNE R1, #0x14\n"
683 "CMPNE R1, #0x15\n"
684 "CMPNE R1, #0x16\n"
685 "BNE loc_FF8C1178\n"
686 "ADD R3, SP, #0xC\n"
687 "MOV R2, SP\n"
688 "ADD R1, SP, #0x10\n"
689 "BL sub_FF8BFA8C \n"
690 "CMP R0, #1\n"
691 "MOV R4, R0\n"
692 "CMPNE R4, #5\n"
693 "BNE loc_FF8C1114\n"
694 "LDR R0, [SP,#0x1C]\n"
695 "MOV R2, R4\n"
696 "LDR R1, [R0,#0x7C]!\n"
697 "LDR R12, [R0,#0x10]!\n"
698 "LDR R3, [R0,#4]\n"
699 "MOV R0, SP\n"
700 "BLX R12\n"
701 "B loc_FF8C114C\n"
702 "loc_FF8C1114:\n"
703 "LDR R0, [SP,#0x1C]\n"
704 "CMP R4, #2\n"
705 "LDR R3, [R0,#0x90]\n"
706 "CMPNE R4, #6\n"
707 "BNE loc_FF8C1160\n"
708 "LDR R12, [R0,#0x8C]\n"
709 "MOV R0, SP\n"
710 "MOV R2, R4\n"
711 "MOV R1, #1\n"
712 "BLX R12\n"
713 "LDR R0, [SP,#0x1C]\n"
714 "MOV R2, SP\n"
715 "ADD R1, SP, #0x10\n"
716 "BL sub_FF8C0B38 \n"
717 "loc_FF8C114C:\n"
718 "LDR R0, [SP,#0x1C]\n"
719 "LDR R2, [SP,#0xC]\n"
720 "MOV R1, R4\n"
721 "BL sub_FF8C0DD0 \n"
722 "B loc_FF8C13B8\n"
723 "loc_FF8C1160:\n"
724 "LDR R1, [R0,#0x7C]\n"
725 "LDR R12, [R0,#0x8C]\n"
726 "ADD R0, R0, #4\n"
727 "MOV R2, R4\n"
728 "BLX R12\n"
729 "B loc_FF8C13B8\n"
730 "loc_FF8C1178:\n"
731 "CMP R1, #0x22\n"
732 "CMPNE R1, #0x23\n"
733 "BNE loc_FF8C11C4\n"
734 "LDR R1, [R0,#0x7C]\n"
735 "ADD R1, R1, R1,LSL#1\n"
736 "ADD R1, R0, R1,LSL#2\n"
737 "SUB R1, R1, #8\n"
738 "LDMIA R1, {R2-R4}\n"
739 "STMIA R6, {R2-R4}\n"
740 "BL sub_FF8BECF4 \n"
741 "LDR R0, [SP,#0x1C]\n"
742 "LDR R1, [R0,#0x7C]\n"
743 "LDR R3, [R0,#0x8C]\n"
744 "LDR R2, [R0,#0x90]\n"
745 "ADD R0, R0, #4\n"
746 "BLX R3\n"
747 "LDR R0, [SP,#0x1C]\n"
748 "BL sub_FF8BEFF4 \n"
749 "B loc_FF8C13B8\n"
750 "loc_FF8C11C4:\n"
751 "ADD R1, R0, #4\n"
752 "LDMIA R1, {R2,R3,R12}\n"
753 "STMIA R6, {R2,R3,R12}\n"
754 "LDR R1, [R0]\n"
755 "CMP R1, #0x25\n"
756 "ADDLS PC, PC, R1,LSL#2\n"
757 "B loc_FF8C1398\n"
758 "loc_FF8C11E0:\n"
759 "B loc_FF8C1278\n"
760 "loc_FF8C11E4:\n"
761 "B loc_FF8C1278\n"
762 "loc_FF8C11E8:\n"
763 "B loc_FF8C1280\n"
764 "loc_FF8C11EC:\n"
765 "B loc_FF8C1288\n"
766 "loc_FF8C11F0:\n"
767 "B loc_FF8C1288\n"
768 "loc_FF8C11F4:\n"
769 "B loc_FF8C1288\n"
770 "loc_FF8C11F8:\n"
771 "B loc_FF8C1278\n"
772 "loc_FF8C11FC:\n"
773 "B loc_FF8C1280\n"
774 "loc_FF8C1200:\n"
775 "B loc_FF8C1288\n"
776 "loc_FF8C1204:\n"
777 "B loc_FF8C1288\n"
778 "loc_FF8C1208:\n"
779 "B loc_FF8C12A0\n"
780 "loc_FF8C120C:\n"
781 "B loc_FF8C12A0\n"
782 "loc_FF8C1210:\n"
783 "B loc_FF8C138C\n"
784 "loc_FF8C1214:\n"
785 "B loc_FF8C1394\n"
786 "loc_FF8C1218:\n"
787 "B loc_FF8C1394\n"
788 "loc_FF8C121C:\n"
789 "B loc_FF8C1394\n"
790 "loc_FF8C1220:\n"
791 "B loc_FF8C1394\n"
792 "loc_FF8C1224:\n"
793 "B loc_FF8C1398\n"
794 "loc_FF8C1228:\n"
795 "B loc_FF8C1398\n"
796 "loc_FF8C122C:\n"
797 "B loc_FF8C1398\n"
798 "loc_FF8C1230:\n"
799 "B loc_FF8C1398\n"
800 "loc_FF8C1234:\n"
801 "B loc_FF8C1398\n"
802 "loc_FF8C1238:\n"
803 "B loc_FF8C1398\n"
804 "loc_FF8C123C:\n"
805 "B loc_FF8C1290\n"
806 "loc_FF8C1240:\n"
807 "B loc_FF8C1298\n"
808 "loc_FF8C1244:\n"
809 "B loc_FF8C1298\n"
810 "loc_FF8C1248:\n"
811 "B loc_FF8C12AC\n"
812 "loc_FF8C124C:\n"
813 "B loc_FF8C12AC\n"
814 "loc_FF8C1250:\n"
815 "B loc_FF8C12B4\n"
816 "loc_FF8C1254:\n"
817 "B loc_FF8C12E4\n"
818 "loc_FF8C1258:\n"
819 "B loc_FF8C1314\n"
820 "loc_FF8C125C:\n"
821 "B loc_FF8C1344\n"
822 "loc_FF8C1260:\n"
823 "B loc_FF8C1374\n"
824 "loc_FF8C1264:\n"
825 "B loc_FF8C1374\n"
826 "loc_FF8C1268:\n"
827 "B loc_FF8C1398\n"
828 "loc_FF8C126C:\n"
829 "B loc_FF8C1398\n"
830 "loc_FF8C1270:\n"
831 "B loc_FF8C137C\n"
832 "loc_FF8C1274:\n"
833 "B loc_FF8C1384\n"
834 "loc_FF8C1278:\n"
835 "BL sub_FF8BDAE0\n"
836 "B loc_FF8C1398\n"
837 "loc_FF8C1280:\n"
838 "BL sub_FF8BDD64\n"
839 "B loc_FF8C1398\n"
840 "loc_FF8C1288:\n"
841 "BL sub_FF8BDF6C\n"
842 "B loc_FF8C1398\n"
843 "loc_FF8C1290:\n"
844 "BL sub_FF8BE1E4\n"
845 "B loc_FF8C1398\n"
846 "loc_FF8C1298:\n"
847 "BL sub_FF8BE3DC\n"
848 "B loc_FF8C1398\n"
849 "loc_FF8C12A0:\n"
850
851 "BL sub_FF8BE698_my\n"
852 "MOV R4, #0\n"
853 "B loc_FF8C1398\n"
854 "loc_FF8C12AC:\n"
855 "BL sub_FF8BE7D8\n"
856 "B loc_FF8C1398\n"
857 "loc_FF8C12B4:\n"
858 "LDRH R1, [R0,#4]\n"
859 "STRH R1, [SP,#0x10]\n"
860 "LDRH R1, [R5,#2]\n"
861 "STRH R1, [SP,#0x12]\n"
862 "LDRH R1, [R5,#4]\n"
863 "STRH R1, [SP,#0x14]\n"
864 "LDRH R1, [R5,#6]\n"
865 "STRH R1, [SP,#0x16]\n"
866 "LDRH R1, [R0,#0xC]\n"
867 "STRH R1, [SP,#0x18]\n"
868 "BL sub_FF8C21FC \n"
869 "B loc_FF8C1398\n"
870 "loc_FF8C12E4:\n"
871 "LDRH R1, [R0,#4]\n"
872 "STRH R1, [SP,#0x10]\n"
873 "LDRH R1, [R5,#2]\n"
874 "STRH R1, [SP,#0x12]\n"
875 "LDRH R1, [R5,#4]\n"
876 "STRH R1, [SP,#0x14]\n"
877 "LDRH R1, [R5,#6]\n"
878 "STRH R1, [SP,#0x16]\n"
879 "LDRH R1, [R5,#8]\n"
880 "STRH R1, [SP,#0x18]\n"
881 "BL sub_FF8C2368 \n"
882 "B loc_FF8C1398\n"
883 "loc_FF8C1314:\n"
884 "LDRH R1, [R5]\n"
885 "STRH R1, [SP,#0x10]\n"
886 "LDRH R1, [R0,#6]\n"
887 "STRH R1, [SP,#0x12]\n"
888 "LDRH R1, [R5,#4]\n"
889 "STRH R1, [SP,#0x14]\n"
890 "LDRH R1, [R5,#6]\n"
891 "STRH R1, [SP,#0x16]\n"
892 "LDRH R1, [R5,#8]\n"
893 "STRH R1, [SP,#0x18]\n"
894 "BL sub_FF8C2414 \n"
895 "B loc_FF8C1398\n"
896 "loc_FF8C1344:\n"
897 "LDRH R1, [R5]\n"
898 "STRH R1, [SP,#0x10]\n"
899 "LDRH R1, [R5,#2]\n"
900 "STRH R1, [SP,#0x12]\n"
901 "LDRH R1, [R5,#4]\n"
902 "STRH R1, [SP,#0x14]\n"
903 "LDRH R1, [R5,#6]\n"
904 "STRH R1, [SP,#0x16]\n"
905 "LDRH R1, [R0,#0xC]\n"
906 "STRH R1, [SP,#0x18]\n"
907 "BL sub_FF8C24B4 \n"
908 "B loc_FF8C1398\n"
909 "loc_FF8C1374:\n"
910 "BL sub_FF8BEB30\n"
911 "B loc_FF8C1398\n"
912 "loc_FF8C137C:\n"
913 "BL sub_FF8BF0F8\n"
914 "B loc_FF8C1398\n"
915 "loc_FF8C1384:\n"
916 "BL sub_FF8BF334\n"
917 "B loc_FF8C1398\n"
918 "loc_FF8C138C:\n"
919 "BL sub_FF8BF4B0\n"
920 "B loc_FF8C1398\n"
921 "loc_FF8C1394:\n"
922 "BL sub_FF8BF64C\n"
923 "loc_FF8C1398:\n"
924 "LDR R0, [SP,#0x1C]\n"
925 "LDR R1, [R0,#0x7C]\n"
926 "LDR R3, [R0,#0x8C]\n"
927 "LDR R2, [R0,#0x90]\n"
928 "ADD R0, R0, #4\n"
929 "BLX R3\n"
930 "CMP R4, #1\n"
931 "BNE loc_FF8C1400\n"
932 "loc_FF8C13B8:\n"
933 "LDR R0, [SP,#0x1C]\n"
934 "MOV R2, #0xC\n"
935 "LDR R1, [R0,#0x7C]\n"
936 "ADD R1, R1, R1,LSL#1\n"
937 "ADD R0, R0, R1,LSL#2\n"
938 "SUB R4, R0, #8\n"
939 "LDR R0, =0x4372C\n"
940 "ADD R1, SP, #0x10\n"
941 "BL sub_FFB34C1C\n"
942 "LDR R0, =0x43738\n"
943 "MOV R2, #0xC\n"
944 "ADD R1, SP, #0x10\n"
945 "BL sub_FFB34C1C\n"
946 "LDR R0, =0x43744\n"
947 "MOV R2, #0xC\n"
948 "MOV R1, R4\n"
949 "BL sub_FFB34C1C\n"
950 "B loc_FF8C1478\n"
951 "loc_FF8C1400:\n"
952 "LDR R0, [SP,#0x1C]\n"
953 "LDR R0, [R0]\n"
954 "CMP R0, #0xB\n"
955 "BNE loc_FF8C1448\n"
956 "MOV R3, #0\n"
957 "STR R3, [SP]\n"
958 "MOV R3, #1\n"
959 "MOV R2, #1\n"
960 "MOV R1, #1\n"
961 "MOV R0, #0\n"
962 "BL sub_FF8BD8E8\n"
963 "MOV R3, #0\n"
964 "STR R3, [SP]\n"
965 "MOV R3, #1\n"
966 "MOV R2, #1\n"
967 "MOV R1, #1\n"
968 "MOV R0, #0\n"
969 "B loc_FF8C1474\n"
970 "loc_FF8C1448:\n"
971 "MOV R3, #1\n"
972 "MOV R2, #1\n"
973 "MOV R1, #1\n"
974 "MOV R0, #1\n"
975 "STR R3, [SP]\n"
976 "BL sub_FF8BD8E8\n"
977 "MOV R3, #1\n"
978 "MOV R2, #1\n"
979 "MOV R1, #1\n"
980 "MOV R0, #1\n"
981 "STR R3, [SP]\n"
982 "loc_FF8C1474:\n"
983 "BL sub_FF8BDA28\n"
984 "loc_FF8C1478:\n"
985 "LDR R0, [SP,#0x1C]\n"
986 "BL sub_FF8C2188 \n"
987 "B loc_FF8C0EA0\n"
988
989 );
990 };
991
992 void __attribute__((naked,noinline)) sub_FF8BE698_my(){
993 asm volatile(
994 "STMFD SP!, {R4-R8,LR}\n"
995 "LDR R7, =0x4440\n"
996 "MOV R4, R0\n"
997 "LDR R0, [R7,#0x1C]\n"
998 "MOV R1, #0x3E\n"
999 "BL sub_FF884940\n"
1000 "LDRSH R0, [R4,#4]\n"
1001 "MOV R2, #0\n"
1002 "MOV R1, #0\n"
1003 "BL sub_FF8BD64C\n"
1004 "MOV R6, R0\n"
1005 "LDRSH R0, [R4,#6]\n"
1006 "BL sub_FF8BD75C\n"
1007 "LDRSH R0, [R4,#8]\n"
1008 "BL sub_FF8BD7B4\n"
1009 "LDRSH R0, [R4,#0xA]\n"
1010 "BL sub_FF8BD80C\n"
1011 "LDRSH R0, [R4,#0xC]\n"
1012 "MOV R1, #0\n"
1013 "BL sub_FF8BD864\n"
1014 "MOV R5, R0\n"
1015 "LDR R0, [R4]\n"
1016 "LDR R8, =0x43744\n"
1017 "CMP R0, #0xB\n"
1018 "MOVEQ R6, #0\n"
1019 "MOVEQ R5, #0\n"
1020 "BEQ loc_FF8BE72C\n"
1021 "CMP R6, #1\n"
1022 "BNE loc_FF8BE72C\n"
1023 "LDRSH R0, [R4,#4]\n"
1024 "LDR R1, =0xFF8BD5B8\n"
1025 "MOV R2, #2\n"
1026 "BL sub_FF95989C \n"
1027 "STRH R0, [R4,#4]\n"
1028 "MOV R0, #0\n"
1029 "STR R0, [R7,#0x28]\n"
1030 "B loc_FF8BE734\n"
1031 "loc_FF8BE72C:\n"
1032 "LDRH R0, [R8]\n"
1033 "STRH R0, [R4,#4]\n"
1034 "loc_FF8BE734:\n"
1035 "CMP R5, #1\n"
1036 "LDRNEH R0, [R8,#8]\n"
1037 "BNE loc_FF8BE750\n"
1038 "LDRSH R0, [R4,#0xC]\n"
1039 "LDR R1, =0xFF8BD63C\n"
1040 "MOV R2, #0x20\n"
1041 "BL sub_FF8C21B8\n"
1042 "loc_FF8BE750:\n"
1043 "STRH R0, [R4,#0xC]\n"
1044 "LDRSH R0, [R4,#6]\n"
1045
1046 "BL sub_FF8B079C_my \n"
1047 "LDRSH R0, [R4,#8]\n"
1048 "MOV R1, #1\n"
1049 "BL sub_FF8B0EEC \n"
1050 "MOV R1, #0\n"
1051 "ADD R0, R4, #8\n"
1052 "BL sub_FF8B0F74 \n"
1053 "LDRSH R0, [R4,#0xE]\n"
1054 "BL sub_FF8B8A58 \n"
1055 "LDR R4, =0xBB8\n"
1056 "CMP R6, #1\n"
1057 "BNE loc_FF8BE7A8\n"
1058 "LDR R0, [R7,#0x1C]\n"
1059 "MOV R2, R4\n"
1060 "MOV R1, #2\n"
1061 "BL sub_FF88484C \n"
1062 "TST R0, #1\n"
1063 "LDRNE R1, =0x5A3\n"
1064 "LDRNE R0, =0xFF8BDC38\n"
1065 "BLNE sub_FF81E88C\n"
1066 "loc_FF8BE7A8:\n"
1067 "CMP R5, #1\n"
1068 "LDMNEFD SP!, {R4-R8,PC}\n"
1069 "LDR R0, [R7,#0x1C]\n"
1070 "MOV R2, R4\n"
1071 "MOV R1, #0x20\n"
1072 "BL sub_FF88484C \n"
1073 "TST R0, #1\n"
1074 "LDRNE R1, =0x5A8\n"
1075 "LDRNE R0, =0xFF8BDC38\n"
1076 "LDMNEFD SP!, {R4-R8,LR}\n"
1077 "BNE sub_FF81E88C\n"
1078 "LDMFD SP!, {R4-R8,PC}\n"
1079 );
1080 };
1081
1082 void __attribute__((naked,noinline)) sub_FF8B079C_my()
1083 {
1084 asm volatile(
1085 "STMFD SP!, {R4-R6,LR}\n"
1086 "LDR R5, =0x4150\n"
1087 "MOV R4, R0\n"
1088 "LDR R0, [R5,#4]\n"
1089 "CMP R0, #1\n"
1090 "LDRNE R1, =0x146\n"
1091 "LDRNE R0, =0xFF8B05A0\n"
1092 "BLNE sub_FF81E88C\n"
1093 "CMN R4, #0xC00\n"
1094 "LDREQSH R4, [R5,#2]\n"
1095 "CMN R4, #0xC00\n"
1096 "MOVEQ R1, #0x14C\n"
1097 "LDREQ R0, =0xFF8B05A0\n"
1098 "STRH R4, [R5,#2]\n"
1099 "BLEQ sub_FF81E88C\n"
1100 "MOV R0, R4\n"
1101
1102
1103 "BL apex2us\n"
1104
1105 "MOV R4, R0\n"
1106 "BL sub_FF8F526C\n"
1107 "MOV R0, R4\n"
1108 "BL sub_FF8FE138\n"
1109 "TST R0, #1\n"
1110 "LDRNE R1, =0x151\n"
1111 "LDMNEFD SP!, {R4-R6,LR}\n"
1112 "LDRNE R0, =0xFF8B05A0\n"
1113 "BNE sub_FF81E88C\n"
1114 "LDMFD SP!, {R4-R6,PC}\n"
1115 ".ltorg"
1116 );
1117 };