This source file includes following definitions.
- sub_FFD17F00_my
- sub_FFC5C5D8_my
- task_CaptSeqTask_my
- exp_drv_task
- sub_FFC92894_my
- sub_FFC8488C_my
1 #include "lolevel.h"
2 #include "platform.h"
3 #include "core.h"
4
5 static long *nrflag = (long*)0x5A80;
6
7 #include "../../../generic/capt_seq.c"
8
9
10 void __attribute__((naked,noinline)) sub_FFD17F00_my() {
11 asm volatile (
12 "STMFD SP!, {R0-R8,LR}\n"
13 "MOV R4, R0\n"
14 "BL sub_FFD189F8\n"
15 "MOV R1, #0xFFFFFFFF\n"
16 "BL sub_FFC28C18\n"
17 "LDR R5, =0x5A80\n"
18 "LDR R0, [R5,#0xC]\n"
19 "CMP R0, #0\n"
20 "BNE loc_FFD17F50\n"
21 "MOV R1, #1\n"
22 "MOV R0, #0\n"
23 "BL sub_FFC0F41C\n"
24 "STR R0, [R5,#0xC]\n"
25 "MOV R3, #0\n"
26 "STR R3, [SP]\n"
27 "LDR R3, =0xFFD1793C\n"
28 "LDR R0, =0xFFD18164\n"
29 "MOV R2, #0x400\n"
30 "MOV R1, #0x17\n"
31 "BL sub_FFC0F3E8\n"
32 "loc_FFD17F50:\n"
33 "MOV R2, #4\n"
34 "ADD R1, SP, #8\n"
35 "MOV R0, #0x8A\n"
36 "BL sub_FFC6C664\n"
37 "TST R0, #1\n"
38 "LDRNE R1, =0x3BA\n"
39 "LDRNE R0, =0xFFD17BC0\n"
40 "BLNE sub_FFC0F5E8\n"
41 "LDR R6, =0x34720\n"
42 "LDR R7, =0x3465C\n"
43 "LDR R3, [R6]\n"
44 "LDRSH R2, [R6,#0xC]\n"
45 "LDRSH R1, [R6,#0xE]\n"
46 "LDR R0, [R7,#0x88]\n"
47 "BL sub_FFCE9E5C\n"
48 "BL sub_FFC4660C\n"
49 "LDR R3, =0x5A88\n"
50 "STRH R0, [R4,#0xA4]\n"
51 "SUB R2, R3, #4\n"
52 "STRD R2, [SP]\n"
53 "MOV R1, R0\n"
54 "LDRH R0, [R7,#0x5C]\n"
55 "LDRSH R2, [R6,#0xC]\n"
56 "SUB R3, R3, #8\n"
57 "BL sub_FFD1905C\n"
58 "BL wait_until_remote_button_is_released\n"
59 "BL capt_seq_hook_set_nr\n"
60 "B sub_FFD17FB4\n"
61 );
62 }
63 void __attribute__((naked,noinline)) sub_FFC5C5D8_my() {
64 asm volatile (
65 "STMFD SP!, {R4-R6,LR}\n"
66 "LDR R4, [R0,#0xC]\n"
67 "LDR R6, =0x3465C\n"
68 "LDR R0, [R4,#8]\n"
69 "MOV R5, #0\n"
70 "ORR R0, R0, #1\n"
71 "STR R0, [R4,#8]\n"
72 "LDR R0, [R6,#0x24]\n"
73 "CMP R0, #0\n"
74 "MOVEQ R0, #2\n"
75 "BLEQ sub_FFC58AEC\n"
76 "BL sub_FFC5CAD4\n"
77 "LDR R0, [R6,#0x24]\n"
78 "CMP R0, #0\n"
79 "BNE loc_FFC5C674\n"
80 "MOV R0, R4\n"
81 "BL sub_FFC5CE74\n"
82 "MOV R0, R4\n"
83 "BL sub_FFD16AA8\n"
84 "CMP R0, #0\n"
85 "MOV R0, R4\n"
86 "BEQ loc_FFC5C64C\n"
87 "BL sub_FFD16B34\n"
88 "TST R0, #1\n"
89 "MOVNE R2, R4\n"
90 "LDMNEFD SP!, {R4-R6,LR}\n"
91 "MOVNE R1, #1\n"
92 "BNE sub_FFC5A76C\n"
93 "B loc_FFC5C650\n"
94 "loc_FFC5C64C:\n"
95 "BL sub_FFD16AF8\n"
96 "loc_FFC5C650:\n"
97 "MOV R0, R4\n"
98 "BL sub_FFC5BD24\n"
99 "MOV R0, R4\n"
100 "BL sub_FFD17E38\n"
101 "BL sub_FFD18864\n"
102 "MOV R0, R4\n"
103
104 "BL sub_FFD17F00_my\n"
105 "MOV R5, R0\n"
106 "B loc_FFC5C684\n"
107 "loc_FFC5C674:\n"
108 "LDR R0, =0x27FC\n"
109 "LDR R0, [R0,#0x10]\n"
110 "CMP R0, #0\n"
111 "MOVNE R5, #0x1D\n"
112 "loc_FFC5C684:\n"
113 "BL capt_seq_hook_raw_here\n"
114 "BL sub_FFC5F144\n"
115 "BL sub_FFC5F18C\n"
116 "BL sub_FFC5F1CC\n"
117 "MOV R2, R4\n"
118 "MOV R1, #1\n"
119 "MOV R0, R5\n"
120 "BL sub_FFC5A76C\n"
121 "BL sub_FFD18198\n"
122 "CMP R0, #0\n"
123 "LDRNE R0, [R4,#8]\n"
124 "ORRNE R0, R0, #0x2000\n"
125 "STRNE R0, [R4,#8]\n"
126 "LDMFD SP!, {R4-R6,PC}\n"
127 );
128 }
129
130 void __attribute__((naked,noinline)) task_CaptSeqTask_my() {
131 asm volatile (
132 "STMFD SP!, {R3-R9,LR}\n"
133 "LDR R6, =0x27FC\n"
134 "LDR R4, =0x3465C\n"
135 "MOV R9, #1\n"
136 "MOV R7, #0\n"
137 "loc_FFC5C1FC:\n"
138 "LDR R0, [R6,#4]\n"
139 "MOV R2, #0\n"
140 "MOV R1, SP\n"
141 "BL sub_FFC28E74\n"
142 "TST R0, #1\n"
143 "BEQ loc_FFC5C228\n"
144 "LDR R1, =0x5B4\n"
145 "LDR R0, =0xFFC5BDA0\n"
146 "BL sub_FFC0F5E8\n"
147 "BL sub_FFC0F3A0\n"
148 "LDMFD SP!, {R3-R9,PC}\n"
149 "loc_FFC5C228:\n"
150 "LDR R0, [SP]\n"
151 "LDR R1, [R0]\n"
152 "CMP R1, #0x1D\n"
153 "ADDLS PC, PC, R1,LSL#2\n"
154 "B loc_FFC5C4B0\n"
155 "loc_FFC5C23C:\n"
156 "B loc_FFC5C2B4\n"
157 "loc_FFC5C240:\n"
158 "B loc_FFC5C318\n"
159 "loc_FFC5C244:\n"
160 "B loc_FFC5C354\n"
161 "loc_FFC5C248:\n"
162 "B loc_FFC5C368\n"
163 "loc_FFC5C24C:\n"
164 "B loc_FFC5C360\n"
165 "loc_FFC5C250:\n"
166 "B loc_FFC5C370\n"
167 "loc_FFC5C254:\n"
168 "B loc_FFC5C378\n"
169 "loc_FFC5C258:\n"
170 "B loc_FFC5C380\n"
171 "loc_FFC5C25C:\n"
172 "B loc_FFC5C3D8\n"
173 "loc_FFC5C260:\n"
174 "B loc_FFC5C400\n"
175 "loc_FFC5C264:\n"
176 "B loc_FFC5C3E4\n"
177 "loc_FFC5C268:\n"
178 "B loc_FFC5C3F0\n"
179 "loc_FFC5C26C:\n"
180 "B loc_FFC5C3F8\n"
181 "loc_FFC5C270:\n"
182 "B loc_FFC5C408\n"
183 "loc_FFC5C274:\n"
184 "B loc_FFC5C410\n"
185 "loc_FFC5C278:\n"
186 "B loc_FFC5C418\n"
187 "loc_FFC5C27C:\n"
188 "B loc_FFC5C420\n"
189 "loc_FFC5C280:\n"
190 "B loc_FFC5C428\n"
191 "loc_FFC5C284:\n"
192 "B loc_FFC5C434\n"
193 "loc_FFC5C288:\n"
194 "B loc_FFC5C43C\n"
195 "loc_FFC5C28C:\n"
196 "B loc_FFC5C444\n"
197 "loc_FFC5C290:\n"
198 "B loc_FFC5C44C\n"
199 "loc_FFC5C294:\n"
200 "B loc_FFC5C454\n"
201 "loc_FFC5C298:\n"
202 "B loc_FFC5C460\n"
203 "loc_FFC5C29C:\n"
204 "B loc_FFC5C468\n"
205 "loc_FFC5C2A0:\n"
206 "B loc_FFC5C470\n"
207 "loc_FFC5C2A4:\n"
208 "B loc_FFC5C478\n"
209 "loc_FFC5C2A8:\n"
210 "B loc_FFC5C480\n"
211 "loc_FFC5C2AC:\n"
212 "B loc_FFC5C48C\n"
213 "loc_FFC5C2B0:\n"
214 "B loc_FFC5C4BC\n"
215 "loc_FFC5C2B4:\n"
216 "BL sub_FFC5CAE4\n"
217
218 "BL shooting_expo_param_override\n"
219 "BL sub_FFC5A2F8\n"
220 "LDR R0, [R4,#0x24]\n"
221 "CMP R0, #0\n"
222 "BEQ loc_FFC5C4BC\n"
223 "BL sub_FFC5BA80\n"
224 "MOV R5, R0\n"
225 "LDR R0, [R4,#0x24]\n"
226 "CMP R0, #0\n"
227 "BEQ loc_FFC5C2FC\n"
228 "MOV R0, #0xC\n"
229 "BL sub_FFC60874\n"
230 "TST R0, #1\n"
231 "STRNE R9, [R6,#0x10]\n"
232 "LDRNE R0, [R5,#8]\n"
233 "ORRNE R0, R0, #0x40000000\n"
234 "STRNE R0, [R5,#8]\n"
235 "BNE loc_FFC5C4BC\n"
236 "loc_FFC5C2FC:\n"
237 "MOV R0, R5\n"
238 "BL sub_FFC5BD24\n"
239 "MOV R0, R5\n"
240
241 "BL sub_FFD17F00_my\n"
242 "TST R0, #1\n"
243 "STRNE R9, [R6,#0x10]\n"
244 "B loc_FFC5C4BC\n"
245 "loc_FFC5C318:\n"
246 "LDR R0, [R4,#0x24]\n"
247 "CMP R0, #0\n"
248 "BNE loc_FFC5C344\n"
249 "MOV R0, #0xC\n"
250 "BL sub_FFC60874\n"
251 "TST R0, #1\n"
252 "LDRNE R0, [SP]\n"
253 "MOVNE R1, #1\n"
254 "LDRNE R2, [R0,#0xC]\n"
255 "MOVNE R0, #1\n"
256 "BNE loc_FFC5C3D0\n"
257 "loc_FFC5C344:\n"
258 "LDR R0, [SP]\n"
259
260 "BL sub_FFC5C5D8_my\n"
261 "loc_FFC5C34C:\n"
262 "STR R7, [R4,#0x24]\n"
263 "B loc_FFC5C4BC\n"
264 "loc_FFC5C354:\n"
265 "MOV R0, #1\n"
266 "BL sub_FFC5CD6C\n"
267 "B loc_FFC5C4BC\n"
268 "loc_FFC5C360:\n"
269 "BL sub_FFC5C750\n"
270 "B loc_FFC5C34C\n"
271 "loc_FFC5C368:\n"
272 "BL sub_FFC5CAC4\n"
273 "B loc_FFC5C34C\n"
274 "loc_FFC5C370:\n"
275 "BL sub_FFC5CACC\n"
276 "B loc_FFC5C4BC\n"
277 "loc_FFC5C378:\n"
278 "BL sub_FFC5CC7C\n"
279 "B loc_FFC5C3DC\n"
280 "loc_FFC5C380:\n"
281 "LDR R5, [R0,#0xC]\n"
282 "BL sub_FFC5CAD4\n"
283 "MOV R0, R5\n"
284 "BL sub_FFD16E3C\n"
285 "TST R0, #1\n"
286 "MOV R8, R0\n"
287 "BNE loc_FFC5C3C0\n"
288 "BL sub_FFC6C7F4\n"
289 "STR R0, [R5,#0x18]\n"
290 "MOV R0, R5\n"
291 "BL sub_FFD17E38\n"
292 "MOV R0, R5\n"
293 "BL sub_FFD181E4\n"
294 "MOV R8, R0\n"
295 "LDR R0, [R5,#0x18]\n"
296 "BL sub_FFC6CA2C\n"
297 "loc_FFC5C3C0:\n"
298 "BL sub_FFC5CAC4\n"
299 "MOV R2, R5\n"
300 "MOV R1, #9\n"
301 "MOV R0, R8\n"
302 "loc_FFC5C3D0:\n"
303 "BL sub_FFC5A76C\n"
304 "B loc_FFC5C4BC\n"
305 "loc_FFC5C3D8:\n"
306 "BL sub_FFC5CCE4\n"
307 "loc_FFC5C3DC:\n"
308 "BL sub_FFC5A2F8\n"
309 "B loc_FFC5C4BC\n"
310 "loc_FFC5C3E4:\n"
311 "LDR R0, [R4,#0x54]\n"
312 "BL sub_FFC5D0CC\n"
313 "B loc_FFC5C4BC\n"
314 "loc_FFC5C3F0:\n"
315 "BL sub_FFC5D37C\n"
316 "B loc_FFC5C4BC\n"
317 "loc_FFC5C3F8:\n"
318 "BL sub_FFC5D410\n"
319 "B loc_FFC5C4BC\n"
320 "loc_FFC5C400:\n"
321 "BL sub_FFC5CAC4\n"
322 "B loc_FFC5C4BC\n"
323 "loc_FFC5C408:\n"
324 "BL sub_FFD17068\n"
325 "B loc_FFC5C4BC\n"
326 "loc_FFC5C410:\n"
327 "BL sub_FFD17260\n"
328 "B loc_FFC5C4BC\n"
329 "loc_FFC5C418:\n"
330 "BL sub_FFD172F4\n"
331 "B loc_FFC5C4BC\n"
332 "loc_FFC5C420:\n"
333 "BL sub_FFD173B4\n"
334 "B loc_FFC5C4BC\n"
335 "loc_FFC5C428:\n"
336 "MOV R0, #0\n"
337 "BL sub_FFD175AC\n"
338 "B loc_FFC5C4BC\n"
339 "loc_FFC5C434:\n"
340 "BL sub_FFD176FC\n"
341 "B loc_FFC5C4BC\n"
342 "loc_FFC5C43C:\n"
343 "BL sub_FFD1778C\n"
344 "B loc_FFC5C4BC\n"
345 "loc_FFC5C444:\n"
346 "BL sub_FFD1784C\n"
347 "B loc_FFC5C4BC\n"
348 "loc_FFC5C44C:\n"
349 "BL sub_FFC5CEC0\n"
350 "B loc_FFC5C4BC\n"
351 "loc_FFC5C454:\n"
352 "BL sub_FFC5CF54\n"
353 "BL sub_FFC26E20\n"
354 "B loc_FFC5C4BC\n"
355 "loc_FFC5C460:\n"
356 "BL sub_FFD17480\n"
357 "B loc_FFC5C4BC\n"
358 "loc_FFC5C468:\n"
359 "BL sub_FFD174C4\n"
360 "B loc_FFC5C4BC\n"
361 "loc_FFC5C470:\n"
362 "BL sub_FFC5F0C4\n"
363 "B loc_FFC5C4BC\n"
364 "loc_FFC5C478:\n"
365 "BL sub_FFC5F144\n"
366 "B loc_FFC5C4BC\n"
367 "loc_FFC5C480:\n"
368 "BL sub_FFC5F1A0\n"
369 "BL sub_FFC5F160\n"
370 "B loc_FFC5C4BC\n"
371 "loc_FFC5C48C:\n"
372 "LDRH R0, [R4,#0x94]\n"
373 "CMP R0, #4\n"
374 "LDRNEH R0, [R4]\n"
375 "SUBNE R12, R0, #0x8200\n"
376 "SUBNES R12, R12, #0x2A\n"
377 "BNE loc_FFC5C4BC\n"
378 "BL sub_FFC5F144\n"
379 "BL sub_FFC5F4E4\n"
380 "B loc_FFC5C4BC\n"
381 "loc_FFC5C4B0:\n"
382 "LDR R1, =0x70B\n"
383 "LDR R0, =0xFFC5BDA0\n"
384 "BL sub_FFC0F5E8\n"
385 "loc_FFC5C4BC:\n"
386 "LDR R0, [SP]\n"
387 "LDR R1, [R0,#4]\n"
388 "LDR R0, [R6]\n"
389 "BL sub_FFC28BE4\n"
390 "LDR R5, [SP]\n"
391 "LDR R0, [R5,#8]\n"
392 "CMP R0, #0\n"
393 "LDREQ R1, =0x132\n"
394 "LDREQ R0, =0xFFC5BDA0\n"
395 "BLEQ sub_FFC0F5E8\n"
396 "STR R7, [R5,#8]\n"
397 "B loc_FFC5C1FC\n"
398 );
399 }
400
401 void __attribute__((naked,noinline)) exp_drv_task(){
402 asm volatile(
403 "STMFD SP!, {R4-R8,LR}\n"
404 "SUB SP, SP, #0x20\n"
405 "LDR R8, =0xBB8\n"
406 "LDR R7, =0x3A24\n"
407 "LDR R5, =0x3DA50\n"
408 "MOV R0, #0\n"
409 "ADD R6, SP, #0x10\n"
410 "STR R0, [SP,#0xC]\n"
411 "loc_FFC95068:\n"
412 "LDR R0, [R7,#0x20]\n"
413 "MOV R2, #0\n"
414 "ADD R1, SP, #0x1C\n"
415 "BL sub_FFC28E74\n"
416 "LDR R0, [SP,#0xC]\n"
417 "CMP R0, #1\n"
418 "BNE loc_FFC950B4\n"
419 "LDR R0, [SP,#0x1C]\n"
420 "LDR R0, [R0]\n"
421 "CMP R0, #0x13\n"
422 "CMPNE R0, #0x14\n"
423 "CMPNE R0, #0x15\n"
424 "CMPNE R0, #0x16\n"
425 "BEQ loc_FFC95218\n"
426 "CMP R0, #0x28\n"
427 "BEQ loc_FFC951A0\n"
428 "ADD R1, SP, #0xC\n"
429 "MOV R0, #0\n"
430 "BL sub_FFC94FF8\n"
431 "loc_FFC950B4:\n"
432 "LDR R0, [SP,#0x1C]\n"
433 "LDR R1, [R0]\n"
434 "CMP R1, #0x2E\n"
435 "BNE loc_FFC950E4\n"
436 "LDR R0, [SP,#0x1C]\n"
437 "BL sub_FFC96350\n"
438 "LDR R0, [R7,#0x1C]\n"
439 "MOV R1, #1\n"
440 "BL sub_FFC28BE4\n"
441 "BL sub_FFC0F3A0\n"
442 "ADD SP, SP, #0x20\n"
443 "LDMFD SP!, {R4-R8,PC}\n"
444 "loc_FFC950E4:\n"
445 "CMP R1, #0x2D\n"
446 "BNE loc_FFC95100\n"
447 "LDR R2, [R0,#0x8C]!\n"
448 "LDR R1, [R0,#4]\n"
449 "MOV R0, R1\n"
450 "BLX R2\n"
451 "B loc_FFC95640\n"
452 "loc_FFC95100:\n"
453 "CMP R1, #0x26\n"
454 "BNE loc_FFC95150\n"
455 "LDR R0, [R7,#0x1C]\n"
456 "MOV R1, #0x80\n"
457 "BL sub_FFC28C18\n"
458 "LDR R0, =0xFFC917C4\n"
459 "MOV R1, #0x80\n"
460 "BL sub_FFD0C72C\n"
461 "LDR R0, [R7,#0x1C]\n"
462 "MOV R2, R8\n"
463 "MOV R1, #0x80\n"
464 "BL sub_FFC28B24\n"
465 "TST R0, #1\n"
466 "LDRNE R1, =0xE5F\n"
467 "BNE loc_FFC9520C\n"
468 "loc_FFC9513C:\n"
469 "LDR R1, [SP,#0x1C]\n"
470 "LDR R0, [R1,#0x90]\n"
471 "LDR R1, [R1,#0x8C]\n"
472 "BLX R1\n"
473 "B loc_FFC95640\n"
474 "loc_FFC95150:\n"
475 "CMP R1, #0x27\n"
476 "BNE loc_FFC95198\n"
477 "ADD R1, SP, #0xC\n"
478 "BL sub_FFC94FF8\n"
479 "LDR R0, [R7,#0x1C]\n"
480 "MOV R1, #0x100\n"
481 "BL sub_FFC28C18\n"
482 "LDR R0, =0xFFC917D4\n"
483 "MOV R1, #0x100\n"
484 "BL sub_FFD0C9B4\n"
485 "LDR R0, [R7,#0x1C]\n"
486 "MOV R2, R8\n"
487 "MOV R1, #0x100\n"
488 "BL sub_FFC28B24\n"
489 "TST R0, #1\n"
490 "BEQ loc_FFC9513C\n"
491 "LDR R1, =0xE69\n"
492 "B loc_FFC9520C\n"
493 "loc_FFC95198:\n"
494 "CMP R1, #0x28\n"
495 "BNE loc_FFC951B0\n"
496 "loc_FFC951A0:\n"
497 "LDR R0, [SP,#0x1C]\n"
498 "ADD R1, SP, #0xC\n"
499 "BL sub_FFC94FF8\n"
500 "B loc_FFC9513C\n"
501 "loc_FFC951B0:\n"
502 "CMP R1, #0x2B\n"
503 "BNE loc_FFC951C8\n"
504 "BL sub_FFC84B1C\n"
505 "BL sub_FFC85760\n"
506 "BL sub_FFC852B0\n"
507 "B loc_FFC9513C\n"
508 "loc_FFC951C8:\n"
509 "CMP R1, #0x2C\n"
510 "BNE loc_FFC95218\n"
511 "LDR R0, [R7,#0x1C]\n"
512 "MOV R1, #4\n"
513 "BL sub_FFC28C18\n"
514 "LDR R1, =0xFFC917F4\n"
515 "LDR R0, =0xFFFFF400\n"
516 "MOV R2, #4\n"
517 "BL sub_FFC84598\n"
518 "BL sub_FFC84820\n"
519 "LDR R0, [R7,#0x1C]\n"
520 "MOV R2, R8\n"
521 "MOV R1, #4\n"
522 "BL sub_FFC28A40\n"
523 "TST R0, #1\n"
524 "BEQ loc_FFC9513C\n"
525 "LDR R1, =0xE91\n"
526 "loc_FFC9520C:\n"
527 "LDR R0, =0xFFC91E34\n"
528 "BL sub_FFC0F5E8\n"
529 "B loc_FFC9513C\n"
530 "loc_FFC95218:\n"
531 "LDR R0, [SP,#0x1C]\n"
532 "MOV R4, #1\n"
533 "LDR R1, [R0]\n"
534 "CMP R1, #0x11\n"
535 "CMPNE R1, #0x12\n"
536 "BNE loc_FFC95288\n"
537 "LDR R1, [R0,#0x7C]\n"
538 "ADD R1, R1, R1,LSL#1\n"
539 "ADD R1, R0, R1,LSL#2\n"
540 "SUB R1, R1, #8\n"
541 "LDMIA R1, {R2-R4}\n"
542 "STMIA R6, {R2-R4}\n"
543 "BL sub_FFC93984\n"
544 "LDR R0, [SP,#0x1C]\n"
545 "LDR R1, [R0,#0x7C]\n"
546 "LDR R3, [R0,#0x8C]\n"
547 "LDR R2, [R0,#0x90]\n"
548 "ADD R0, R0, #4\n"
549 "BLX R3\n"
550 "LDR R0, [SP,#0x1C]\n"
551 "BL sub_FFC96718\n"
552 "LDR R0, [SP,#0x1C]\n"
553 "LDR R1, [R0,#0x7C]\n"
554 "LDR R3, [R0,#0x94]\n"
555 "LDR R2, [R0,#0x98]\n"
556 "ADD R0, R0, #4\n"
557 "BLX R3\n"
558 "B loc_FFC95580\n"
559 "loc_FFC95288:\n"
560 "CMP R1, #0x13\n"
561 "CMPNE R1, #0x14\n"
562 "CMPNE R1, #0x15\n"
563 "CMPNE R1, #0x16\n"
564 "BNE loc_FFC95340\n"
565 "ADD R3, SP, #0xC\n"
566 "MOV R2, SP\n"
567 "ADD R1, SP, #0x10\n"
568 "BL sub_FFC93C60\n"
569 "CMP R0, #1\n"
570 "MOV R4, R0\n"
571 "CMPNE R4, #5\n"
572 "BNE loc_FFC952DC\n"
573 "LDR R0, [SP,#0x1C]\n"
574 "MOV R2, R4\n"
575 "LDR R1, [R0,#0x7C]!\n"
576 "LDR R12, [R0,#0x10]!\n"
577 "LDR R3, [R0,#4]\n"
578 "MOV R0, SP\n"
579 "BLX R12\n"
580 "B loc_FFC95314\n"
581 "loc_FFC952DC:\n"
582 "LDR R0, [SP,#0x1C]\n"
583 "CMP R4, #2\n"
584 "LDR R3, [R0,#0x90]\n"
585 "CMPNE R4, #6\n"
586 "BNE loc_FFC95328\n"
587 "LDR R12, [R0,#0x8C]\n"
588 "MOV R0, SP\n"
589 "MOV R2, R4\n"
590 "MOV R1, #1\n"
591 "BLX R12\n"
592 "LDR R0, [SP,#0x1C]\n"
593 "MOV R2, SP\n"
594 "ADD R1, SP, #0x10\n"
595 "BL sub_FFC94D00\n"
596 "loc_FFC95314:\n"
597 "LDR R0, [SP,#0x1C]\n"
598 "LDR R2, [SP,#0xC]\n"
599 "MOV R1, R4\n"
600 "BL sub_FFC94F98\n"
601 "B loc_FFC95580\n"
602 "loc_FFC95328:\n"
603 "LDR R1, [R0,#0x7C]\n"
604 "LDR R12, [R0,#0x8C]\n"
605 "ADD R0, R0, #4\n"
606 "MOV R2, R4\n"
607 "BLX R12\n"
608 "B loc_FFC95580\n"
609 "loc_FFC95340:\n"
610 "CMP R1, #0x22\n"
611 "CMPNE R1, #0x23\n"
612 "BNE loc_FFC9538C\n"
613 "LDR R1, [R0,#0x7C]\n"
614 "ADD R1, R1, R1,LSL#1\n"
615 "ADD R1, R0, R1,LSL#2\n"
616 "SUB R1, R1, #8\n"
617 "LDMIA R1, {R2-R4}\n"
618 "STMIA R6, {R2-R4}\n"
619 "BL sub_FFC92ED4\n"
620 "LDR R0, [SP,#0x1C]\n"
621 "LDR R1, [R0,#0x7C]\n"
622 "LDR R3, [R0,#0x8C]\n"
623 "LDR R2, [R0,#0x90]\n"
624 "ADD R0, R0, #4\n"
625 "BLX R3\n"
626 "LDR R0, [SP,#0x1C]\n"
627 "BL sub_FFC931C8\n"
628 "B loc_FFC95580\n"
629 "loc_FFC9538C:\n"
630 "ADD R1, R0, #4\n"
631 "LDMIA R1, {R2,R3,R12}\n"
632 "STMIA R6, {R2,R3,R12}\n"
633 "LDR R1, [R0]\n"
634 "CMP R1, #0x25\n"
635 "ADDLS PC, PC, R1,LSL#2\n"
636 "B loc_FFC95560\n"
637 "loc_FFC953A8:\n"
638 "B loc_FFC95440\n"
639 "loc_FFC953AC:\n"
640 "B loc_FFC95440\n"
641 "loc_FFC953B0:\n"
642 "B loc_FFC95448\n"
643 "loc_FFC953B4:\n"
644 "B loc_FFC95450\n"
645 "loc_FFC953B8:\n"
646 "B loc_FFC95450\n"
647 "loc_FFC953BC:\n"
648 "B loc_FFC95450\n"
649 "loc_FFC953C0:\n"
650 "B loc_FFC95440\n"
651 "loc_FFC953C4:\n"
652 "B loc_FFC95448\n"
653 "loc_FFC953C8:\n"
654 "B loc_FFC95450\n"
655 "loc_FFC953CC:\n"
656 "B loc_FFC95450\n"
657 "loc_FFC953D0:\n"
658 "B loc_FFC95468\n"
659 "loc_FFC953D4:\n"
660 "B loc_FFC95468\n"
661 "loc_FFC953D8:\n"
662 "B loc_FFC95554\n"
663 "loc_FFC953DC:\n"
664 "B loc_FFC9555C\n"
665 "loc_FFC953E0:\n"
666 "B loc_FFC9555C\n"
667 "loc_FFC953E4:\n"
668 "B loc_FFC9555C\n"
669 "loc_FFC953E8:\n"
670 "B loc_FFC9555C\n"
671 "loc_FFC953EC:\n"
672 "B loc_FFC95560\n"
673 "loc_FFC953F0:\n"
674 "B loc_FFC95560\n"
675 "loc_FFC953F4:\n"
676 "B loc_FFC95560\n"
677 "loc_FFC953F8:\n"
678 "B loc_FFC95560\n"
679 "loc_FFC953FC:\n"
680 "B loc_FFC95560\n"
681 "loc_FFC95400:\n"
682 "B loc_FFC95560\n"
683 "loc_FFC95404:\n"
684 "B loc_FFC95458\n"
685 "loc_FFC95408:\n"
686 "B loc_FFC95460\n"
687 "loc_FFC9540C:\n"
688 "B loc_FFC95460\n"
689 "loc_FFC95410:\n"
690 "B loc_FFC95474\n"
691 "loc_FFC95414:\n"
692 "B loc_FFC95474\n"
693 "loc_FFC95418:\n"
694 "B loc_FFC9547C\n"
695 "loc_FFC9541C:\n"
696 "B loc_FFC954AC\n"
697 "loc_FFC95420:\n"
698 "B loc_FFC954DC\n"
699 "loc_FFC95424:\n"
700 "B loc_FFC9550C\n"
701 "loc_FFC95428:\n"
702 "B loc_FFC9553C\n"
703 "loc_FFC9542C:\n"
704 "B loc_FFC9553C\n"
705 "loc_FFC95430:\n"
706 "B loc_FFC95560\n"
707 "loc_FFC95434:\n"
708 "B loc_FFC95560\n"
709 "loc_FFC95438:\n"
710 "B loc_FFC95544\n"
711 "loc_FFC9543C:\n"
712 "B loc_FFC9554C\n"
713 "loc_FFC95440:\n"
714 "BL sub_FFC91CDC\n"
715 "B loc_FFC95560\n"
716 "loc_FFC95448:\n"
717 "BL sub_FFC91F60\n"
718 "B loc_FFC95560\n"
719 "loc_FFC95450:\n"
720 "BL sub_FFC92168\n"
721 "B loc_FFC95560\n"
722 "loc_FFC95458:\n"
723 "BL sub_FFC923E0\n"
724 "B loc_FFC95560\n"
725 "loc_FFC95460:\n"
726 "BL sub_FFC925D8\n"
727 "B loc_FFC95560\n"
728 "loc_FFC95468:\n"
729
730
731 "BL sub_FFC92894_my\n"
732 "MOV R4, #0\n"
733 "B loc_FFC95560\n"
734 "loc_FFC95474:\n"
735 "BL sub_FFC929D4\n"
736 "B loc_FFC95560\n"
737 "loc_FFC9547C:\n"
738 "LDRH R1, [R0,#4]\n"
739 "STRH R1, [SP,#0x10]\n"
740 "LDRH R1, [R5,#2]\n"
741 "STRH R1, [SP,#0x12]\n"
742 "LDRH R1, [R5,#4]\n"
743 "STRH R1, [SP,#0x14]\n"
744 "LDRH R1, [R5,#6]\n"
745 "STRH R1, [SP,#0x16]\n"
746 "LDRH R1, [R0,#0xC]\n"
747 "STRH R1, [SP,#0x18]\n"
748 "BL sub_FFC963C4\n"
749 "B loc_FFC95560\n"
750 "loc_FFC954AC:\n"
751 "LDRH R1, [R0,#4]\n"
752 "STRH R1, [SP,#0x10]\n"
753 "LDRH R1, [R5,#2]\n"
754 "STRH R1, [SP,#0x12]\n"
755 "LDRH R1, [R5,#4]\n"
756 "STRH R1, [SP,#0x14]\n"
757 "LDRH R1, [R5,#6]\n"
758 "STRH R1, [SP,#0x16]\n"
759 "LDRH R1, [R5,#8]\n"
760 "STRH R1, [SP,#0x18]\n"
761 "BL sub_FFC96530\n"
762 "B loc_FFC95560\n"
763 "loc_FFC954DC:\n"
764 "LDRH R1, [R5]\n"
765 "STRH R1, [SP,#0x10]\n"
766 "LDRH R1, [R0,#6]\n"
767 "STRH R1, [SP,#0x12]\n"
768 "LDRH R1, [R5,#4]\n"
769 "STRH R1, [SP,#0x14]\n"
770 "LDRH R1, [R5,#6]\n"
771 "STRH R1, [SP,#0x16]\n"
772 "LDRH R1, [R5,#8]\n"
773 "STRH R1, [SP,#0x18]\n"
774 "BL sub_FFC965DC\n"
775 "B loc_FFC95560\n"
776 "loc_FFC9550C:\n"
777 "LDRH R1, [R5]\n"
778 "STRH R1, [SP,#0x10]\n"
779 "LDRH R1, [R5,#2]\n"
780 "STRH R1, [SP,#0x12]\n"
781 "LDRH R1, [R5,#4]\n"
782 "STRH R1, [SP,#0x14]\n"
783 "LDRH R1, [R5,#6]\n"
784 "STRH R1, [SP,#0x16]\n"
785 "LDRH R1, [R0,#0xC]\n"
786 "STRH R1, [SP,#0x18]\n"
787 "BL sub_FFC9667C\n"
788 "B loc_FFC95560\n"
789 "loc_FFC9553C:\n"
790 "BL sub_FFC92D2C\n"
791 "B loc_FFC95560\n"
792 "loc_FFC95544:\n"
793 "BL sub_FFC932CC\n"
794 "B loc_FFC95560\n"
795 "loc_FFC9554C:\n"
796 "BL sub_FFC93508\n"
797 "B loc_FFC95560\n"
798 "loc_FFC95554:\n"
799 "BL sub_FFC93684\n"
800 "B loc_FFC95560\n"
801 "loc_FFC9555C:\n"
802 "BL sub_FFC93820\n"
803 "loc_FFC95560:\n"
804 "LDR R0, [SP,#0x1C]\n"
805 "LDR R1, [R0,#0x7C]\n"
806 "LDR R3, [R0,#0x8C]\n"
807 "LDR R2, [R0,#0x90]\n"
808 "ADD R0, R0, #4\n"
809 "BLX R3\n"
810 "CMP R4, #1\n"
811 "BNE loc_FFC955C8\n"
812 "loc_FFC95580:\n"
813 "LDR R0, [SP,#0x1C]\n"
814 "MOV R2, #0xC\n"
815 "LDR R1, [R0,#0x7C]\n"
816 "ADD R1, R1, R1,LSL#1\n"
817 "ADD R0, R0, R1,LSL#2\n"
818 "SUB R4, R0, #8\n"
819 "LDR R0, =0x3DA50\n"
820 "ADD R1, SP, #0x10\n"
821 "BL sub_FFE8D530\n"
822 "LDR R0, =0x3DA5C\n"
823 "MOV R2, #0xC\n"
824 "ADD R1, SP, #0x10\n"
825 "BL sub_FFE8D530\n"
826 "LDR R0, =0x3DA68\n"
827 "MOV R2, #0xC\n"
828 "MOV R1, R4\n"
829 "BL sub_FFE8D530\n"
830 "B loc_FFC95640\n"
831 "loc_FFC955C8:\n"
832 "LDR R0, [SP,#0x1C]\n"
833 "LDR R0, [R0]\n"
834 "CMP R0, #0xB\n"
835 "BNE loc_FFC95610\n"
836 "MOV R3, #0\n"
837 "STR R3, [SP]\n"
838 "MOV R3, #1\n"
839 "MOV R2, #1\n"
840 "MOV R1, #1\n"
841 "MOV R0, #0\n"
842 "BL sub_FFC91AE4\n"
843 "MOV R3, #0\n"
844 "STR R3, [SP]\n"
845 "MOV R3, #1\n"
846 "MOV R2, #1\n"
847 "MOV R1, #1\n"
848 "MOV R0, #0\n"
849 "B loc_FFC9563C\n"
850 "loc_FFC95610:\n"
851 "MOV R3, #1\n"
852 "MOV R2, #1\n"
853 "MOV R1, #1\n"
854 "MOV R0, #1\n"
855 "STR R3, [SP]\n"
856 "BL sub_FFC91AE4\n"
857 "MOV R3, #1\n"
858 "MOV R2, #1\n"
859 "MOV R1, #1\n"
860 "MOV R0, #1\n"
861 "STR R3, [SP]\n"
862 "loc_FFC9563C:\n"
863 "BL sub_FFC91C24\n"
864 "loc_FFC95640:\n"
865 "LDR R0, [SP,#0x1C]\n"
866 "BL sub_FFC96350\n"
867 "B loc_FFC95068\n"
868 );
869 }
870
871 void __attribute__((naked,noinline)) sub_FFC92894_my(){
872 asm volatile(
873 "STMFD SP!, {R4-R8,LR}\n"
874 "LDR R7, =0x3A24\n"
875 "MOV R4, R0\n"
876 "LDR R0, [R7,#0x1C]\n"
877 "MOV R1, #0x3E\n"
878 "BL sub_FFC28C18\n"
879 "LDRSH R0, [R4,#4]\n"
880 "MOV R2, #0\n"
881 "MOV R1, #0\n"
882 "BL sub_FFC91848\n"
883 "MOV R6, R0\n"
884 "LDRSH R0, [R4,#6]\n"
885 "BL sub_FFC91958\n"
886 "LDRSH R0, [R4,#8]\n"
887 "BL sub_FFC919B0\n"
888 "LDRSH R0, [R4,#0xA]\n"
889 "BL sub_FFC91A08\n"
890 "LDRSH R0, [R4,#0xC]\n"
891 "MOV R1, #0\n"
892 "BL sub_FFC91A60\n"
893 "MOV R5, R0\n"
894 "LDR R0, [R4]\n"
895 "LDR R8, =0x3DA68\n"
896 "CMP R0, #0xB\n"
897 "MOVEQ R6, #0\n"
898 "MOVEQ R5, #0\n"
899 "BEQ loc_FFC92928\n"
900 "CMP R6, #1\n"
901 "BNE loc_FFC92928\n"
902 "LDRSH R0, [R4,#4]\n"
903 "LDR R1, =0xFFC917B4\n"
904 "MOV R2, #2\n"
905 "BL sub_FFD0C880\n"
906 "STRH R0, [R4,#4]\n"
907 "MOV R0, #0\n"
908 "STR R0, [R7,#0x28]\n"
909 "B loc_FFC92930\n"
910 "loc_FFC92928:\n"
911 "LDRH R0, [R8]\n"
912 "STRH R0, [R4,#4]\n"
913 "loc_FFC92930:\n"
914 "CMP R5, #1\n"
915 "LDRNEH R0, [R8,#8]\n"
916 "BNE loc_FFC9294C\n"
917 "LDRSH R0, [R4,#0xC]\n"
918 "LDR R1, =0xFFC91838\n"
919 "MOV R2, #0x20\n"
920 "BL sub_FFC96380\n"
921 "loc_FFC9294C:\n"
922 "STRH R0, [R4,#0xC]\n"
923 "LDRSH R0, [R4,#6]\n"
924
925 "BL sub_FFC8488C_my\n"
926 "LDRSH R0, [R4,#8]\n"
927 "MOV R1, #1\n"
928 "BL sub_FFC84FF8\n"
929 "MOV R1, #0\n"
930 "ADD R0, R4, #8\n"
931 "BL sub_FFC85080\n"
932 "LDRSH R0, [R4,#0xE]\n"
933 "BL sub_FFC8CB40\n"
934 "LDR R4, =0xBB8\n"
935 "CMP R6, #1\n"
936 "BNE loc_FFC929A4\n"
937 "LDR R0, [R7,#0x1C]\n"
938 "MOV R2, R4\n"
939 "MOV R1, #2\n"
940 "BL sub_FFC28B24\n"
941 "TST R0, #1\n"
942 "LDRNE R1, =0x5A3\n"
943 "LDRNE R0, =0xFFC91E34\n"
944 "BLNE sub_FFC0F5E8\n"
945 "loc_FFC929A4:\n"
946 "CMP R5, #1\n"
947 "LDMNEFD SP!, {R4-R8,PC}\n"
948 "LDR R0, [R7,#0x1C]\n"
949 "MOV R2, R4\n"
950 "MOV R1, #0x20\n"
951 "BL sub_FFC28B24\n"
952 "TST R0, #1\n"
953 "LDRNE R1, =0x5A8\n"
954 "LDRNE R0, =0xFFC91E34\n"
955 "LDMNEFD SP!, {R4-R8,LR}\n"
956 "BNE sub_FFC0F5E8\n"
957 "LDMFD SP!, {R4-R8,PC}\n"
958 );
959 }
960
961 void __attribute__((naked,noinline)) sub_FFC8488C_my(){
962 asm volatile(
963 "STMFD SP!, {R4-R6,LR}\n"
964 "LDR R5, =0x3718\n"
965 "MOV R4, R0\n"
966 "LDR R0, [R5,#4]\n"
967 "CMP R0, #1\n"
968 "LDRNE R1, =0x146\n"
969 "LDRNE R0, =0xFFC84690\n"
970 "BLNE sub_FFC0F5E8\n"
971 "CMN R4, #0xC00\n"
972 "LDREQSH R4, [R5,#2]\n"
973 "CMN R4, #0xC00\n"
974 "MOVEQ R1, #0x14C\n"
975 "LDREQ R0, =0xFFC84690\n"
976 "STRH R4, [R5,#2]\n"
977 "BLEQ sub_FFC0F5E8\n"
978 "MOV R0, R4\n"
979
980
981 "BL apex2us\n"
982
983 "MOV R4, R0\n"
984 "BL sub_FFCB7570\n"
985 "MOV R0, R4\n"
986 "BL sub_FFCBBC00\n"
987 "TST R0, #1\n"
988 "LDRNE R1, =0x151\n"
989 "LDMNEFD SP!, {R4-R6,LR}\n"
990 "LDRNE R0, =0xFFC84690\n"
991 "BNE sub_FFC0F5E8\n"
992 "LDMFD SP!, {R4-R6,PC}\n"
993 );
994 }
995