This source file includes following definitions.
- capt_seq_task
- sub_FF94FE74_my
- sub_FF877278_my
- exp_drv_task
- sub_FF8B7A94_my
- sub_FF8AA1F0_my
1 #include "lolevel.h"
2 #include "platform.h"
3 #include "core.h"
4 #include "conf.h"
5
6 static long *nrflag = (long*)(0x6cb8-0x08);
7
8 #include "../../../generic/capt_seq.c"
9
10
11
12 void __attribute__((naked,noinline)) capt_seq_task() {
13 asm volatile (
14 " STMFD SP!, {R3-R9,LR} \n"
15 " LDR R6, =0x2B04 \n"
16 " LDR R4, =0x4A5C8 \n"
17 " MOV R9, #1 \n"
18 " MOV R7, #0 \n"
19 "loc_FF876E84:\n"
20 " LDR R0, [R6, #4] \n"
21 " MOV R2, #0 \n"
22 " MOV R1, SP \n"
23 " BL sub_FF837F08 \n"
24 " TST R0, #1 \n"
25 " BEQ loc_FF876EB0 \n"
26 " LDR R1, =0x5B3 \n"
27 " LDR R0, =0xFF8769B0 \n"
28 " BL sub_FF81E88C \n"
29 " BL sub_FF81E844 \n"
30 " LDMFD SP!, {R3-R9,PC} \n"
31 "loc_FF876EB0:\n"
32 " LDR R0, [SP] \n"
33 " LDR R1, [R0] \n"
34 " CMP R1, #0x1F \n"
35 " ADDLS PC, PC, R1, LSL #2 \n"
36 " B loc_FF877154 \n"
37 " B loc_FF876F44 \n"
38 " B loc_FF876FA8 \n"
39 " B loc_FF876FE4 \n"
40 " B loc_FF876FF8 \n"
41 " B loc_FF876FF0 \n"
42 " B loc_FF877000 \n"
43 " B loc_FF877008 \n"
44 " B loc_FF877010 \n"
45 " B loc_FF877068 \n"
46 " B loc_FF877090 \n"
47 " B loc_FF877074 \n"
48 " B loc_FF877080 \n"
49 " B loc_FF877088 \n"
50 " B loc_FF877098 \n"
51 " B loc_FF8770A0 \n"
52 " B loc_FF8770A8 \n"
53 " B loc_FF8770B0 \n"
54 " B loc_FF8770B8 \n"
55 " B loc_FF8770C4 \n"
56 " B loc_FF8770CC \n"
57 " B loc_FF8770D4 \n"
58 " B loc_FF8770DC \n"
59 " B loc_FF8770E4 \n"
60 " B loc_FF8770F0 \n"
61 " B loc_FF8770F8 \n"
62 " B loc_FF877100 \n"
63 " B loc_FF877108 \n"
64 " B loc_FF877110 \n"
65 " B loc_FF877118 \n"
66 " B loc_FF877120 \n"
67 " B loc_FF87712C \n"
68 " B loc_FF877160 \n"
69 "loc_FF876F44:\n"
70 " BL sub_FF8777F4 \n"
71 " BL shooting_expo_param_override\n"
72 " BL sub_FF874C6C \n"
73
74
75
76 "MOV R0, #0\n"
77 "STR R0, [R4,#0x24]\n"
78
79 " LDR R0, [R4, #0x24] \n"
80 " CMP R0, #0 \n"
81 " BEQ loc_FF877160 \n"
82 " BL sub_FF87668C \n"
83 " MOV R5, R0 \n"
84 " LDR R0, [R4, #0x24] \n"
85 " CMP R0, #0 \n"
86 " BEQ loc_FF876F8C \n"
87 " MOV R0, #0xC \n"
88 " BL sub_FF87BB14 \n"
89 " TST R0, #1 \n"
90 " STRNE R9, [R6, #0x10] \n"
91 " LDRNE R0, [R5, #8] \n"
92 " ORRNE R0, R0, #0x40000000 \n"
93 " STRNE R0, [R5, #8] \n"
94 " BNE loc_FF877160 \n"
95 "loc_FF876F8C:\n"
96 " MOV R0, R5 \n"
97 " BL sub_FF876930 \n"
98 " MOV R0, R5 \n"
99 " BL sub_FF94FE74_my \n"
100 " BL capt_seq_hook_raw_here\n"
101 " TST R0, #1 \n"
102 " STRNE R9, [R6, #0x10] \n"
103 " B loc_FF877160 \n"
104 "loc_FF876FA8:\n"
105 " LDR R0, [R4, #0x24] \n"
106 " CMP R0, #0 \n"
107 " BNE loc_FF876FD4 \n"
108 " MOV R0, #0xC \n"
109 " BL sub_FF87BB14 \n"
110 " TST R0, #1 \n"
111 " LDRNE R0, [SP] \n"
112 " MOVNE R1, #1 \n"
113 " LDRNE R2, [R0, #0xC] \n"
114 " MOVNE R0, #1 \n"
115 " BNE loc_FF877060 \n"
116 "loc_FF876FD4:\n"
117 " LDR R0, [SP] \n"
118 " BL sub_FF877278_my \n"
119 "loc_FF876FDC:\n"
120 " STR R7, [R4, #0x24] \n"
121 " B loc_FF877160 \n"
122 "loc_FF876FE4:\n"
123 " MOV R0, #1 \n"
124 " BL sub_FF877A50 \n"
125 " B loc_FF877160 \n"
126 "loc_FF876FF0:\n"
127 " BL sub_FF877430 \n"
128 " B loc_FF876FDC \n"
129 "loc_FF876FF8:\n"
130 " BL sub_FF8777D4 \n"
131 " B loc_FF876FDC \n"
132 "loc_FF877000:\n"
133 " BL sub_FF8777DC \n"
134 " B loc_FF877160 \n"
135 "loc_FF877008:\n"
136 " BL sub_FF877970 \n"
137 " B loc_FF87706C \n"
138 "loc_FF877010:\n"
139 " LDR R5, [R0, #0xC] \n"
140 " BL sub_FF8777E4 \n"
141 " MOV R0, R5 \n"
142 " BL sub_FF94EB30 \n"
143 " TST R0, #1 \n"
144 " MOV R8, R0 \n"
145 " BNE loc_FF877050 \n"
146 " BL sub_FF888CD8 \n"
147 " STR R0, [R5, #0x18] \n"
148 " MOV R0, R5 \n"
149 " BL sub_FF94FD8C \n"
150 " MOV R0, R5 \n"
151 " BL sub_FF95018C \n"
152 " MOV R8, R0 \n"
153 " LDR R0, [R5, #0x18] \n"
154 " BL sub_FF888EEC \n"
155 "loc_FF877050:\n"
156 " BL sub_FF8777D4 \n"
157 " MOV R2, R5 \n"
158 " MOV R1, #9 \n"
159 " MOV R0, R8 \n"
160 "loc_FF877060:\n"
161 " BL sub_FF875158 \n"
162 " B loc_FF877160 \n"
163 "loc_FF877068:\n"
164 " BL sub_FF8779D0 \n"
165 "loc_FF87706C:\n"
166 " BL sub_FF874C6C \n"
167 " B loc_FF877160 \n"
168 "loc_FF877074:\n"
169 " LDR R0, [R4, #0x54] \n"
170 " BL sub_FF877DE0 \n"
171 " B loc_FF877160 \n"
172 "loc_FF877080:\n"
173 " BL sub_FF878094 \n"
174 " B loc_FF877160 \n"
175 "loc_FF877088:\n"
176 " BL sub_FF878128 \n"
177 " B loc_FF877160 \n"
178 "loc_FF877090:\n"
179 " BL sub_FF8777D4 \n"
180 " B loc_FF877160 \n"
181 "loc_FF877098:\n"
182 " BL sub_FF94ED48 \n"
183 " B loc_FF877160 \n"
184 "loc_FF8770A0:\n"
185 " BL sub_FF94EF5C \n"
186 " B loc_FF877160 \n"
187 "loc_FF8770A8:\n"
188 " BL sub_FF94EFF4 \n"
189 " B loc_FF877160 \n"
190 "loc_FF8770B0:\n"
191 " BL sub_FF94F0C4 \n"
192 " B loc_FF877160 \n"
193 "loc_FF8770B8:\n"
194 " MOV R0, #0 \n"
195 " BL sub_FF94F314 \n"
196 " B loc_FF877160 \n"
197 "loc_FF8770C4:\n"
198 " BL sub_FF94F470 \n"
199 " B loc_FF877160 \n"
200 "loc_FF8770CC:\n"
201 " BL sub_FF94F500 \n"
202 " B loc_FF877160 \n"
203 "loc_FF8770D4:\n"
204 " BL sub_FF94F5C0 \n"
205 " B loc_FF877160 \n"
206 "loc_FF8770DC:\n"
207 " BL sub_FF877BCC \n"
208 " B loc_FF877160 \n"
209 "loc_FF8770E4:\n"
210 " BL sub_FF877C6C \n"
211 " BL sub_FF835F60 \n"
212 " B loc_FF877160 \n"
213 "loc_FF8770F0:\n"
214 " BL sub_FF94F190 \n"
215 " B loc_FF877160 \n"
216 "loc_FF8770F8:\n"
217 " BL sub_FF94F1FC \n"
218 " B loc_FF877160 \n"
219 "loc_FF877100:\n"
220 " BL sub_FF87A1E8 \n"
221 " B loc_FF877160 \n"
222 "loc_FF877108:\n"
223 " BL sub_FF87A254 \n"
224 " B loc_FF877160 \n"
225 "loc_FF877110:\n"
226 " BL sub_FF94F740 \n"
227 " B loc_FF877160 \n"
228 "loc_FF877118:\n"
229 " BL sub_FF94F7AC \n"
230 " B loc_FF877160 \n"
231 "loc_FF877120:\n"
232 " BL sub_FF87A2B0 \n"
233 " BL sub_FF87A270 \n"
234 " B loc_FF877160 \n"
235 "loc_FF87712C:\n"
236 " MOV R0, #1 \n"
237 " BL sub_FF950A04 \n"
238 " MOV R0, #1 \n"
239 " BL sub_FF950B14 \n"
240 " LDRH R0, [R4, #0x98] \n"
241 " CMP R0, #4 \n"
242 " BNE loc_FF877160 \n"
243 " BL sub_FF87A254 \n"
244 " BL sub_FF87A728 \n"
245 " B loc_FF877160 \n"
246 "loc_FF877154:\n"
247 " LDR R1, =0x708 \n"
248 " LDR R0, =0xFF8769B0 \n"
249 " BL sub_FF81E88C \n"
250 "loc_FF877160:\n"
251 " LDR R0, [SP] \n"
252 " LDR R1, [R0, #4] \n"
253 " LDR R0, [R6] \n"
254 " BL sub_FF8809C4 \n"
255 " LDR R5, [SP] \n"
256 " LDR R0, [R5, #8] \n"
257 " CMP R0, #0 \n"
258 " LDREQ R1, =0x131 \n"
259 " LDREQ R0, =0xFF8769B0 \n"
260 " BLEQ sub_FF81E88C \n"
261 " STR R7, [R5, #8] \n"
262 " B loc_FF876E84 \n"
263 );
264
265 }
266
267
268
269 void __attribute__((naked,noinline)) sub_FF94FE74_my(){
270 asm volatile(
271 " STMFD SP!, {R0-R8,LR} \n"
272 " MOV R4, R0 \n"
273 " BL sub_FF950D00 \n"
274 " MVN R1, #0 \n"
275 " BL sub_FF8809F8 \n"
276 " LDR R5, =0x6CB0 \n"
277 " LDR R0, [R5, #0xC] \n"
278 " CMP R0, #0 \n"
279 " BNE loc_FF94FEC4 \n"
280 " MOV R1, #1 \n"
281 " MOV R0, #0 \n"
282 " BL sub_FF838750 \n"
283 " STR R0, [R5, #0xC] \n"
284 " MOV R3, #0 \n"
285 " STR R3, [SP] \n"
286 " LDR R3, =0xFF94F800 \n"
287 " LDR R0, =0xFF9500F4 \n"
288 " MOV R2, #0x400 \n"
289 " MOV R1, #0x17 \n"
290 " BL sub_FF83871C \n"
291 "loc_FF94FEC4:\n"
292 " MOV R2, #4 \n"
293 " ADD R1, SP, #8 \n"
294 " MOV R0, #0x8A \n"
295 " BL sub_FF888B48 \n"
296 " TST R0, #1 \n"
297 " LDRNE R1, =0x3C5 \n"
298 " LDRNE R0, =0xFF94FA98 \n"
299 " BLNE sub_FF81E88C \n"
300 " LDR R6, =0x4A690 \n"
301 " LDR R8, =0x4A5C8 \n"
302 " LDR R3, [R6] \n"
303 " LDRSH R2, [R6, #0xC] \n"
304 " LDRSH R1, [R6, #0xE] \n"
305 " LDR R0, [R8, #0x8C] \n"
306 " BL sub_FF916320 \n"
307 " BL sub_FF85E238 \n"
308 " LDR R3, =0x6CB8 \n"
309 " STRH R0, [R4, #0xA4] \n"
310 " SUB R2, R3, #4 \n"
311 " STRD R2, [SP] \n"
312 " MOV R1, R0 \n"
313 " LDRH R0, [R8, #0x5C] \n"
314 " LDRSH R2, [R6, #0xC] \n"
315 " SUB R3, R3, #8 \n"
316 " BL sub_FF9523BC \n"
317 " BL wait_until_remote_button_is_released\n"
318 " BL capt_seq_hook_set_nr\n"
319 " B sub_FF94FF28\n"
320 );
321 }
322
323
324
325 void __attribute__((naked,noinline)) sub_FF877278_my(){
326 asm volatile(
327 " STMFD SP!, {R4-R6,LR} \n"
328 " LDR R4, [R0, #0xC] \n"
329 " LDR R6, =0x4A5C8 \n"
330 " LDR R0, [R4, #8] \n"
331 " MOV R5, #0 \n"
332 " ORR R0, R0, #1 \n"
333 " STR R0, [R4, #8] \n"
334 " LDR R0, [R6, #0x24] \n"
335 " CMP R0, #0 \n"
336 " MOVEQ R0, #2 \n"
337 " BLEQ sub_FF873370 \n"
338 " BL sub_FF8777E4 \n"
339 " LDR R0, [R6, #0x24] \n"
340 " CMP R0, #0 \n"
341 " BNE loc_FF877354 \n"
342 " MOV R0, #0 \n"
343 " BL sub_FF950A04 \n"
344 " MOV R0, #0 \n"
345 " BL sub_FF950B14 \n"
346 " MOV R0, R4 \n"
347 " BL sub_FF877B74 \n"
348 " MOV R0, R4 \n"
349 " BL sub_FF94E780 \n"
350 " CMP R0, #0 \n"
351 " BEQ loc_FF877308 \n"
352 " BL sub_FF950A44 \n"
353 " BL sub_FF950B58 \n"
354 " BL sub_FF950BA8 \n"
355 " MOV R0, R4 \n"
356 " BL sub_FF94E864 \n"
357 " TST R0, #1 \n"
358 " MOVNE R2, R4 \n"
359 " LDMNEFD SP!, {R4-R6,LR} \n"
360 " MOVNE R1, #1 \n"
361 " BNE sub_FF875158 \n"
362 " B loc_FF87731C \n"
363 "loc_FF877308:\n"
364 " MOV R0, R4 \n"
365 " BL sub_FF94E800 \n"
366 " BL sub_FF950A44 \n"
367 " BL sub_FF950B58 \n"
368 " BL sub_FF950BA8 \n"
369 "loc_FF87731C:\n"
370 " MOV R0, R4 \n"
371 " BL sub_FF876930 \n"
372 " LDRH R0, [R6] \n"
373 " SUB R12, R0, #0x8200 \n"
374 " SUBS R12, R12, #0xF \n"
375 " LDREQ R0, [R4, #0x18] \n"
376 " BLEQ sub_FF872E38 \n"
377 " MOV R0, R4 \n"
378 " BL sub_FF94FD8C \n"
379 " BL sub_FF95080C \n"
380 " MOV R0, R4 \n"
381 " BL sub_FF94FE74_my \n"
382 " MOV R5, R0 \n"
383 " BL capt_seq_hook_raw_here\n"
384 " B loc_FF877364 \n"
385 "loc_FF877354:\n"
386 " LDR R0, =0x2B04 \n"
387 " LDR R0, [R0, #0x10] \n"
388 " CMP R0, #0 \n"
389 " MOVNE R5, #0x1D \n"
390 "loc_FF877364:\n"
391 " BL sub_FF87A254 \n"
392 " BL sub_FF87A29C \n"
393 " BL sub_FF87A2DC \n"
394 " MOV R2, R4 \n"
395 " MOV R1, #1 \n"
396 " MOV R0, R5 \n"
397 " BL sub_FF875158 \n"
398 " BL sub_FF950130 \n"
399 " CMP R0, #0 \n"
400 " LDRNE R0, [R4, #8] \n"
401 " ORRNE R0, R0, #0x2000 \n"
402 " STRNE R0, [R4, #8] \n"
403 " LDMFD SP!, {R4-R6,PC} \n"
404 );
405 }
406
407
408
409 void __attribute__((naked,noinline)) exp_drv_task(){
410 asm volatile(
411 " STMFD SP!, {R4-R8,LR} \n"
412 " SUB SP, SP, #0x20 \n"
413 " LDR R8, =0xBB8 \n"
414 " LDR R7, =0x4130 \n"
415 " LDR R5, =0x4F45C \n"
416 " MOV R0, #0 \n"
417 " ADD R6, SP, #0x10 \n"
418 " STR R0, [SP, #0xC] \n"
419 "loc_FF8BA2F4:\n"
420 " LDR R0, [R7, #0x20] \n"
421 " MOV R2, #0 \n"
422 " ADD R1, SP, #0x1C \n"
423 " BL sub_FF837F08 \n"
424 " LDR R0, [SP, #0xC] \n"
425 " CMP R0, #1 \n"
426 " BNE loc_FF8BA340 \n"
427 " LDR R0, [SP, #0x1C] \n"
428 " LDR R0, [R0] \n"
429 " CMP R0, #0x13 \n"
430 " CMPNE R0, #0x14 \n"
431 " CMPNE R0, #0x15 \n"
432 " CMPNE R0, #0x16 \n"
433 " BEQ loc_FF8BA45C \n"
434 " CMP R0, #0x28 \n"
435 " BEQ loc_FF8BA434 \n"
436 " ADD R1, SP, #0xC \n"
437 " MOV R0, #0 \n"
438 " BL sub_FF8BA284 \n"
439 "loc_FF8BA340:\n"
440 " LDR R0, [SP, #0x1C] \n"
441 " LDR R1, [R0] \n"
442 " CMP R1, #0x2D \n"
443 " BNE loc_FF8BA370 \n"
444 " LDR R0, [SP, #0x1C] \n"
445 " BL sub_FF8BB544 \n"
446 " LDR R0, [R7, #0x1C] \n"
447 " MOV R1, #1 \n"
448 " BL sub_FF8809C4 \n"
449 " BL sub_FF81E844 \n"
450 " ADD SP, SP, #0x20 \n"
451 " LDMFD SP!, {R4-R8,PC} \n"
452 "loc_FF8BA370:\n"
453 " CMP R1, #0x2C \n"
454 " BNE loc_FF8BA38C \n"
455 " LDR R2, [R0, #0x8C]! \n"
456 " LDR R1, [R0, #4] \n"
457 " MOV R0, R1 \n"
458 " BLX R2 \n"
459 " B loc_FF8BA884 \n"
460 "loc_FF8BA38C:\n"
461 " CMP R1, #0x26 \n"
462 " BNE loc_FF8BA3DC \n"
463 " LDR R0, [R7, #0x1C] \n"
464 " MOV R1, #0x80 \n"
465 " BL sub_FF8809F8 \n"
466 " LDR R0, =0xFF8B69C4 \n"
467 " MOV R1, #0x80 \n"
468 " BL sub_FF94389C \n"
469 " LDR R0, [R7, #0x1C] \n"
470 " MOV R2, R8 \n"
471 " MOV R1, #0x80 \n"
472 " BL sub_FF880904 \n"
473 " TST R0, #1 \n"
474 " LDRNE R1, =0xE57 \n"
475 " BNE loc_FF8BA420 \n"
476 "loc_FF8BA3C8:\n"
477 " LDR R1, [SP, #0x1C] \n"
478 " LDR R0, [R1, #0x90] \n"
479 " LDR R1, [R1, #0x8C] \n"
480 " BLX R1 \n"
481 " B loc_FF8BA884 \n"
482 "loc_FF8BA3DC:\n"
483 " CMP R1, #0x27 \n"
484 " BNE loc_FF8BA42C \n"
485 " ADD R1, SP, #0xC \n"
486 " BL sub_FF8BA284 \n"
487 " LDR R0, [R7, #0x1C] \n"
488 " MOV R1, #0x100 \n"
489 " BL sub_FF8809F8 \n"
490 " LDR R0, =0xFF8B69D4 \n"
491 " MOV R1, #0x100 \n"
492 " BL sub_FF94422C \n"
493 " LDR R0, [R7, #0x1C] \n"
494 " MOV R2, R8 \n"
495 " MOV R1, #0x100 \n"
496 " BL sub_FF880904 \n"
497 " TST R0, #1 \n"
498 " BEQ loc_FF8BA3C8 \n"
499 " LDR R1, =0xE61 \n"
500 "loc_FF8BA420:\n"
501 " LDR R0, =0xFF8B7034 \n"
502 " BL sub_FF81E88C \n"
503 " B loc_FF8BA3C8 \n"
504 "loc_FF8BA42C:\n"
505 " CMP R1, #0x28 \n"
506 " BNE loc_FF8BA444 \n"
507 "loc_FF8BA434:\n"
508 " LDR R0, [SP, #0x1C] \n"
509 " ADD R1, SP, #0xC \n"
510 " BL sub_FF8BA284 \n"
511 " B loc_FF8BA3C8 \n"
512 "loc_FF8BA444:\n"
513 " CMP R1, #0x2B \n"
514 " BNE loc_FF8BA45C \n"
515 " BL sub_FF8AA480 \n"
516 " BL sub_FF8AB0A4 \n"
517 " BL sub_FF8AABF8 \n"
518 " B loc_FF8BA3C8 \n"
519 "loc_FF8BA45C:\n"
520 " LDR R0, [SP, #0x1C] \n"
521 " MOV R4, #1 \n"
522 " LDR R1, [R0] \n"
523 " CMP R1, #0x11 \n"
524 " CMPNE R1, #0x12 \n"
525 " BNE loc_FF8BA4CC \n"
526 " LDR R1, [R0, #0x7C] \n"
527 " ADD R1, R1, R1, LSL #1 \n"
528 " ADD R1, R0, R1, LSL #2 \n"
529 " SUB R1, R1, #8 \n"
530 " LDMIA R1, {R2-R4} \n"
531 " STMIA R6, {R2-R4} \n"
532 " BL sub_FF8B8BA0 \n"
533 " LDR R0, [SP, #0x1C] \n"
534 " LDR R1, [R0, #0x7C] \n"
535 " LDR R3, [R0, #0x8C] \n"
536 " LDR R2, [R0, #0x90] \n"
537 " ADD R0, R0, #4 \n"
538 " BLX R3 \n"
539 " LDR R0, [SP, #0x1C] \n"
540 " BL sub_FF8BB900 \n"
541 " LDR R0, [SP, #0x1C] \n"
542 " LDR R1, [R0, #0x7C] \n"
543 " LDR R3, [R0, #0x94] \n"
544 " LDR R2, [R0, #0x98] \n"
545 " ADD R0, R0, #4 \n"
546 " BLX R3 \n"
547 " B loc_FF8BA7C4 \n"
548 "loc_FF8BA4CC:\n"
549 " CMP R1, #0x13 \n"
550 " CMPNE R1, #0x14 \n"
551 " CMPNE R1, #0x15 \n"
552 " CMPNE R1, #0x16 \n"
553 " BNE loc_FF8BA584 \n"
554 " ADD R3, SP, #0xC \n"
555 " MOV R2, SP \n"
556 " ADD R1, SP, #0x10 \n"
557 " BL sub_FF8B8E7C \n"
558 " CMP R0, #1 \n"
559 " MOV R4, R0 \n"
560 " CMPNE R4, #5 \n"
561 " BNE loc_FF8BA520 \n"
562 " LDR R0, [SP, #0x1C] \n"
563 " MOV R2, R4 \n"
564 " LDR R1, [R0, #0x7C]! \n"
565 " LDR R12, [R0, #0x10]! \n"
566 " LDR R3, [R0, #4] \n"
567 " MOV R0, SP \n"
568 " BLX R12 \n"
569 " B loc_FF8BA558 \n"
570 "loc_FF8BA520:\n"
571 " LDR R0, [SP, #0x1C] \n"
572 " CMP R4, #2 \n"
573 " LDR R3, [R0, #0x90] \n"
574 " CMPNE R4, #6 \n"
575 " BNE loc_FF8BA56C \n"
576 " LDR R12, [R0, #0x8C] \n"
577 " MOV R0, SP \n"
578 " MOV R2, R4 \n"
579 " MOV R1, #1 \n"
580 " BLX R12 \n"
581 " LDR R0, [SP, #0x1C] \n"
582 " MOV R2, SP \n"
583 " ADD R1, SP, #0x10 \n"
584 " BL sub_FF8B9F98 \n"
585 "loc_FF8BA558:\n"
586 " LDR R0, [SP, #0x1C] \n"
587 " LDR R2, [SP, #0xC] \n"
588 " MOV R1, R4 \n"
589 " BL sub_FF8BA224 \n"
590 " B loc_FF8BA7C4 \n"
591 "loc_FF8BA56C:\n"
592 " LDR R1, [R0, #0x7C] \n"
593 " LDR R12, [R0, #0x8C] \n"
594 " ADD R0, R0, #4 \n"
595 " MOV R2, R4 \n"
596 " BLX R12 \n"
597 " B loc_FF8BA7C4 \n"
598 "loc_FF8BA584:\n"
599 " CMP R1, #0x22 \n"
600 " CMPNE R1, #0x23 \n"
601 " BNE loc_FF8BA5D0 \n"
602 " LDR R1, [R0, #0x7C] \n"
603 " ADD R1, R1, R1, LSL #1 \n"
604 " ADD R1, R0, R1, LSL #2 \n"
605 " SUB R1, R1, #8 \n"
606 " LDMIA R1, {R2-R4} \n"
607 " STMIA R6, {R2-R4} \n"
608 " BL sub_FF8B80E4 \n"
609 " LDR R0, [SP, #0x1C] \n"
610 " LDR R1, [R0, #0x7C] \n"
611 " LDR R3, [R0, #0x8C] \n"
612 " LDR R2, [R0, #0x90] \n"
613 " ADD R0, R0, #4 \n"
614 " BLX R3 \n"
615 " LDR R0, [SP, #0x1C] \n"
616 " BL sub_FF8B83E4 \n"
617 " B loc_FF8BA7C4 \n"
618 "loc_FF8BA5D0:\n"
619 " ADD R1, R0, #4 \n"
620 " LDMIA R1, {R2,R3,R12} \n"
621 " STMIA R6, {R2,R3,R12} \n"
622 " LDR R1, [R0] \n"
623 " CMP R1, #0x25 \n"
624 " ADDLS PC, PC, R1, LSL #2 \n"
625 " B loc_FF8BA7A4 \n"
626 " B loc_FF8BA684 \n"
627 " B loc_FF8BA684 \n"
628 " B loc_FF8BA68C \n"
629 " B loc_FF8BA694 \n"
630 " B loc_FF8BA694 \n"
631 " B loc_FF8BA694 \n"
632 " B loc_FF8BA684 \n"
633 " B loc_FF8BA68C \n"
634 " B loc_FF8BA694 \n"
635 " B loc_FF8BA694 \n"
636 " B loc_FF8BA6AC \n"
637 " B loc_FF8BA6AC \n"
638 " B loc_FF8BA798 \n"
639 " B loc_FF8BA7A0 \n"
640 " B loc_FF8BA7A0 \n"
641 " B loc_FF8BA7A0 \n"
642 " B loc_FF8BA7A0 \n"
643 " B loc_FF8BA7A4 \n"
644 " B loc_FF8BA7A4 \n"
645 " B loc_FF8BA7A4 \n"
646 " B loc_FF8BA7A4 \n"
647 " B loc_FF8BA7A4 \n"
648 " B loc_FF8BA7A4 \n"
649 " B loc_FF8BA69C \n"
650 " B loc_FF8BA6A4 \n"
651 " B loc_FF8BA6A4 \n"
652 " B loc_FF8BA6B8 \n"
653 " B loc_FF8BA6B8 \n"
654 " B loc_FF8BA6C0 \n"
655 " B loc_FF8BA6F0 \n"
656 " B loc_FF8BA720 \n"
657 " B loc_FF8BA750 \n"
658 " B loc_FF8BA780 \n"
659 " B loc_FF8BA780 \n"
660 " B loc_FF8BA7A4 \n"
661 " B loc_FF8BA7A4 \n"
662 " B loc_FF8BA788 \n"
663 " B loc_FF8BA790 \n"
664 "loc_FF8BA684:\n"
665 " BL sub_FF8B6EDC \n"
666 " B loc_FF8BA7A4 \n"
667 "loc_FF8BA68C:\n"
668 " BL sub_FF8B7160 \n"
669 " B loc_FF8BA7A4 \n"
670 "loc_FF8BA694:\n"
671 " BL sub_FF8B7368 \n"
672 " B loc_FF8BA7A4 \n"
673 "loc_FF8BA69C:\n"
674 " BL sub_FF8B75E0 \n"
675 " B loc_FF8BA7A4 \n"
676 "loc_FF8BA6A4:\n"
677 " BL sub_FF8B77D8 \n"
678 " B loc_FF8BA7A4 \n"
679 "loc_FF8BA6AC:\n"
680 " BL sub_FF8B7A94_my \n"
681 " MOV R4, #0 \n"
682 " B loc_FF8BA7A4 \n"
683 "loc_FF8BA6B8:\n"
684 " BL sub_FF8B7BD4 \n"
685 " B loc_FF8BA7A4 \n"
686 "loc_FF8BA6C0:\n"
687 " LDRH R1, [R0, #4] \n"
688 " STRH R1, [SP, #0x10] \n"
689 " LDRH R1, [R5, #2] \n"
690 " STRH R1, [SP, #0x12] \n"
691 " LDRH R1, [R5, #4] \n"
692 " STRH R1, [SP, #0x14] \n"
693 " LDRH R1, [R5, #6] \n"
694 " STRH R1, [SP, #0x16] \n"
695 " LDRH R1, [R0, #0xC] \n"
696 " STRH R1, [SP, #0x18] \n"
697 " BL sub_FF8BB5B8 \n"
698 " B loc_FF8BA7A4 \n"
699 "loc_FF8BA6F0:\n"
700 " LDRH R1, [R0, #4] \n"
701 " STRH R1, [SP, #0x10] \n"
702 " LDRH R1, [R5, #2] \n"
703 " STRH R1, [SP, #0x12] \n"
704 " LDRH R1, [R5, #4] \n"
705 " STRH R1, [SP, #0x14] \n"
706 " LDRH R1, [R5, #6] \n"
707 " STRH R1, [SP, #0x16] \n"
708 " LDRH R1, [R5, #8] \n"
709 " STRH R1, [SP, #0x18] \n"
710 " BL sub_FF8BB718 \n"
711 " B loc_FF8BA7A4 \n"
712 "loc_FF8BA720:\n"
713 " LDRH R1, [R5] \n"
714 " STRH R1, [SP, #0x10] \n"
715 " LDRH R1, [R0, #6] \n"
716 " STRH R1, [SP, #0x12] \n"
717 " LDRH R1, [R5, #4] \n"
718 " STRH R1, [SP, #0x14] \n"
719 " LDRH R1, [R5, #6] \n"
720 " STRH R1, [SP, #0x16] \n"
721 " LDRH R1, [R5, #8] \n"
722 " STRH R1, [SP, #0x18] \n"
723 " BL sub_FF8BB7C4 \n"
724 " B loc_FF8BA7A4 \n"
725 "loc_FF8BA750:\n"
726 " LDRH R1, [R5] \n"
727 " STRH R1, [SP, #0x10] \n"
728 " LDRH R1, [R5, #2] \n"
729 " STRH R1, [SP, #0x12] \n"
730 " LDRH R1, [R5, #4] \n"
731 " STRH R1, [SP, #0x14] \n"
732 " LDRH R1, [R5, #6] \n"
733 " STRH R1, [SP, #0x16] \n"
734 " LDRH R1, [R0, #0xC] \n"
735 " STRH R1, [SP, #0x18] \n"
736 " BL sub_FF8BB864 \n"
737 " B loc_FF8BA7A4 \n"
738 "loc_FF8BA780:\n"
739 " BL sub_FF8B7F20 \n"
740 " B loc_FF8BA7A4 \n"
741 "loc_FF8BA788:\n"
742 " BL sub_FF8B84E8 \n"
743 " B loc_FF8BA7A4 \n"
744 "loc_FF8BA790:\n"
745 " BL sub_FF8B8724 \n"
746 " B loc_FF8BA7A4 \n"
747 "loc_FF8BA798:\n"
748 " BL sub_FF8B88A0 \n"
749 " B loc_FF8BA7A4 \n"
750 "loc_FF8BA7A0:\n"
751 " BL sub_FF8B8A3C \n"
752 "loc_FF8BA7A4:\n"
753 " LDR R0, [SP, #0x1C] \n"
754 " LDR R1, [R0, #0x7C] \n"
755 " LDR R3, [R0, #0x8C] \n"
756 " LDR R2, [R0, #0x90] \n"
757 " ADD R0, R0, #4 \n"
758 " BLX R3 \n"
759 " CMP R4, #1 \n"
760 " BNE loc_FF8BA80C \n"
761 "loc_FF8BA7C4:\n"
762 " LDR R0, [SP, #0x1C] \n"
763 " MOV R2, #0xC \n"
764 " LDR R1, [R0, #0x7C] \n"
765 " ADD R1, R1, R1, LSL #1 \n"
766 " ADD R0, R0, R1, LSL #2 \n"
767 " SUB R4, R0, #8 \n"
768 " LDR R0, =0x4F45C \n"
769 " ADD R1, SP, #0x10 \n"
770 " BL sub_FFB3A37C \n"
771 " LDR R0, =0x4F468 \n"
772 " MOV R2, #0xC \n"
773 " ADD R1, SP, #0x10 \n"
774 " BL sub_FFB3A37C \n"
775 " LDR R0, =0x4F474 \n"
776 " MOV R2, #0xC \n"
777 " MOV R1, R4 \n"
778 " BL sub_FFB3A37C \n"
779 " B loc_FF8BA884 \n"
780 "loc_FF8BA80C:\n"
781 " LDR R0, [SP, #0x1C] \n"
782 " LDR R0, [R0] \n"
783 " CMP R0, #0xB \n"
784 " BNE loc_FF8BA854 \n"
785 " MOV R3, #0 \n"
786 " STR R3, [SP] \n"
787 " MOV R3, #1 \n"
788 " MOV R2, #1 \n"
789 " MOV R1, #1 \n"
790 " MOV R0, #0 \n"
791 " BL sub_FF8B6CE4 \n"
792 " MOV R3, #0 \n"
793 " STR R3, [SP] \n"
794 " MOV R3, #1 \n"
795 " MOV R2, #1 \n"
796 " MOV R1, #1 \n"
797 " MOV R0, #0 \n"
798 " B loc_FF8BA880 \n"
799 "loc_FF8BA854:\n"
800 " MOV R3, #1 \n"
801 " MOV R2, #1 \n"
802 " MOV R1, #1 \n"
803 " MOV R0, #1 \n"
804 " STR R3, [SP] \n"
805 " BL sub_FF8B6CE4 \n"
806 " MOV R3, #1 \n"
807 " MOV R2, #1 \n"
808 " MOV R1, #1 \n"
809 " MOV R0, #1 \n"
810 " STR R3, [SP] \n"
811 "loc_FF8BA880:\n"
812 " BL sub_FF8B6E24 \n"
813 "loc_FF8BA884:\n"
814 " LDR R0, [SP, #0x1C] \n"
815 " BL sub_FF8BB544 \n"
816 " B loc_FF8BA2F4 \n"
817
818 );
819 }
820
821 void __attribute__((naked,noinline)) sub_FF8B7A94_my(){
822 asm volatile(
823 " STMFD SP!, {R4-R8,LR} \n"
824 " LDR R7, =0x4130 \n"
825 " MOV R4, R0 \n"
826 " LDR R0, [R7, #0x1C] \n"
827 " MOV R1, #0x3E \n"
828 " BL sub_FF8809F8 \n"
829 " LDRSH R0, [R4, #4] \n"
830 " MOV R2, #0 \n"
831 " MOV R1, #0 \n"
832 " BL sub_FF8B6A48 \n"
833 " MOV R6, R0 \n"
834 " LDRSH R0, [R4, #6] \n"
835 " BL sub_FF8B6B58 \n"
836 " LDRSH R0, [R4, #8] \n"
837 " BL sub_FF8B6BB0 \n"
838 " LDRSH R0, [R4, #0xA] \n"
839 " BL sub_FF8B6C08 \n"
840 " LDRSH R0, [R4, #0xC] \n"
841 " MOV R1, #0 \n"
842 " BL sub_FF8B6C60 \n"
843 " MOV R5, R0 \n"
844 " LDR R0, [R4] \n"
845 " LDR R8, =0x4F474 \n"
846 " CMP R0, #0xB \n"
847 " MOVEQ R6, #0 \n"
848 " MOVEQ R5, #0 \n"
849 " BEQ loc_FF8B7B28 \n"
850 " CMP R6, #1 \n"
851 " BNE loc_FF8B7B28 \n"
852 " LDRSH R0, [R4, #4] \n"
853 " LDR R1, =0xFF8B69B4 \n"
854 " MOV R2, #2 \n"
855 " BL sub_FF943BE8 \n"
856 " STRH R0, [R4, #4] \n"
857 " MOV R0, #0 \n"
858 " STR R0, [R7, #0x28] \n"
859 " B loc_FF8B7B30 \n"
860 "loc_FF8B7B28:\n"
861 " LDRH R0, [R8] \n"
862 " STRH R0, [R4, #4] \n"
863 "loc_FF8B7B30:\n"
864 " CMP R5, #1 \n"
865 " LDRNEH R0, [R8, #8] \n"
866 " BNE loc_FF8B7B4C \n"
867 " LDRSH R0, [R4, #0xC] \n"
868 " LDR R1, =0xFF8B6A38 \n"
869 " MOV R2, #0x20 \n"
870 " BL sub_FF8BB574 \n"
871 "loc_FF8B7B4C:\n"
872 " STRH R0, [R4, #0xC] \n"
873 " LDRSH R0, [R4, #6] \n"
874 " BL sub_FF8AA1F0_my \n"
875 " LDRSH R0, [R4, #8] \n"
876 " MOV R1, #1 \n"
877 " BL sub_FF8AA940 \n"
878 " MOV R1, #0 \n"
879 " ADD R0, R4, #8 \n"
880 " BL sub_FF8AA9C8 \n"
881 " LDRSH R0, [R4, #0xE] \n"
882 " BL sub_FF8B24B0 \n"
883 " LDR R4, =0xBB8 \n"
884 " CMP R6, #1 \n"
885 " BNE loc_FF8B7BA4 \n"
886 " LDR R0, [R7, #0x1C] \n"
887 " MOV R2, R4 \n"
888 " MOV R1, #2 \n"
889 " BL sub_FF880904 \n"
890 " TST R0, #1 \n"
891 " LDRNE R1, =0x59B \n"
892 " LDRNE R0, =0xFF8B7034 \n"
893 " BLNE sub_FF81E88C \n"
894 "loc_FF8B7BA4:\n"
895 " CMP R5, #1 \n"
896 " LDMNEFD SP!, {R4-R8,PC} \n"
897 " LDR R0, [R7, #0x1C] \n"
898 " MOV R2, R4 \n"
899 " MOV R1, #0x20 \n"
900 " BL sub_FF880904 \n"
901 " TST R0, #1 \n"
902 " LDRNE R0, =0xFF8B7034 \n"
903 " LDMNEFD SP!, {R4-R8,LR} \n"
904 " MOVNE R1, #0x5A0 \n"
905 " BNE sub_FF81E88C \n"
906 " LDMFD SP!, {R4-R8,PC} \n"
907 );
908 }
909
910 void __attribute__((naked,noinline)) sub_FF8AA1F0_my(){
911 asm volatile(
912 " STMFD SP!, {R4-R6,LR} \n"
913 " LDR R5, =0x3E48 \n"
914 " MOV R4, R0 \n"
915 " LDR R0, [R5, #4] \n"
916 " CMP R0, #1 \n"
917 " LDRNE R1, =0x146 \n"
918 " LDRNE R0, =0xFF8A9FF4 \n"
919 " BLNE sub_FF81E88C \n"
920 " CMN R4, #0xC00 \n"
921 " LDREQSH R4, [R5, #2] \n"
922 " CMN R4, #0xC00 \n"
923 " MOVEQ R1, #0x14C \n"
924 " LDREQ R0, =0xFF8A9FF4 \n"
925 " STRH R4, [R5, #2] \n"
926 " BLEQ sub_FF81E88C \n"
927 " MOV R0, R4 \n"
928
929 " BL apex2us\n"
930 " MOV R4, R0 \n"
931
932 " MOV R0, R4 \n"
933 " BL sub_FF8E32C0 \n"
934 " TST R0, #1 \n"
935 " LDRNE R1, =0x151 \n"
936 " LDMNEFD SP!, {R4-R6,LR} \n"
937 " LDRNE R0, =0xFF8A9FF4 \n"
938 " BNE sub_FF81E88C \n"
939 " LDMFD SP!, {R4-R6,PC} \n"
940 );
941 }