This source file includes following definitions.
- sub_FFD5F178_my
- sub_FFD5C2C4_my
- capt_seq_task
- exp_drv_task
- sub_FFD02424_my
- sub_FFCA4008_my
1 #include "lolevel.h"
2 #include "platform.h"
3 #include "core.h"
4
5 static long *nrflag = (long*)0x621C;
6
7 #include "../../../generic/capt_seq.c"
8
9 void __attribute__((naked,noinline)) sub_FFD5F178_my(long p)
10 {
11 (void)p;
12 asm volatile (
13 "STMFD SP!, {R4,LR}\n"
14 "MOV R4, R0\n"
15 "SUB SP, SP, #0xC\n"
16 "BL sub_FFD5FB34\n"
17 "LDR R1, =0xFFFFFFFF\n"
18 "BL sub_FFC103A4\n"
19 "LDR R0, =0x122\n"
20 "ADD R1, SP, #0x14-0x10\n"
21 "MOV R2, #4\n"
22 "BL sub_FFC14DEC\n"
23 "TST R0, #1\n"
24 "BEQ loc_FFD5F1B8\n"
25 "LDR R0, =0xFFD5EFF4\n"
26 "MOV R1, #0x1BC\n"
27 "BL sub_FFC03CF8\n"
28 "loc_FFD5F1B8:\n"
29 "LDR R3, =0x9CB20\n"
30 "LDR R2, =0x9CBE0\n"
31 "LDR R0, [R3,#0x78]\n"
32 "LDRSH R1, [R2,#0xE]\n"
33 "BL sub_FFC90768\n"
34 "MOV R0, R4\n"
35 "BL sub_FFD5EF78\n"
36 "BL wait_until_remote_button_is_released\n"
37 "BL capt_seq_hook_set_nr\n"
38 "LDR R3, =0x6220\n"
39 "LDR R0, [R3]\n"
40
41 "B sub_FFD5F1DC\n"
42 );
43 }
44
45 void __attribute__((naked,noinline)) sub_FFD5C2C4_my(long p)
46 {
47 (void)p;
48 asm volatile (
49 "STMFD SP!, {R4,LR}\n"
50 "LDR R4, [R0,#0xC]\n"
51 "LDR R3, [R4,#8]\n"
52 "ORR R3, R3, #1\n"
53 "STR R3, [R4,#8]\n"
54 "MOV R0, #0xC\n"
55 "BL sub_FFD6581C\n"
56 "TST R0, #1\n"
57 "MOV R2, R4\n"
58 "MOV R0, #2\n"
59 "BEQ loc_FFD5C30C\n"
60 "LDR R3, [R4,#8]\n"
61 "SUB R0, R0, #1\n"
62 "ORR R3, R3, #0x40000000\n"
63 "MOV R1, R0\n"
64 "STR R3, [R4,#8]\n"
65 "LDMFD SP!, {R4,LR}\n"
66 "B sub_FFD5AA1C\n"
67 "loc_FFD5C30C:\n"
68 "BL sub_FFEA6BEC\n"
69 "BL sub_FFD5CD8C\n"
70 "MOV R0, R4\n"
71 "BL sub_FFD5DD50\n"
72 "TST R0, #1\n"
73 "MOV R2, R4\n"
74 "MOV R1, #1\n"
75 "BEQ loc_FFD5C334\n"
76 "LDMFD SP!, {R4,LR}\n"
77 "B sub_FFD5AA1C\n"
78 "loc_FFD5C334:\n"
79 "BL sub_FFD9ADF8\n"
80 "BL sub_FFC14FE8\n"
81 "STR R0, [R4,#0x14]\n"
82 "MOV R0, R4\n"
83 "BL sub_FFD5F060\n"
84 "BL sub_FFD5F9C0\n"
85 "MOV R0, R4\n"
86 "BL sub_FFD5F178_my\n"
87 "BL capt_seq_hook_raw_here\n"
88 "MOV R1, #1\n"
89 "MOV R2, R4\n"
90 "BL sub_FFD5AA1C\n"
91 "BL sub_FFD5F4AC\n"
92 "CMP R0, #0\n"
93 "LDRNE R3, [R4,#8]\n"
94 "ORRNE R3, R3, #0x2000\n"
95 "STRNE R3, [R4,#8]\n"
96 "LDMFD SP!, {R4,PC}\n"
97 );
98 }
99
100 void __attribute__((naked,noinline)) capt_seq_task()
101 {
102 asm volatile (
103 "STMFD SP!, {R4,LR}\n"
104 "SUB SP, SP, #4\n"
105 "MOV R4, SP\n"
106 "B loc_FFD5C878\n"
107 "loc_FFD5C70C:\n"
108 "LDR R2, [SP,#0xC-0xC]\n"
109 "LDR R3, [R2]\n"
110 "MOV R0, R2\n"
111 "CMP R3, #0x16\n"
112 "LDRLS PC, [PC,R3,LSL#2]\n"
113 "B loc_FFD5C84C\n"
114 ".long loc_FFD5C780\n"
115 ".long loc_FFD5C78C\n"
116 ".long loc_FFD5C794\n"
117 ".long loc_FFD5C7A8\n"
118 ".long loc_FFD5C7A0\n"
119 ".long loc_FFD5C7B0\n"
120 ".long loc_FFD5C7B8\n"
121 ".long loc_FFD5C7C4\n"
122 ".long loc_FFD5C7CC\n"
123 ".long loc_FFD5C7D8\n"
124 ".long loc_FFD5C7E0\n"
125 ".long loc_FFD5C7E8\n"
126 ".long loc_FFD5C7F0\n"
127 ".long loc_FFD5C7F8\n"
128 ".long loc_FFD5C800\n"
129 ".long loc_FFD5C80C\n"
130 ".long loc_FFD5C814\n"
131 ".long loc_FFD5C81C\n"
132 ".long loc_FFD5C824\n"
133 ".long loc_FFD5C830\n"
134 ".long loc_FFD5C83C\n"
135 ".long loc_FFD5C844\n"
136 ".long loc_FFD5C860\n"
137 "loc_FFD5C780:\n"
138 "BL sub_FFD5CDA0\n"
139 "BL shooting_expo_param_override\n"
140 "BL sub_FFD5A518\n"
141 "B loc_FFD5C85C\n"
142 "loc_FFD5C78C:\n"
143 "BL sub_FFD5C2C4_my\n"
144 "B loc_FFD5C85C\n"
145 "loc_FFD5C794:\n"
146 "MOV R0, #1\n"
147 "BL sub_FFD5CF94\n"
148 "B loc_FFD5C85C\n"
149 "loc_FFD5C7A0:\n"
150 "BL sub_FFD5C96C\n"
151 "B loc_FFD5C85C\n"
152 "loc_FFD5C7A8:\n"
153 "BL sub_FFD5CD6C\n"
154 "B loc_FFD5C85C\n"
155 "loc_FFD5C7B0:\n"
156 "BL sub_FFD5CD7C\n"
157 "B loc_FFD5C85C\n"
158 "loc_FFD5C7B8:\n"
159 "BL sub_FFD5CE8C\n"
160 "BL sub_FFD5A518\n"
161 "B loc_FFD5C85C\n"
162 "loc_FFD5C7C4:\n"
163 "BL sub_FFD5C3D8\n"
164 "B loc_FFD5C85C\n"
165 "loc_FFD5C7CC:\n"
166 "BL sub_FFD5CEF4\n"
167 "BL sub_FFD5A518\n"
168 "B loc_FFD5C85C\n"
169 "loc_FFD5C7D8:\n"
170 "BL sub_FFD5CD6C\n"
171 "B loc_FFD5C85C\n"
172 "loc_FFD5C7E0:\n"
173 "BL sub_FFD5E444\n"
174 "B loc_FFD5C85C\n"
175 "loc_FFD5C7E8:\n"
176 "BL sub_FFD5E610\n"
177 "B loc_FFD5C85C\n"
178 "loc_FFD5C7F0:\n"
179 "BL sub_FFD5E6A4\n"
180 "B loc_FFD5C85C\n"
181 "loc_FFD5C7F8:\n"
182 "BL sub_FFD5E740\n"
183 "B loc_FFD5C85C\n"
184 "loc_FFD5C800:\n"
185 "MOV R0, #0\n"
186 "BL sub_FFD5E9AC\n"
187 "B loc_FFD5C85C\n"
188 "loc_FFD5C80C:\n"
189 "BL sub_FFD5EB64\n"
190 "B loc_FFD5C85C\n"
191 "loc_FFD5C814:\n"
192 "BL sub_FFD5EBF4\n"
193 "B loc_FFD5C85C\n"
194 "loc_FFD5C81C:\n"
195 "BL sub_FFD5ECAC\n"
196 "B loc_FFD5C85C\n"
197 "loc_FFD5C824:\n"
198 "MOV R0, #1\n"
199 "BL sub_FFD5E9AC\n"
200 "B loc_FFD5C85C\n"
201 "loc_FFD5C830:\n"
202 "BL sub_FFD5D0D0\n"
203 "BL sub_FFD5C1EC\n"
204 "B loc_FFD5C85C\n"
205 "loc_FFD5C83C:\n"
206 "BL sub_FFD5E880\n"
207 "B loc_FFD5C85C\n"
208 "loc_FFD5C844:\n"
209 "BL sub_FFD5E8D8\n"
210 "B loc_FFD5C85C\n"
211 "loc_FFD5C84C:\n"
212 "MOV R1, #0x4E0\n"
213 "LDR R0, =0xFFD5C048\n"
214 "ADD R1, R1, #9\n"
215 "BL sub_FFC03CF8\n"
216 "loc_FFD5C85C:\n"
217 "LDR R2, [SP,#0xC-0xC]\n"
218 "loc_FFD5C860:\n"
219 "LDR R3, =0x71C94\n"
220 "LDR R1, [R2,#4]\n"
221 "LDR R0, [R3]\n"
222 "BL sub_FFC10208\n"
223 "LDR R0, [SP,#0xC-0xC]\n"
224 "BL sub_FFD5C0C4\n"
225 "loc_FFD5C878:\n"
226 "LDR R3, =0x71C98\n"
227 "MOV R1, R4\n"
228 "LDR R0, [R3]\n"
229 "MOV R2, #0\n"
230 "BL sub_FFC10920\n"
231 "TST R0, #1\n"
232 "BEQ loc_FFD5C70C\n"
233 "MOV R1, #0x410\n"
234 "LDR R0, =0xFFD5C048\n"
235 "ADD R1, R1, #0xB\n"
236 "BL sub_FFC03CF8\n"
237 "BL sub_FFC11E7C\n"
238 "ADD SP, SP, #4\n"
239 "LDMFD SP!, {R4,PC}\n"
240 );
241 }
242
243
244 void __attribute__((naked,noinline)) exp_drv_task(){
245 asm volatile(
246 "STMFD SP!, {R4-R8,LR}\n"
247 "SUB SP, SP, #0x20\n"
248 "ADD R7, SP, #4\n"
249 "B loc_FFD05950\n"
250 "loc_FFD054A4:\n"
251 "CMP R2, #0x22\n"
252 "BNE loc_FFD054BC\n"
253 "LDR R0, [R12,#0x8C]\n"
254 "MOV LR, PC\n"
255 "LDR PC, [R12,#0x88]\n"
256 "B loc_FFD05520\n"
257 "loc_FFD054BC:\n"
258 "CMP R2, #0x1D\n"
259 "BNE loc_FFD054D0\n"
260 "MOV R0, R12\n"
261 "BL sub_FFD05364\n"
262 "B loc_FFD05510\n"
263 "loc_FFD054D0:\n"
264 "CMP R2, #0x1E\n"
265 "BNE loc_FFD054E4\n"
266 "MOV R0, R12\n"
267 "BL sub_FFD053C0\n"
268 "B loc_FFD05510\n"
269 "loc_FFD054E4:\n"
270 "SUB R3, R2, #0x1F\n"
271 "CMP R3, #1\n"
272 "BHI loc_FFD054FC\n"
273 "MOV R0, R12\n"
274 "BL sub_FFD0541C\n"
275 "B loc_FFD05510\n"
276 "loc_FFD054FC:\n"
277 "CMP R2, #0x21\n"
278 "BNE loc_FFD0552C\n"
279 "BL sub_FFCA4380\n"
280 "BL sub_FFCA7474\n"
281 "BL sub_FFCA66AC\n"
282 "loc_FFD05510:\n"
283 "LDR R3, [SP,#4]\n"
284 "LDR R0, [R3,#0x8C]\n"
285 "MOV LR, PC\n"
286 "LDR PC, [R3,#0x88]\n"
287 "loc_FFD05520:\n"
288 "LDR R0, [SP,#4]\n"
289 "BL sub_FFD00F00\n"
290 "B loc_FFD05950\n"
291 "loc_FFD0552C:\n"
292 "CMP R2, #0xD\n"
293 "MOV R8, #1\n"
294 "BNE loc_FFD0559C\n"
295 "LDR R1, [R12,#0x7C]\n"
296 "ADD R1, R1, R1,LSL#1\n"
297 "ADD R1, R12, R1,LSL#2\n"
298 "ADD R6, SP, #0x14\n"
299 "SUB R1, R1, #8\n"
300 "MOV R2, #0xC\n"
301 "MOV R0, R6\n"
302 "BL _memcpy\n"
303 "LDR R0, [SP,#4]\n"
304 "BL sub_FFD039DC\n"
305 "LDR R3, [SP,#4]\n"
306 "LDR R1, [R3,#0x7C]\n"
307 "LDR R2, [R3,#0x8C]\n"
308 "ADD R0, R3, #4\n"
309 "MOV LR, PC\n"
310 "LDR PC, [R3,#0x88]\n"
311 "LDR R0, [SP,#4]\n"
312 "BL sub_FFD03CAC\n"
313 "LDR R3, [SP,#4]\n"
314 "ADD R0, R3, #4\n"
315 "LDR R1, [R3,#0x7C]\n"
316 "LDR R2, [R3,#0x94]\n"
317 "MOV LR, PC\n"
318 "LDR PC, [R3,#0x90]\n"
319 "B loc_FFD058EC\n"
320 "loc_FFD0559C:\n"
321 "SUB R3, R2, #0xE\n"
322 "CMP R3, #1\n"
323 "BHI loc_FFD05658\n"
324 "ADD R6, SP, #0x14\n"
325 "ADD R5, SP, #8\n"
326 "MOV R0, R12\n"
327 "MOV R1, R6\n"
328 "MOV R2, R5\n"
329 "BL sub_FFD03DA0\n"
330 "MOV R4, R0\n"
331 "CMP R4, #5\n"
332 "CMPNE R4, #1\n"
333 "BNE loc_FFD055F0\n"
334 "LDR R12, [SP,#4]\n"
335 "MOV R0, R5\n"
336 "LDR R1, [R12,#0x7C]\n"
337 "MOV R2, R4\n"
338 "LDR R3, [R12,#0x8C]\n"
339 "MOV LR, PC\n"
340 "LDR PC, [R12,#0x88]\n"
341 "B loc_FFD05628\n"
342 "loc_FFD055F0:\n"
343 "CMP R4, #6\n"
344 "CMPNE R4, #2\n"
345 "BNE loc_FFD05638\n"
346 "LDR R12, [SP,#4]\n"
347 "MOV R0, R5\n"
348 "MOV R1, R8\n"
349 "MOV R2, R4\n"
350 "LDR R3, [R12,#0x8C]\n"
351 "MOV LR, PC\n"
352 "LDR PC, [R12,#0x88]\n"
353 "MOV R1, R6\n"
354 "LDR R0, [SP,#4]\n"
355 "MOV R2, R5\n"
356 "BL sub_FFD04FD0\n"
357 "loc_FFD05628:\n"
358 "MOV R1, R4\n"
359 "LDR R0, [SP,#4]\n"
360 "BL sub_FFD052F8\n"
361 "B loc_FFD058EC\n"
362 "loc_FFD05638:\n"
363 "LDR R12, [SP,#4]\n"
364 "MOV R2, R4\n"
365 "ADD R0, R12, #4\n"
366 "LDR R1, [R12,#0x7C]\n"
367 "LDR R3, [R12,#0x8C]\n"
368 "MOV LR, PC\n"
369 "LDR PC, [R12,#0x88]\n"
370 "B loc_FFD058EC\n"
371 "loc_FFD05658:\n"
372 "SUB R3, R2, #0x19\n"
373 "CMP R3, #1\n"
374 "BHI loc_FFD056B0\n"
375 "LDR R1, [R12,#0x7C]\n"
376 "ADD R1, R1, R1,LSL#1\n"
377 "ADD R1, R12, R1,LSL#2\n"
378 "ADD R6, SP, #0x14\n"
379 "SUB R1, R1, #8\n"
380 "MOV R2, #0xC\n"
381 "MOV R0, R6\n"
382 "BL _memcpy\n"
383 "LDR R0, [SP,#4]\n"
384 "BL sub_FFD02DD4\n"
385 "LDR R3, [SP,#4]\n"
386 "ADD R0, R3, #4\n"
387 "LDR R1, [R3,#0x7C]\n"
388 "LDR R2, [R3,#0x8C]\n"
389 "MOV LR, PC\n"
390 "LDR PC, [R3,#0x88]\n"
391 "LDR R0, [SP,#4]\n"
392 "BL sub_FFD031B0\n"
393 "B loc_FFD058EC\n"
394 "loc_FFD056B0:\n"
395 "ADD R6, SP, #0x14\n"
396 "ADD R1, R12, #4\n"
397 "MOV R2, #0xC\n"
398 "MOV R0, R6\n"
399 "BL memcpy\n"
400 "LDR R12, [SP,#4]\n"
401 "LDR R3, [R12]\n"
402 "MOV R2, R12\n"
403 "CMP R3, #0x1C\n"
404 "LDRLS PC, [PC,R3,LSL#2]\n"
405 "B loc_FFD058D8\n"
406 ".long loc_FFD05750\n"
407 ".long loc_FFD0575C\n"
408 ".long loc_FFD05768\n"
409 ".long loc_FFD05768\n"
410 ".long loc_FFD05750\n"
411 ".long loc_FFD0575C\n"
412 ".long loc_FFD05768\n"
413 ".long loc_FFD05768\n"
414 ".long loc_FFD0578C\n"
415 ".long loc_FFD0578C\n"
416 ".long loc_FFD058AC\n"
417 ".long loc_FFD058B8\n"
418 ".long loc_FFD058C8\n"
419 ".long loc_FFD058D8\n"
420 ".long loc_FFD058D8\n"
421 ".long loc_FFD058D8\n"
422 ".long loc_FFD05774\n"
423 ".long loc_FFD05780\n"
424 ".long loc_FFD0579C\n"
425 ".long loc_FFD057A8\n"
426 ".long loc_FFD057E0\n"
427 ".long loc_FFD05818\n"
428 ".long loc_FFD05850\n"
429 ".long loc_FFD05888\n"
430 ".long loc_FFD05888\n"
431 ".long loc_FFD058D8\n"
432 ".long loc_FFD058D8\n"
433 ".long loc_FFD05894\n"
434 ".long loc_FFD058A0\n"
435 "loc_FFD05750:\n"
436 "MOV R0, R2\n"
437 "BL sub_FFD017B0\n"
438 "B loc_FFD058D4\n"
439 "loc_FFD0575C:\n"
440 "MOV R0, R2\n"
441 "BL sub_FFD01A54\n"
442 "B loc_FFD058D4\n"
443 "loc_FFD05768:\n"
444 "MOV R0, R2\n"
445 "BL sub_FFD01CC8\n"
446 "B loc_FFD058D4\n"
447 "loc_FFD05774:\n"
448 "MOV R0, R2\n"
449 "BL sub_FFD01FC4\n"
450 "B loc_FFD058D4\n"
451 "loc_FFD05780:\n"
452 "MOV R0, R2\n"
453 "BL sub_FFD02228\n"
454 "B loc_FFD058D4\n"
455 "loc_FFD0578C:\n"
456 "MOV R0, R2\n"
457 "BL sub_FFD02424_my\n"
458 "MOV R8, #0\n"
459 "B loc_FFD058D4\n"
460 "loc_FFD0579C:\n"
461 "MOV R0, R2\n"
462 "BL sub_FFD02580\n"
463 "B loc_FFD058D4\n"
464 "loc_FFD057A8:\n"
465 "LDRH R1, [R2,#4]\n"
466 "LDR R3, =0x4D750\n"
467 "STRH R1, [SP,#0x14]\n"
468 "LDRH R1, [R3,#6]\n"
469 "STRH R1, [SP,#0x1A]\n"
470 "LDRH R1, [R3,#2]\n"
471 "STRH R1, [SP,#0x16]\n"
472 "LDRH R3, [R3,#4]\n"
473 "STRH R3, [SP,#0x18]\n"
474 "MOV R0, R2\n"
475 "LDRH R2, [R2,#0xC]\n"
476 "STRH R2, [SP,#0x1C]\n"
477 "BL sub_FFD0287C\n"
478 "B loc_FFD058D4\n"
479 "loc_FFD057E0:\n"
480 "MOV R0, R2\n"
481 "LDRH R2, [R2,#4]\n"
482 "LDR R3, =0x4D750\n"
483 "STRH R2, [SP,#0x14]\n"
484 "LDRH R2, [R3,#8]\n"
485 "STRH R2, [SP,#0x1C]\n"
486 "LDRH R1, [R3,#2]\n"
487 "STRH R1, [SP,#0x16]\n"
488 "LDRH R2, [R3,#4]\n"
489 "STRH R2, [SP,#0x18]\n"
490 "LDRH R3, [R3,#6]\n"
491 "STRH R3, [SP,#0x1A]\n"
492 "BL sub_FFD029A4\n"
493 "B loc_FFD058D4\n"
494 "loc_FFD05818:\n"
495 "LDR R3, =0x4D750\n"
496 "LDRH R1, [R3]\n"
497 "STRH R1, [SP,#0x14]\n"
498 "MOV R0, R2\n"
499 "LDRH R2, [R2,#6]\n"
500 "STRH R2, [SP,#0x16]\n"
501 "LDRH R2, [R3,#8]\n"
502 "STRH R2, [SP,#0x1C]\n"
503 "LDRH R1, [R3,#4]\n"
504 "STRH R1, [SP,#0x18]\n"
505 "LDRH R3, [R3,#6]\n"
506 "STRH R3, [SP,#0x1A]\n"
507 "BL sub_FFD02A68\n"
508 "B loc_FFD058D4\n"
509 "loc_FFD05850:\n"
510 "LDR R3, =0x4D750\n"
511 "LDRH R1, [R3,#6]\n"
512 "STRH R1, [SP,#0x1A]\n"
513 "LDRH R1, [R3]\n"
514 "STRH R1, [SP,#0x14]\n"
515 "LDRH R1, [R3,#2]\n"
516 "STRH R1, [SP,#0x16]\n"
517 "LDRH R3, [R3,#4]\n"
518 "STRH R3, [SP,#0x18]\n"
519 "MOV R0, R2\n"
520 "LDRH R2, [R2,#0xC]\n"
521 "STRH R2, [SP,#0x1C]\n"
522 "BL sub_FFD02B20\n"
523 "B loc_FFD058D4\n"
524 "loc_FFD05888:\n"
525 "MOV R0, R2\n"
526 "BL sub_FFD02BD0\n"
527 "B loc_FFD058D4\n"
528 "loc_FFD05894:\n"
529 "MOV R0, R2\n"
530 "BL sub_FFD03300\n"
531 "B loc_FFD058D4\n"
532 "loc_FFD058A0:\n"
533 "MOV R0, R2\n"
534 "BL sub_FFD034FC\n"
535 "B loc_FFD058D4\n"
536 "loc_FFD058AC:\n"
537 "MOV R0, R2\n"
538 "BL sub_FFD036B8\n"
539 "B loc_FFD058D4\n"
540 "loc_FFD058B8:\n"
541 "MOV R0, R2\n"
542 "MOV R1, #0\n"
543 "BL sub_FFD0389C\n"
544 "B loc_FFD058D4\n"
545 "loc_FFD058C8:\n"
546 "MOV R0, R2\n"
547 "MOV R1, #1\n"
548 "BL sub_FFD0389C\n"
549 "loc_FFD058D4:\n"
550 "LDR R12, [SP,#4]\n"
551 "loc_FFD058D8:\n"
552 "ADD R0, R12, #4\n"
553 "LDR R1, [R12,#0x7C]\n"
554 "LDR R2, [R12,#0x8C]\n"
555 "MOV LR, PC\n"
556 "LDR PC, [R12,#0x88]\n"
557 "loc_FFD058EC:\n"
558 "CMP R8, #1\n"
559 "BNE loc_FFD05914\n"
560 "LDR R1, [SP,#4]\n"
561 "LDR R3, [R1,#0x7C]\n"
562 "ADD R3, R3, R3,LSL#1\n"
563 "ADD R1, R1, R3,LSL#2\n"
564 "MOV R0, R6\n"
565 "SUB R1, R1, #8\n"
566 "BL sub_FFD01514\n"
567 "B loc_FFD05948\n"
568 "loc_FFD05914:\n"
569 "MOV R4, #1\n"
570 "MOV R0, R4\n"
571 "MOV R1, R4\n"
572 "MOV R2, R4\n"
573 "MOV R3, R4\n"
574 "STR R4, [SP]\n"
575 "BL sub_FFD01468\n"
576 "MOV R0, R4\n"
577 "MOV R1, R0\n"
578 "MOV R2, R0\n"
579 "MOV R3, R0\n"
580 "STR R4, [SP]\n"
581 "BL sub_FFD015EC\n"
582 "loc_FFD05948:\n"
583 "LDR R0, [SP,#4]\n"
584 "BL sub_FFD00F00\n"
585 "loc_FFD05950:\n"
586 "LDR R3, =0x4D748\n"
587 "MOV R2, #0\n"
588 "LDR R0, [R3]\n"
589 "MOV R1, R7\n"
590 "BL sub_FFC10920\n"
591 "LDR R12, [SP,#4]\n"
592 "LDR R2, [R12]\n"
593 "CMP R2, #0x23\n"
594 "BNE loc_FFD054A4\n"
595 "MOV R0, R12\n"
596 "BL sub_FFD00F00\n"
597 "LDR R3, =0x4D744\n"
598 "MOV R1, #1\n"
599 "LDR R0, [R3]\n"
600 "BL sub_FFC10208\n"
601 "BL _ExitTask\n"
602 "ADD SP, SP, #0x20\n"
603 "LDMFD SP!, {R4-R8,PC}\n"
604 );
605 }
606
607
608 void __attribute__((naked,noinline)) sub_FFD02424_my(){
609 asm volatile(
610 "STMFD SP!, {R4-R6,LR}\n"
611 "LDR R3, =0x4D744\n"
612 "MOV R4, R0\n"
613 "MOV R1, #0x3E\n"
614 "LDR R0, [R3]\n"
615 "BL sub_FFC103A4\n"
616 "MOV R1, #0\n"
617 "LDRSH R0, [R4,#4]\n"
618 "BL sub_FFD01034\n"
619 "MOV R6, R0\n"
620 "LDRSH R0, [R4,#6]\n"
621 "BL sub_FFD011A8\n"
622 "LDRSH R0, [R4,#8]\n"
623 "BL sub_FFD01244\n"
624 "LDRSH R0, [R4,#0xA]\n"
625 "BL sub_FFD012E0\n"
626 "LDRSH R0, [R4,#0xC]\n"
627 "BL sub_FFD0137C\n"
628 "LDR R3, [R4]\n"
629 "CMP R3, #9\n"
630 "MOV R5, R0\n"
631 "MOVEQ R5, #0\n"
632 "MOVEQ R6, R5\n"
633 "CMP R6, #1\n"
634 "BNE loc_FFD024A8\n"
635 "MOV R2, #2\n"
636 "LDRSH R0, [R4,#4]\n"
637 "LDR R1, =0xFFD00F54\n"
638 "BL sub_FFE993F8\n"
639 "LDR R2, =0x4D784\n"
640 "MOV R3, #0\n"
641 "STR R3, [R2]\n"
642 "B loc_FFD024AC\n"
643 "loc_FFD024A8:\n"
644 "BL sub_FFD01418\n"
645 "loc_FFD024AC:\n"
646 "STRH R0, [R4,#4]\n"
647 "CMP R5, #1\n"
648 "BNE loc_FFD024CC\n"
649 "LDRSH R0, [R4,#0xC]\n"
650 "LDR R1, =0xFFD01018\n"
651 "MOV R2, #0x20\n"
652 "BL sub_FFD01750\n"
653 "B loc_FFD024D0\n"
654 "loc_FFD024CC:\n"
655 "BL sub_FFD01458\n"
656 "loc_FFD024D0:\n"
657 "STRH R0, [R4,#0xC]\n"
658 "LDRSH R0, [R4,#6]\n"
659 "BL sub_FFCA4008_my\n"
660 "LDRSH R0, [R4,#8]\n"
661 "MOV R1, #1\n"
662 "BL sub_FFCA626C\n"
663 "ADD R0, R4, #8\n"
664 "MOV R1, #0\n"
665 "BL sub_FFCA632C\n"
666 "LDRSH R0, [R4,#0xE]\n"
667 "BL sub_FFCEEF80\n"
668 "CMP R6, #1\n"
669 "BNE loc_FFD02534\n"
670 "LDR R3, =0x4D744\n"
671 "MOV R2, #0xBB0\n"
672 "LDR R0, [R3]\n"
673 "MOV R1, #2\n"
674 "ADD R2, R2, #8\n"
675 "BL sub_FFC101F8\n"
676 "TST R0, #1\n"
677 "BEQ loc_FFD02534\n"
678 "MOV R1, #0x440\n"
679 "LDR R0, =0xFFD00EAC\n"
680 "ADD R1, R1, #0xB\n"
681 "BL sub_FFC03CF8\n"
682 "loc_FFD02534:\n"
683 "CMP R5, #1\n"
684 "LDMNEFD SP!, {R4-R6,PC}\n"
685 "LDR R3, =0x4D744\n"
686 "MOV R2, #0xBB0\n"
687 "LDR R0, [R3]\n"
688 "MOV R1, #0x20\n"
689 "ADD R2, R2, #8\n"
690 "BL sub_FFC101F8\n"
691 "TST R0, #1\n"
692 "LDMEQFD SP!, {R4-R6,PC}\n"
693 "LDR R0, =0xFFD00EAC\n"
694 "MOV R1, #0x450\n"
695 "LDMFD SP!, {R4-R6,LR}\n"
696 "B sub_FFC03CF8\n"
697 );
698 }
699
700 void __attribute__((naked,noinline)) sub_FFCA4008_my(){
701 asm volatile(
702 "STMFD SP!, {R4,LR}\n"
703 "LDR R3, =0x52E0\n"
704 "LDR R2, [R3]\n"
705 "MOV R1, #0x150\n"
706 "MOV R3, R0,LSL#16\n"
707 "CMP R2, #1\n"
708 "ADD R1, R1, #1\n"
709 "LDR R0, =0xFFCA3844\n"
710 "MOV R4, R3,ASR#16\n"
711 "BEQ loc_FFCA4034\n"
712 "BL sub_FFC03CF8\n"
713 "loc_FFCA4034:\n"
714 "MOV R1, #0x154\n"
715 "CMN R4, #0xC00\n"
716 "LDR R3, =0x3F066\n"
717 "LDR R0, =0xFFCA3844\n"
718 "ADD R1, R1, #3\n"
719 "LDREQSH R4, [R3]\n"
720 "LDRNE R3, =0x3F066\n"
721 "CMN R4, #0xC00\n"
722 "STRH R4, [R3]\n"
723 "BNE loc_FFCA4060\n"
724 "BL sub_FFC03CF8\n"
725 "loc_FFCA4060:\n"
726 "MOV R0, R4\n"
727 "BL apex2us\n"
728 "MOV R4, R0\n"
729 "BL sub_FFCD020C\n"
730 "MOV R0, R4\n"
731 "BL sub_FFCA33D0\n"
732 "TST R0, #1\n"
733 "MOV R1, #0x15C\n"
734 "LDR R0, =0xFFCA3844\n"
735 "LDMEQFD SP!, {R4,PC}\n"
736 "LDMFD SP!, {R4,LR}\n"
737 "B sub_FFC03CF8\n"
738 );
739 }