This source file includes following definitions.
- sub_FFEABF20_my
- sub_FFEA8DDC_my
- capt_seq_task
- exp_drv_task
- sub_ffd20ef4_my
- sub_ffce9eb0_my
1 #include "lolevel.h"
2 #include "platform.h"
3 #include "core.h"
4
5 static long *nrflag = (long*)0xC2E4;
6
7 #include "../../../generic/capt_seq.c"
8
9 void __attribute__((naked,noinline)) sub_FFEABF20_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_FFEAC990\n"
17 "MVN R1, #0\n"
18 "BL sub_FFEBD0F4\n"
19 "MOV R0, #0x8A\n"
20 "ADD R1, SP, #4\n"
21 "MOV R2, #4\n"
22 "BL sub_FFC0BC94\n"
23 "TST R0, #1\n"
24 "BEQ loc_FFEABF60\n"
25 "MOV R1, #0x1D0\n"
26 "LDR R0, =0xFFEABDA4\n"
27 "ADD R1, R1, #2\n"
28 "BL sub_FFECA7B0\n"
29 "loc_FFEABF60:\n"
30 "LDR R3, =0xA5740\n"
31 "LDR R2, =0xA5800\n"
32 "LDR R0, [R3,#0x74]\n"
33 "LDRSH R1, [R2,#0xE]\n"
34 "BL sub_FFDEF83C\n"
35 "MOV R0, R4\n"
36 "BL sub_FFEABD28\n"
37 "BL wait_until_remote_button_is_released\n"
38 "BL capt_seq_hook_set_nr\n"
39 "LDR R3, =0xC2E8\n"
40 "LDR R0, [R3]\n"
41
42 "B sub_FFEABF84\n"
43 );
44 }
45
46 void __attribute__((naked,noinline)) sub_FFEA8DDC_my(long p)
47 {
48 (void)p;
49 asm volatile (
50 "STMFD SP!, {R4,LR}\n"
51 "LDR R4, [R0,#0xC]\n"
52 "LDR R3, [R4,#8]\n"
53 "ORR R3, R3, #1\n"
54 "STR R3, [R4,#8]\n"
55 "MOV R0, #2\n"
56 "BL sub_FFE89D74\n"
57 "BL sub_FFEA98D0\n"
58 "MOV R0, R4\n"
59 "BL sub_FFEAAA24\n"
60 "TST R0, #1\n"
61 "MOV R2, R4\n"
62 "MOV R1, #1\n"
63 "BEQ loc_FFEA8E1C\n"
64 "LDMFD SP!, {R4,LR}\n"
65 "B sub_FFEA75A4\n"
66 "loc_FFEA8E1C:\n"
67 "BL sub_FFC15B00\n"
68 "BL sub_FFC0BE90\n"
69 "STR R0, [R4,#0x14]\n"
70 "MOV R0, R4\n"
71 "BL sub_FFEABE08\n"
72 "BL sub_FFEAC7FC\n"
73 "MOV R0, R4\n"
74 "BL sub_FFEABF20_my\n"
75 "BL capt_seq_hook_raw_here\n"
76 "MOV R1, #1\n"
77 "MOV R2, R4\n"
78 "BL sub_FFEA75A4\n"
79 "BL sub_FFEAC29C\n"
80 "CMP R0, #0\n"
81 "LDRNE R3, [R4,#8]\n"
82 "ORRNE R3, R3, #0x2000\n"
83 "STRNE R3, [R4,#8]\n"
84 "LDMFD SP!, {R4,PC}\n"
85 );
86 }
87
88 void __attribute__((naked,noinline)) capt_seq_task()
89 {
90 asm volatile (
91 "STMFD SP!, {R4,LR}\n"
92 "SUB SP, SP, #4\n"
93 "MOV R4, SP\n"
94 "B loc_FFEA9360\n"
95
96
97 "loc_FFEA91F4:\n"
98 "LDR R2, [SP]\n"
99 "LDR R3, [R2]\n"
100 "MOV R0, R2\n"
101 "CMP R3, #0x16\n"
102 "LDRLS PC, [PC,R3,LSL#2]\n"
103 "B loc_FFEA9334\n"
104
105 ".long loc_FFEA9268\n"
106 ".long loc_FFEA9274\n"
107 ".long loc_FFEA927C\n"
108 ".long loc_FFEA9290\n"
109 ".long loc_FFEA9288\n"
110 ".long loc_FFEA9298\n"
111 ".long loc_FFEA92A0\n"
112 ".long loc_FFEA92AC\n"
113 ".long loc_FFEA92B4\n"
114 ".long loc_FFEA92C0\n"
115 ".long loc_FFEA92C8\n"
116 ".long loc_FFEA92D0\n"
117 ".long loc_FFEA92D8\n"
118 ".long loc_FFEA92E0\n"
119 ".long loc_FFEA92E8\n"
120 ".long loc_FFEA92F4\n"
121 ".long loc_FFEA92FC\n"
122 ".long loc_FFEA9304\n"
123 ".long loc_FFEA930C\n"
124 ".long loc_FFEA9318\n"
125 ".long loc_FFEA9324\n"
126 ".long loc_FFEA932C\n"
127 ".long loc_FFEA9348\n"
128
129
130 "loc_FFEA9268:\n"
131
132 "BL sub_FFEA98E4\n"
133 "BL shooting_expo_param_override\n"
134 "BL sub_FFEA7098\n"
135 "B loc_FFEA9344\n"
136
137
138 "loc_FFEA9274:\n"
139
140 "BL sub_FFEA8DDC_my\n"
141 "B loc_FFEA9344\n"
142
143
144 "loc_FFEA927C:\n"
145
146 "MOV R0, #1\n"
147 "BL sub_FFEA9AEC\n"
148 "B loc_FFEA9344\n"
149
150
151 "loc_FFEA9288:\n"
152
153 "BL sub_FFEA9448\n"
154 "B loc_FFEA9344\n"
155
156
157 "loc_FFEA9290:\n"
158
159 "BL sub_FFEA98B0\n"
160 "B loc_FFEA9344\n"
161
162
163 "loc_FFEA9298:\n"
164
165 "BL sub_FFEA98C0\n"
166 "B loc_FFEA9344\n"
167
168
169 "loc_FFEA92A0:\n"
170
171 "BL sub_FFEA99DC\n"
172 "BL sub_FFEA7098\n"
173 "B loc_FFEA9344\n"
174
175
176 "loc_FFEA92AC:\n"
177
178 "BL sub_FFEA8EC0\n"
179 "B loc_FFEA9344\n"
180
181
182 "loc_FFEA92B4:\n"
183
184 "BL sub_FFEA9A50\n"
185 "BL sub_FFEA7098\n"
186 "B loc_FFEA9344\n"
187
188
189 "loc_FFEA92C0:\n"
190
191 "BL sub_FFEA98B0\n"
192 "B loc_FFEA9344\n"
193
194
195 "loc_FFEA92C8:\n"
196
197 "BL sub_FFEAB158\n"
198 "B loc_FFEA9344\n"
199
200
201 "loc_FFEA92D0:\n"
202
203 "BL sub_FFEAB32C\n"
204 "B loc_FFEA9344\n"
205
206
207 "loc_FFEA92D8:\n"
208
209 "BL sub_FFEAB3C0\n"
210 "B loc_FFEA9344\n"
211
212
213 "loc_FFEA92E0:\n"
214
215 "BL sub_FFEAB4BC\n"
216 "B loc_FFEA9344\n"
217
218
219 "loc_FFEA92E8:\n"
220
221 "MOV R0, #0\n"
222 "BL sub_FFEAB728\n"
223 "B loc_FFEA9344\n"
224
225
226 "loc_FFEA92F4:\n"
227
228 "BL sub_FFEAB8FC\n"
229 "B loc_FFEA9344\n"
230
231
232 "loc_FFEA92FC:\n"
233
234 "BL sub_FFEAB998\n"
235 "B loc_FFEA9344\n"
236
237
238 "loc_FFEA9304:\n"
239
240 "BL sub_FFEABA58\n"
241 "B loc_FFEA9344\n"
242
243
244 "loc_FFEA930C:\n"
245
246 "MOV R0, #1\n"
247 "BL sub_FFEAB728\n"
248 "B loc_FFEA9344\n"
249
250
251 "loc_FFEA9318:\n"
252
253 "BL sub_FFEA9C48\n"
254 "BL sub_FFEA8D00\n"
255 "B loc_FFEA9344\n"
256
257
258 "loc_FFEA9324:\n"
259
260 "BL sub_FFEAB5FC\n"
261 "B loc_FFEA9344\n"
262
263
264 "loc_FFEA932C:\n"
265
266 "BL sub_FFEAB658\n"
267 "B loc_FFEA9344\n"
268
269
270 "loc_FFEA9334:\n"
271 "MOV R1, #0x4C0\n"
272 "LDR R0, =0xFFEA8B5C\n"
273 "ADD R1, R1, #1\n"
274 "BL sub_FFECA7B0\n"
275
276 "loc_FFEA9344:\n"
277
278 "LDR R2, [SP]\n"
279
280 "loc_FFEA9348:\n"
281
282 "LDR R3, =0x7EEC0\n"
283 "LDR R1, [R2,#4]\n"
284 "LDR R0, [R3]\n"
285 "BL sub_FFEBCF58\n"
286 "LDR R0, [SP]\n"
287 "BL sub_FFEA8BDC\n"
288
289 "loc_FFEA9360:\n"
290 "LDR R3, =0x7EEC4\n"
291 "MOV R1, R4\n"
292 "LDR R0, [R3]\n"
293 "MOV R2, #0\n"
294 "BL sub_FFEBD670\n"
295 "TST R0, #1\n"
296 "BEQ loc_FFEA91F4\n"
297 "MOV R1, #0x3F0\n"
298 "LDR R0, =0xFFEA8B5C\n"
299 "ADD R1, R1, #3\n"
300 "BL sub_FFECA7B0\n"
301 "BL sub_FFEBEC34\n"
302 "ADD SP, SP, #4\n"
303 "LDMFD SP!, {R4,PC}\n"
304 );
305 }
306
307
308 void __attribute__((naked,noinline)) exp_drv_task(){
309 asm volatile(
310 "STMFD SP!, {R4-R8,LR}\n"
311 "SUB SP, SP, #0x20\n"
312 "ADD R7, SP, #4\n"
313 "B loc_ffd246dc\n"
314 "loc_ffd241dc:\n"
315 "CMP R2, #0x22\n"
316 "BNE loc_ffd241f4\n"
317 "LDR R0, [R12,#0x8C]\n"
318 "MOV LR, PC\n"
319 "LDR PC, [R12,#0x88]\n"
320 "B loc_ffd24258\n"
321 "loc_ffd241f4:\n"
322 "CMP R2, #0x1D\n"
323 "BNE loc_ffd24208\n"
324 "MOV R0, R12\n"
325 "BL sub_ffd2409c\n"
326 "B loc_ffd24248\n"
327 "loc_ffd24208:\n"
328 "CMP R2, #0x1E\n"
329 "BNE loc_ffd2421c\n"
330 "MOV R0, R12\n"
331 "BL sub_ffd240f8\n"
332 "B loc_ffd24248\n"
333 "loc_ffd2421c:\n"
334 "SUB R3, R2, #0x1F\n"
335 "CMP R3, #1\n"
336 "BHI loc_ffd24234\n"
337 "MOV R0, R12\n"
338 "BL sub_ffd24154\n"
339 "B loc_ffd24248\n"
340 "loc_ffd24234:\n"
341 "CMP R2, #0x21\n"
342 "BNE loc_ffd24264\n"
343 "BL sub_ffcea234\n"
344 "BL sub_ffced36c\n"
345 "BL sub_ffcec5a4\n"
346 "loc_ffd24248:\n"
347 "LDR R3, [SP,#4]\n"
348 "LDR R0, [R3,#0x8C]\n"
349 "MOV LR, PC\n"
350 "LDR PC, [R3,#0x88]\n"
351 "loc_ffd24258:\n"
352 "LDR R0, [SP,#4]\n"
353 "BL sub_ffd1f8d4\n"
354 "B loc_ffd246dc\n"
355 "loc_ffd24264:\n"
356 "CMP R2, #0xD\n"
357 "MOV R8, #1\n"
358 "BNE loc_ffd242d4\n"
359 "LDR R1, [R12,#0x7C]\n"
360 "ADD R1, R1, R1,LSL#1\n"
361 "ADD R1, R12, R1,LSL#2\n"
362 "ADD R6, SP, #0x14\n"
363 "SUB R1, R1, #8\n"
364 "MOV R2, #0xC\n"
365 "MOV R0, R6\n"
366 "BL _memcpy\n"
367 "LDR R0, [SP,#4]\n"
368 "BL sub_ffd224ac\n"
369 "LDR R3, [SP,#4]\n"
370 "LDR R1, [R3,#0x7C]\n"
371 "LDR R2, [R3,#0x8C]\n"
372 "ADD R0, R3, #4\n"
373 "MOV LR, PC\n"
374 "LDR PC, [R3,#0x88]\n"
375 "LDR R0, [SP,#4]\n"
376 "BL sub_ffd22778\n"
377 "LDR R3, [SP,#4]\n"
378 "ADD R0, R3, #4\n"
379 "LDR R1, [R3,#0x7C]\n"
380 "LDR R2, [R3,#0x94]\n"
381 "MOV LR, PC\n"
382 "LDR PC, [R3,#0x90]\n"
383 "B loc_ffd24624\n"
384 "loc_ffd242d4:\n"
385 "SUB R3, R2, #0xE\n"
386 "CMP R3, #1\n"
387 "BHI loc_ffd24390\n"
388 "ADD R6, SP, #0x14\n"
389 "ADD R5, SP, #8\n"
390 "MOV R0, R12\n"
391 "MOV R1, R6\n"
392 "MOV R2, R5\n"
393 "BL sub_ffd22868\n"
394 "MOV R4, R0\n"
395 "CMP R4, #5\n"
396 "CMPNE R4, #1\n"
397 "BNE loc_ffd24328\n"
398 "LDR R12, [SP,#4]\n"
399 "MOV R0, R5\n"
400 "LDR R1, [R12,#0x7C]\n"
401 "MOV R2, R4\n"
402 "LDR R3, [R12,#0x8C]\n"
403 "MOV LR, PC\n"
404 "LDR PC, [R12,#0x88]\n"
405 "B loc_ffd24360\n"
406 "loc_ffd24328:\n"
407 "CMP R4, #6\n"
408 "CMPNE R4, #2\n"
409 "BNE loc_ffd24370\n"
410 "LDR R12, [SP,#4]\n"
411 "MOV R0, R5\n"
412 "MOV R1, R8\n"
413 "MOV R2, R4\n"
414 "LDR R3, [R12,#0x8C]\n"
415 "MOV LR, PC\n"
416 "LDR PC, [R12,#0x88]\n"
417 "MOV R1, R6\n"
418 "LDR R0, [SP,#4]\n"
419 "MOV R2, R5\n"
420 "BL sub_ffd23cfc\n"
421 "loc_ffd24360:\n"
422 "MOV R1, R4\n"
423 "LDR R0, [SP,#4]\n"
424 "BL sub_ffd24030\n"
425 "B loc_ffd24624\n"
426 "loc_ffd24370:\n"
427 "LDR R12, [SP,#4]\n"
428 "MOV R2, R4\n"
429 "ADD R0, R12, #4\n"
430 "LDR R1, [R12,#0x7C]\n"
431 "LDR R3, [R12,#0x8C]\n"
432 "MOV LR, PC\n"
433 "LDR PC, [R12,#0x88]\n"
434 "B loc_ffd24624\n"
435 "loc_ffd24390:\n"
436 "SUB R3, R2, #0x19\n"
437 "CMP R3, #1\n"
438 "BHI loc_ffd243e8\n"
439 "LDR R1, [R12,#0x7C]\n"
440 "ADD R1, R1, R1,LSL#1\n"
441 "ADD R1, R12, R1,LSL#2\n"
442 "ADD R6, SP, #0x14\n"
443 "SUB R1, R1, #8\n"
444 "MOV R2, #0xC\n"
445 "MOV R0, R6\n"
446 "BL _memcpy\n"
447 "LDR R0, [SP,#4]\n"
448 "BL sub_ffd218a0\n"
449 "LDR R3, [SP,#4]\n"
450 "ADD R0, R3, #4\n"
451 "LDR R1, [R3,#0x7C]\n"
452 "LDR R2, [R3,#0x8C]\n"
453 "MOV LR, PC\n"
454 "LDR PC, [R3,#0x88]\n"
455 "LDR R0, [SP,#4]\n"
456 "BL sub_ffd21c7c\n"
457 "B loc_ffd24624\n"
458 "loc_ffd243e8:\n"
459 "ADD R6, SP, #0x14\n"
460 "ADD R1, R12, #4\n"
461 "MOV R2, #0xC\n"
462 "MOV R0, R6\n"
463 "BL memcpy\n"
464 "LDR R12, [SP,#4]\n"
465 "LDR R3, [R12]\n"
466 "MOV R2, R12\n"
467 "CMP R3, #0x1C\n"
468 "LDRLS PC, [PC,R3,LSL#2]\n"
469 "B loc_ffd24610\n"
470 ".long loc_ffd24488\n"
471 ".long loc_ffd24494\n"
472 ".long loc_ffd244a0\n"
473 ".long loc_ffd244a0\n"
474 ".long loc_ffd24488\n"
475 ".long loc_ffd24494\n"
476 ".long loc_ffd244a0\n"
477 ".long loc_ffd244a0\n"
478 ".long loc_ffd244c4\n"
479 ".long loc_ffd244c4\n"
480 ".long loc_ffd245e4\n"
481 ".long loc_ffd245f0\n"
482 ".long loc_ffd24600\n"
483 ".long loc_ffd24610\n"
484 ".long loc_ffd24610\n"
485 ".long loc_ffd24610\n"
486 ".long loc_ffd244ac\n"
487 ".long loc_ffd244b8\n"
488 ".long loc_ffd244d4\n"
489 ".long loc_ffd244e0\n"
490 ".long loc_ffd24518\n"
491 ".long loc_ffd24550\n"
492 ".long loc_ffd24588\n"
493 ".long loc_ffd245c0\n"
494 ".long loc_ffd245c0\n"
495 ".long loc_ffd24610\n"
496 ".long loc_ffd24610\n"
497 ".long loc_ffd245cc\n"
498 ".long loc_ffd245d8\n"
499 "loc_ffd24488:\n"
500 "MOV R0, R2\n"
501 "BL sub_ffd20278\n"
502 "B loc_ffd2460c\n"
503 "loc_ffd24494:\n"
504 "MOV R0, R2\n"
505 "BL sub_ffd2051c\n"
506 "B loc_ffd2460c\n"
507 "loc_ffd244a0:\n"
508 "MOV R0, R2\n"
509 "BL sub_ffd20790\n"
510 "B loc_ffd2460c\n"
511 "loc_ffd244ac:\n"
512 "MOV R0, R2\n"
513 "BL sub_ffd20a8c\n"
514 "B loc_ffd2460c\n"
515 "loc_ffd244b8:\n"
516 "MOV R0, R2\n"
517 "BL sub_ffd20cf4\n"
518 "B loc_ffd2460c\n"
519 "loc_ffd244c4:\n"
520 "MOV R0, R2\n"
521 "BL sub_ffd20ef4_my\n"
522 "MOV R8, #0\n"
523 "B loc_ffd2460c\n"
524 "loc_ffd244d4:\n"
525 "MOV R0, R2\n"
526 "BL sub_ffd21054\n"
527 "B loc_ffd2460c\n"
528
529
530 "loc_ffd244e0:\n"
531 "LDRH R1, [R2,#4]\n"
532 "LDR R3, =0x2AFE0\n"
533 "STRH R1, [SP,#0x14]\n"
534 "LDRH R1, [R3,#6]\n"
535 "STRH R1, [SP,#0x1A]\n"
536 "LDRH R1, [R3,#2]\n"
537 "STRH R1, [SP,#0x16]\n"
538 "LDRH R3, [R3,#4]\n"
539 "STRH R3, [SP,#0x18]\n"
540 "MOV R0, R2\n"
541 "LDRH R2, [R2,#0xC]\n"
542 "STRH R2, [SP,#0x1C]\n"
543 "BL sub_ffd2134c\n"
544 "B loc_ffd2460c\n"
545 "loc_ffd24518:\n"
546 "MOV R0, R2\n"
547 "LDRH R2, [R2,#4]\n"
548 "LDR R3, =0x2AFE0\n"
549 "STRH R2, [SP,#0x14]\n"
550 "LDRH R2, [R3,#8]\n"
551 "STRH R2, [SP,#0x1C]\n"
552 "LDRH R1, [R3,#2]\n"
553 "STRH R1, [SP,#0x16]\n"
554 "LDRH R2, [R3,#4]\n"
555 "STRH R2, [SP,#0x18]\n"
556 "LDRH R3, [R3,#6]\n"
557 "STRH R3, [SP,#0x1A]\n"
558 "BL sub_ffd21474\n"
559 "B loc_ffd2460c\n"
560 "loc_ffd24550:\n"
561 "LDR R3, =0x2AFE0\n"
562 "LDRH R1, [R3]\n"
563 "STRH R1, [SP,#0x14]\n"
564 "MOV R0, R2\n"
565 "LDRH R2, [R2,#6]\n"
566 "STRH R2, [SP,#0x16]\n"
567 "LDRH R2, [R3,#8]\n"
568 "STRH R2, [SP,#0x1C]\n"
569 "LDRH R1, [R3,#4]\n"
570 "STRH R1, [SP,#0x18]\n"
571 "LDRH R3, [R3,#6]\n"
572 "STRH R3, [SP,#0x1A]\n"
573 "BL sub_ffd21538\n"
574 "B loc_ffd2460c\n"
575 "loc_ffd24588:\n"
576 "LDR R3, =0x2AFE0\n"
577 "LDRH R1, [R3,#6]\n"
578 "STRH R1, [SP,#0x1A]\n"
579 "LDRH R1, [R3]\n"
580 "STRH R1, [SP,#0x14]\n"
581 "LDRH R1, [R3,#2]\n"
582 "STRH R1, [SP,#0x16]\n"
583 "LDRH R3, [R3,#4]\n"
584 "STRH R3, [SP,#0x18]\n"
585 "MOV R0, R2\n"
586 "LDRH R2, [R2,#0xC]\n"
587 "STRH R2, [SP,#0x1C]\n"
588 "BL sub_ffd215f0\n"
589 "B loc_ffd2460c\n"
590 "loc_ffd245c0:\n"
591 "MOV R0, R2\n"
592 "BL sub_ffd216a0\n"
593 "B loc_ffd2460c\n"
594 "loc_ffd245cc:\n"
595 "MOV R0, R2\n"
596 "BL sub_ffd21dc8\n"
597 "B loc_ffd2460c\n"
598 "loc_ffd245d8:\n"
599 "MOV R0, R2\n"
600 "BL sub_ffd21fc4\n"
601 "B loc_ffd2460c\n"
602 "loc_ffd245e4:\n"
603 "MOV R0, R2\n"
604 "BL sub_ffd22180\n"
605 "B loc_ffd2460c\n"
606 "loc_ffd245f0:\n"
607 "MOV R0, R2\n"
608 "MOV R1, #0\n"
609 "BL sub_ffd22368\n"
610 "B loc_ffd2460c\n"
611 "loc_ffd24600:\n"
612 "MOV R0, R2\n"
613 "MOV R1, #1\n"
614 "BL sub_ffd22368\n"
615 "loc_ffd2460c:\n"
616 "LDR R12, [SP,#4]\n"
617 "loc_ffd24610:\n"
618 "ADD R0, R12, #4\n"
619 "LDR R1, [R12,#0x7C]\n"
620 "LDR R2, [R12,#0x8C]\n"
621 "MOV LR, PC\n"
622 "LDR PC, [R12,#0x88]\n"
623 "loc_ffd24624:\n"
624 "CMP R8, #1\n"
625 "BNE loc_ffd2464c\n"
626 "LDR R1, [SP,#4]\n"
627 "LDR R3, [R1,#0x7C]\n"
628 "ADD R3, R3, R3,LSL#1\n"
629 "ADD R1, R1, R3,LSL#2\n"
630 "MOV R0, R6\n"
631 "SUB R1, R1, #8\n"
632 "BL sub_ffd1ff30\n"
633 "B loc_ffd246c8\n"
634 "loc_ffd2464c:\n"
635 "LDR R3, [SP,#4]\n"
636 "LDR R2, [R3]\n"
637 "CMP R2, #9\n"
638 "BNE loc_ffd24694\n"
639 "MOV R4, #0\n"
640 "MOV R1, #1\n"
641 "MOV R2, R1\n"
642 "MOV R3, R1\n"
643 "MOV R0, R4\n"
644 "STR R4, [SP]\n"
645 "BL sub_ffd1fe74\n"
646 "MOV R1, #1\n"
647 "MOV R0, R4\n"
648 "MOV R2, R1\n"
649 "MOV R3, R1\n"
650 "STR R4, [SP]\n"
651 "BL sub_ffd200cc\n"
652 "B loc_ffd246c8\n"
653 "loc_ffd24694:\n"
654 "MOV R4, #1\n"
655 "MOV R0, R4\n"
656 "MOV R1, R4\n"
657 "MOV R2, R4\n"
658 "MOV R3, R4\n"
659 "STR R4, [SP]\n"
660 "BL sub_ffd1fe74\n"
661 "MOV R0, R4\n"
662 "MOV R1, R0\n"
663 "MOV R2, R0\n"
664 "MOV R3, R0\n"
665 "STR R4, [SP]\n"
666 "BL sub_ffd200cc\n"
667
668 "loc_ffd246c8:\n"
669 "LDR R2, =0x2B030\n"
670 "MOV R3, #0\n"
671 "LDR R0, [SP,#4]\n"
672 "STR R3, [R2]\n"
673 "BL sub_ffd1f8d4\n"
674
675 "loc_ffd246dc:\n"
676 "LDR R3, =0x2AFD4\n"
677 "MOV R2, #0\n"
678 "LDR R0, [R3]\n"
679 "MOV R1, R7\n"
680 "BL sub_ffebd670\n"
681 "LDR R12, [SP,#4]\n"
682 "LDR R2, [R12]\n"
683 "CMP R2, #0x23\n"
684 "BNE loc_ffd241dc\n"
685 "MOV R0, R12\n"
686 "BL sub_ffd1f8d4\n"
687 "LDR R3, =0x2AFD0\n"
688 "MOV R1, #1\n"
689 "LDR R0, [R3]\n"
690 "BL sub_ffebcf58\n"
691 "BL sub_ffebec34\n"
692 "ADD SP, SP, #0x20\n"
693 "LDMFD SP!, {R4-R8,PC}\n"
694 );
695 }
696
697 void __attribute__((naked,noinline)) sub_ffd20ef4_my(){
698 asm volatile(
699 "STMFD SP!, {R4-R6,LR}\n"
700 "LDR R3, =0x2AFD0\n"
701 "MOV R4, R0\n"
702 "MOV R1, #0x3E\n"
703 "LDR R0, [R3]\n"
704 "BL sub_ffebd0f4\n"
705 "MOV R1, #0\n"
706 "LDRSH R0, [R4,#4]\n"
707 "BL sub_ffd1fa08\n"
708 "MOV R6, R0\n"
709 "LDRSH R0, [R4,#6]\n"
710 "BL sub_ffd1fbb4\n"
711 "LDRSH R0, [R4,#8]\n"
712 "BL sub_ffd1fc50\n"
713 "LDRSH R0, [R4,#0xA]\n"
714 "BL sub_ffd1fcec\n"
715 "LDRSH R0, [R4,#0xC]\n"
716 "BL sub_ffd1fd88\n"
717 "LDR R3, [R4]\n"
718 "CMP R3, #9\n"
719 "MOV R5, R0\n"
720 "MOVEQ R5, #0\n"
721 "MOVEQ R6, R5\n"
722 "CMP R6, #1\n"
723 "BNE loc_ffd20f78\n"
724 "MOV R2, #2\n"
725 "LDRSH R0, [R4,#4]\n"
726 "LDR R1, =0xFFD1F928\n"
727 "BL sub_ffe78208\n"
728 "LDR R2, =0x2B020\n"
729 "MOV R3, #0\n"
730 "STR R3, [R2]\n"
731 "B loc_ffd20f7c\n"
732 "loc_ffd20f78:\n"
733 "BL sub_ffd1fe24\n"
734 "loc_ffd20f7c:\n"
735 "STRH R0, [R4,#4]\n"
736 "CMP R5, #1\n"
737 "BNE loc_ffd20f9c\n"
738 "LDRSH R0, [R4,#0xC]\n"
739 "LDR R1, =0xFFD1F9EC\n"
740 "MOV R2, #0x20\n"
741 "BL sub_ffd20218\n"
742 "B loc_ffd20fa0\n"
743 "loc_ffd20f9c:\n"
744 "BL sub_ffd1fe64\n"
745 "loc_ffd20fa0:\n"
746 "STRH R0, [R4,#0xC]\n"
747 "LDRSH R0, [R4,#6]\n"
748 "BL sub_ffce9eb0_my\n"
749 "LDRSH R0, [R4,#8]\n"
750 "MOV R1, #1\n"
751 "BL sub_ffcec164\n"
752 "ADD R0, R4, #8\n"
753 "MOV R1, #0\n"
754 "BL sub_ffcec224\n"
755 "LDRSH R0, [R4,#0xE]\n"
756 "BL sub_ffd0e5d4\n"
757 "CMP R6, #1\n"
758 "BNE loc_ffd21004\n"
759 "LDR R3, =0x2AFD0\n"
760 "MOV R2, #0xBB0\n"
761 "LDR R0, [R3]\n"
762 "MOV R1, #2\n"
763 "ADD R2, R2, #8\n"
764 "BL sub_ffebcf48\n"
765 "TST R0, #1\n"
766 "BEQ loc_ffd21004\n"
767 "MOV R1, #0x4a0\n"
768 "LDR R0, =0xFFD1F880\n"
769 "ADD R1, R1, #3\n"
770 "BL sub_ffeca7b0\n"
771 "loc_ffd21004:\n"
772 "CMP R5, #1\n"
773 "LDMNEFD SP!, {R4-R6,PC}\n"
774 "LDR R3, =0x2AFD0\n"
775 "MOV R2, #0xBB0\n"
776 "LDR R0, [R3]\n"
777 "MOV R1, #0x20\n"
778 "ADD R2, R2, #8\n"
779 "BL sub_ffebcf48\n"
780 "TST R0, #1\n"
781 "LDMEQFD SP!, {R4-R6,PC}\n"
782 "MOV R1, #0x4A0\n"
783 "LDR R0, =0xFFD1F880\n"
784 "ADD R1, R1, #8\n"
785 "LDMFD SP!, {R4-R6,LR}\n"
786 "B sub_ffeca7b0\n"
787 );
788 }
789
790 void __attribute__((naked,noinline)) sub_ffce9eb0_my(){
791 asm volatile(
792 "STMFD SP!, {R4,LR}\n"
793 "LDR R3, =0x59FC\n"
794 "LDR R2, [R3]\n"
795 "MOV R1, #0x168\n"
796 "MOV R3, R0,LSL#16\n"
797 "CMP R2, #1\n"
798 "ADD R1, R1, #3\n"
799 "LDR R0, =0xFFCE96CC\n"
800 "MOV R4, R3,ASR#16\n"
801 "BEQ loc_FFCE9EDC\n"
802 "BL sub_ffeca7b0\n"
803 "loc_FFCE9EDC:\n"
804 "MOV R1, #0x170\n"
805 "CMN R4, #0xC00\n"
806 "LDR R3, =0x11B4E\n"
807 "LDR R0, =0xFFCE96CC\n"
808 "ADD R1, R1, #1\n"
809 "LDREQSH R4, [R3]\n"
810 "LDRNE R3, =0x11B4E\n"
811 "CMN R4, #0xC00\n"
812 "STRH R4, [R3]\n"
813 "BNE loc_FFCE9F08\n"
814 "BL sub_ffeca7b0\n"
815 "loc_FFCE9F08:\n"
816 "MOV R0, R4\n"
817 "BL apex2us\n"
818 "MOV R4, R0\n"
819 "BL sub_FFD764E0\n"
820 "MOV R0, R4\n"
821 "BL sub_FFD8D908\n"
822 "MOV R1, #0x174\n"
823 "TST R0, #1\n"
824 "ADD R1, R1, #2\n"
825 "LDR R0, =0xFFCE96CC\n"
826 "LDMEQFD SP!, {R4,PC}\n"
827 "LDMFD SP!, {R4,LR}\n"
828 "B sub_ffeca7b0\n"
829 );
830 }