This source file includes following definitions.
- sub_FFB01E30_my
- sub_FFAFEC58_my
- capt_seq_task
- exp_drv_task
- sub_FF967798_my
- sub_FF9304F8_my
1 #include "lolevel.h"
2 #include "platform.h"
3 #include "core.h"
4
5 static long *nrflag = (long*)0xCDA0;
6
7 #include "../../../generic/capt_seq.c"
8
9 void __attribute__((naked,noinline)) sub_FFB01E30_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_FFB028A0\n"
17 "MVN R1, #0\n"
18 "BL sub_FFB13010\n"
19 "MOV R0, #0x8A\n"
20 "ADD R1, SP, #4\n"
21 "MOV R2, #4\n"
22 "BL sub_FF81BC98\n"
23 "TST R0, #1\n"
24 "BEQ loc_FFB01E70\n"
25 "MOV R1, #0x1D0\n"
26 "LDR R0, =0xFFB01CB4\n"
27 "ADD R1, R1, #2\n"
28 "BL sub_FFB2069C\n"
29 "loc_FFB01E70:\n"
30 "LDR R3, =0xBDA80\n"
31 "LDR R2, =0xBDB40\n"
32 "LDR R0, [R3,#0x7C]\n"
33 "LDRSH R1, [R2,#0xE]\n"
34 "BL sub_FFA395F0\n"
35 "MOV R0, R4\n"
36 "BL sub_FFB01C38\n"
37 "BL wait_until_remote_button_is_released\n"
38 "BL capt_seq_hook_set_nr\n"
39 "LDR R3, =0xCDA4\n"
40 "LDR R0, [R3]\n"
41 "B sub_FFB01E94\n"
42 );
43 }
44
45 void __attribute__((naked,noinline)) sub_FFAFEC58_my(long p)
46 {
47 (void)p;
48 asm volatile (
49 "STMFD SP!, {R4,R5,LR}\n"
50 "LDR R3, =0xBDA80\n"
51 "LDR R5, [R0,#0xC]\n"
52 "LDR R1, [R3,#0x24]\n"
53 "LDR R2, [R5,#8]\n"
54 "CMP R1, #0\n"
55 "ORR R2, R2, #1\n"
56 "STR R2, [R5,#8]\n"
57 "BNE loc_FFAFECAC\n"
58 "MOV R0, #0xC\n"
59 "BL sub_FFB091A8\n"
60 "TST R0, #1\n"
61 "BEQ loc_FFAFECAC\n"
62 "LDR R3, [R5,#8]\n"
63 "MOV R0, #1\n"
64 "ORR R3, R3, #0x40000000\n"
65 "STR R3, [R5,#8]\n"
66 "loc_FFAFEC9C:\n"
67 "MOV R2, R5\n"
68 "MOV R1, #1\n"
69 "LDMFD SP!, {R4,R5,LR}\n"
70 "B sub_FFAFD400\n"
71 "loc_FFAFECAC:\n"
72 "LDR R4, =0xBDA80\n"
73 "BL sub_FFAFF750\n"
74 "LDR R3, [R4,#0x24]\n"
75 "CMP R3, #0\n"
76 "BNE loc_FFAFECF4\n"
77 "MOV R0, R5\n"
78 "BL sub_FFB00934\n"
79 "TST R0, #1\n"
80 "BNE loc_FFAFEC9C\n"
81 "BL sub_FF8261B8\n"
82 "BL sub_FF81BE94\n"
83 "STR R0, [R5,#0x14]\n"
84 "MOV R0, R5\n"
85 "BL sub_FFB01D18\n"
86 "BL sub_FFB0270C\n"
87 "MOV R0, R5\n"
88 "BL sub_FFB01E30_my\n"
89 "BL capt_seq_hook_raw_here\n"
90 "B loc_FFAFED08\n"
91 "loc_FFAFECF4:\n"
92 "LDR R3, =0xCD8C\n"
93 "LDR R2, [R3]\n"
94 "CMP R2, #0\n"
95 "MOVNE R0, #0x1D\n"
96 "MOVEQ R0, #0\n"
97 "loc_FFAFED08:\n"
98 "MOV R1, #1\n"
99 "MOV R2, R5\n"
100 "BL sub_FFAFD400\n"
101 "BL sub_FFB021AC\n"
102 "CMP R0, #0\n"
103 "LDRNE R3, [R5,#8]\n"
104 "ORRNE R3, R3, #0x2000\n"
105 "STRNE R3, [R5,#8]\n"
106 "LDMFD SP!, {R4,R5,PC}\n"
107 );
108 }
109
110 void __attribute__((naked,noinline)) capt_seq_task()
111 {
112 asm volatile (
113 "STMFD SP!, {R4,LR}\n"
114 "SUB SP, SP, #4\n"
115 "MOV R4, SP\n"
116 "B loc_FFAFF290\n"
117 "loc_FFAFF114:\n"
118 "LDR R2, [SP]\n"
119 "LDR R3, [R2]\n"
120 "MOV R0, R2\n"
121 "CMP R3, #0x15\n"
122 "LDRLS PC, [PC,R3,LSL#2]\n"
123 "B loc_FFAFF264\n"
124 ".long loc_FFAFF184\n"
125 ".long loc_FFAFF1A4\n"
126 ".long loc_FFAFF1B8\n"
127 ".long loc_FFAFF1CC\n"
128 ".long loc_FFAFF1C4\n"
129 ".long loc_FFAFF1D4\n"
130 ".long loc_FFAFF1DC\n"
131 ".long loc_FFAFF1E8\n"
132 ".long loc_FFAFF1F0\n"
133 ".long loc_FFAFF1FC\n"
134 ".long loc_FFAFF204\n"
135 ".long loc_FFAFF20C\n"
136 ".long loc_FFAFF214\n"
137 ".long loc_FFAFF21C\n"
138 ".long loc_FFAFF224\n"
139 ".long loc_FFAFF230\n"
140 ".long loc_FFAFF238\n"
141 ".long loc_FFAFF240\n"
142 ".long loc_FFAFF248\n"
143 ".long loc_FFAFF254\n"
144 ".long loc_FFAFF25C\n"
145 ".long loc_FFAFF278\n"
146 "loc_FFAFF184:\n"
147 "BL sub_FFAFF778\n"
148
149 "BL shooting_expo_param_override\n"
150
151 "BL sub_FFAFCE88\n"
152 "LDR R3, =0xBDA80\n"
153 "MOV R2, #0 \n"
154 "STR R2, [R3,#0x24] \n"
155
156
157
158
159 "B loc_FFAFF274\n"
160 "loc_FFAFF1A4:\n"
161 "BL sub_FFAFEC58_my\n"
162 "loc_FFAFF1A8:\n"
163 "LDR R2, =0xBDA80\n"
164 "MOV R3, #0\n"
165 "STR R3, [R2,#0x24]\n"
166 "B loc_FFAFF274\n"
167 "loc_FFAFF1B8:\n"
168 "MOV R0, #1\n"
169 "BL sub_FFAFF998\n"
170 "B loc_FFAFF274\n"
171 "loc_FFAFF1C4:\n"
172 "BL sub_FFAFF378\n"
173 "B loc_FFAFF1A8\n"
174 "loc_FFAFF1CC:\n"
175 "BL sub_FFAFF730\n"
176 "B loc_FFAFF1A8\n"
177 "loc_FFAFF1D4:\n"
178 "BL sub_FFAFF740\n"
179 "B loc_FFAFF274\n"
180 "loc_FFAFF1DC:\n"
181 "BL sub_FFAFF890\n"
182 "BL sub_FFAFCE88\n"
183 "B loc_FFAFF274\n"
184 "loc_FFAFF1E8:\n"
185 "BL sub_FFAFEE10\n"
186 "B loc_FFAFF274\n"
187 "loc_FFAFF1F0:\n"
188 "BL sub_FFAFF900\n"
189 "BL sub_FFAFCE88\n"
190 "B loc_FFAFF274\n"
191 "loc_FFAFF1FC:\n"
192 "BL sub_FFAFF730\n"
193 "B loc_FFAFF274\n"
194 "loc_FFAFF204:\n"
195 "BL sub_FFB01068\n"
196 "B loc_FFAFF274\n"
197 "loc_FFAFF20C:\n"
198 "BL sub_FFB0123C\n"
199 "B loc_FFAFF274\n"
200 "loc_FFAFF214:\n"
201 "BL sub_FFB012D0\n"
202 "B loc_FFAFF274\n"
203 "loc_FFAFF21C:\n"
204 "BL sub_FFB013CC\n"
205 "B loc_FFAFF274\n"
206 "loc_FFAFF224:\n"
207 "MOV R0, #0\n"
208 "BL sub_FFB01638\n"
209 "B loc_FFAFF274\n"
210 "loc_FFAFF230:\n"
211 "BL sub_FFB0180C\n"
212 "B loc_FFAFF274\n"
213 "loc_FFAFF238:\n"
214 "BL sub_FFB018A8\n"
215 "B loc_FFAFF274\n"
216 "loc_FFAFF240:\n"
217 "BL sub_FFB01968\n"
218 "B loc_FFAFF274\n"
219 "loc_FFAFF248:\n"
220 "BL sub_FFAFFAEC\n"
221 "BL sub_FFAFEB7C\n"
222 "B loc_FFAFF274\n"
223 "loc_FFAFF254:\n"
224 "BL sub_FFB0150C\n"
225 "B loc_FFAFF274\n"
226 "loc_FFAFF25C:\n"
227 "BL sub_FFB01568\n"
228 "B loc_FFAFF274\n"
229 "loc_FFAFF264:\n"
230 "MOV R1, #0x4C0\n"
231 "LDR R0, =0xFFAFE9D8\n"
232 "ADD R1, R1, #0xE\n"
233 "BL sub_FFB2069C\n"
234 "loc_FFAFF274:\n"
235 "LDR R2, [SP]\n"
236 "loc_FFAFF278:\n"
237 "LDR R3, =0x97348\n"
238 "LDR R1, [R2,#4]\n"
239 "LDR R0, [R3]\n"
240 "BL sub_FFB12E74\n"
241 "LDR R0, [SP]\n"
242 "BL sub_FFAFEA58\n"
243 "loc_FFAFF290:\n"
244 "LDR R3, =0x9734C\n"
245 "MOV R1, R4\n"
246 "LDR R0, [R3]\n"
247 "MOV R2, #0\n"
248 "BL sub_FFB1358C\n"
249 "TST R0, #1\n"
250 "BEQ loc_FFAFF114\n"
251 "LDR R0, =0xFFAFE9D8\n"
252 "MOV R1, #0x400\n"
253 "BL sub_FFB2069C\n"
254 "BL sub_FFB14B50\n"
255 "ADD SP, SP, #4\n"
256 "LDMFD SP!, {R4,PC}\n"
257 );
258 }
259
260
261
262 void __attribute__((naked,noinline)) exp_drv_task(){
263 asm volatile(
264 "STMFD SP!, {R4-R8,LR}\n"
265 "SUB SP, SP, #0x20\n"
266 "ADD R7, SP, #4\n"
267 "B loc_FF96AD00\n"
268 "loc_FF96A800:\n"
269 "CMP R2, #0x22\n"
270 "BNE loc_FF96A818\n"
271 "LDR R0, [R12,#0x8C]\n"
272 "MOV LR, PC\n"
273 "LDR PC, [R12,#0x88]\n"
274 "B loc_FF96A87C\n"
275 "loc_FF96A818:\n"
276 "CMP R2, #0x1D\n"
277 "BNE loc_FF96A82C\n"
278 "MOV R0, R12\n"
279 "BL sub_FF96A6C0\n"
280 "B loc_FF96A86C\n"
281 "loc_FF96A82C:\n"
282 "CMP R2, #0x1E\n"
283 "BNE loc_FF96A840\n"
284 "MOV R0, R12\n"
285 "BL sub_FF96A71C\n"
286 "B loc_FF96A86C\n"
287 "loc_FF96A840:\n"
288 "SUB R3, R2, #0x1F\n"
289 "CMP R3, #1\n"
290 "BHI loc_FF96A858\n"
291 "MOV R0, R12\n"
292 "BL sub_FF96A778\n"
293 "B loc_FF96A86C\n"
294 "loc_FF96A858:\n"
295 "CMP R2, #0x21\n"
296 "BNE loc_FF96A888\n"
297 "BL sub_FF93087C\n"
298 "BL sub_FF9339B4\n"
299 "BL sub_FF932BEC\n"
300 "loc_FF96A86C:\n"
301 "LDR R3, [SP,#4]\n"
302 "LDR R0, [R3,#0x8C]\n"
303 "MOV LR, PC\n"
304 "LDR PC, [R3,#0x88]\n"
305 "loc_FF96A87C:\n"
306 "LDR R0, [SP,#4]\n"
307 "BL sub_FF9661BC\n"
308 "B loc_FF96AD00\n"
309 "loc_FF96A888:\n"
310 "CMP R2, #0xD\n"
311 "MOV R8, #1\n"
312 "BNE loc_FF96A8F8\n"
313 "LDR R1, [R12,#0x7C]\n"
314 "ADD R1, R1, R1,LSL#1\n"
315 "ADD R1, R12, R1,LSL#2\n"
316 "ADD R6, SP, #0x14\n"
317 "SUB R1, R1, #8\n"
318 "MOV R2, #0xC\n"
319 "MOV R0, R6\n"
320 "BL sub_FF9183F4\n"
321 "LDR R0, [SP,#4]\n"
322 "BL sub_FF968C6C\n"
323 "LDR R3, [SP,#4]\n"
324 "LDR R1, [R3,#0x7C]\n"
325 "LDR R2, [R3,#0x8C]\n"
326 "ADD R0, R3, #4\n"
327 "MOV LR, PC\n"
328 "LDR PC, [R3,#0x88]\n"
329 "LDR R0, [SP,#4]\n"
330 "BL sub_FF968F3C\n"
331 "LDR R3, [SP,#4]\n"
332 "ADD R0, R3, #4\n"
333 "LDR R1, [R3,#0x7C]\n"
334 "LDR R2, [R3,#0x94]\n"
335 "MOV LR, PC\n"
336 "LDR PC, [R3,#0x90]\n"
337 "B loc_FF96AC48\n"
338 "loc_FF96A8F8:\n"
339 "SUB R3, R2, #0xE\n"
340 "CMP R3, #1\n"
341 "BHI loc_FF96A9B4\n"
342 "ADD R6, SP, #0x14\n"
343 "ADD R5, SP, #8\n"
344 "MOV R0, R12\n"
345 "MOV R1, R6\n"
346 "MOV R2, R5\n"
347 "BL sub_FF969030\n"
348 "MOV R4, R0\n"
349 "CMP R4, #5\n"
350 "CMPNE R4, #1\n"
351 "BNE loc_FF96A94C\n"
352 "LDR R12, [SP,#4]\n"
353 "MOV R0, R5\n"
354 "LDR R1, [R12,#0x7C]\n"
355 "MOV R2, R4\n"
356 "LDR R3, [R12,#0x8C]\n"
357 "MOV LR, PC\n"
358 "LDR PC, [R12,#0x88]\n"
359 "B loc_FF96A984\n"
360 "loc_FF96A94C:\n"
361 "CMP R4, #6\n"
362 "CMPNE R4, #2\n"
363 "BNE loc_FF96A994\n"
364 "LDR R12, [SP,#4]\n"
365 "MOV R0, R5\n"
366 "MOV R1, R8\n"
367 "MOV R2, R4\n"
368 "LDR R3, [R12,#0x8C]\n"
369 "MOV LR, PC\n"
370 "LDR PC, [R12,#0x88]\n"
371 "MOV R1, R6\n"
372 "LDR R0, [SP,#4]\n"
373 "MOV R2, R5\n"
374 "BL sub_FF96A2F0\n"
375 "loc_FF96A984:\n"
376 "MOV R1, R4\n"
377 "LDR R0, [SP,#4]\n"
378 "BL sub_FF96A654\n"
379 "B loc_FF96AC48\n"
380 "loc_FF96A994:\n"
381 "LDR R12, [SP,#4]\n"
382 "MOV R2, R4\n"
383 "ADD R0, R12, #4\n"
384 "LDR R1, [R12,#0x7C]\n"
385 "LDR R3, [R12,#0x8C]\n"
386 "MOV LR, PC\n"
387 "LDR PC, [R12,#0x88]\n"
388 "B loc_FF96AC48\n"
389 "loc_FF96A9B4:\n"
390 "SUB R3, R2, #0x19\n"
391 "CMP R3, #1\n"
392 "BHI loc_FF96AA0C\n"
393 "LDR R1, [R12,#0x7C]\n"
394 "ADD R1, R1, R1,LSL#1\n"
395 "ADD R1, R12, R1,LSL#2\n"
396 "ADD R6, SP, #0x14\n"
397 "SUB R1, R1, #8\n"
398 "MOV R2, #0xC\n"
399 "MOV R0, R6\n"
400 "BL sub_FF9183F4\n"
401 "LDR R0, [SP,#4]\n"
402 "BL sub_FF968120\n"
403 "LDR R3, [SP,#4]\n"
404 "ADD R0, R3, #4\n"
405 "LDR R1, [R3,#0x7C]\n"
406 "LDR R2, [R3,#0x8C]\n"
407 "MOV LR, PC\n"
408 "LDR PC, [R3,#0x88]\n"
409 "LDR R0, [SP,#4]\n"
410 "BL sub_FF968440\n"
411 "B loc_FF96AC48\n"
412 "loc_FF96AA0C:\n"
413 "ADD R6, SP, #0x14\n"
414 "ADD R1, R12, #4\n"
415 "MOV R2, #0xC\n"
416 "MOV R0, R6\n"
417 "BL sub_FF9183F4\n"
418 "LDR R12, [SP,#4]\n"
419 "LDR R3, [R12]\n"
420 "MOV R2, R12\n"
421 "CMP R3, #0x1C\n"
422 "LDRLS PC, [PC,R3,LSL#2]\n"
423 "B loc_FF96AC34\n"
424 ".long loc_FF96AAAC\n"
425 ".long loc_FF96AAB8\n"
426 ".long loc_FF96AAC4\n"
427 ".long loc_FF96AAC4\n"
428 ".long loc_FF96AAAC\n"
429 ".long loc_FF96AAB8\n"
430 ".long loc_FF96AAC4\n"
431 ".long loc_FF96AAC4\n"
432 ".long loc_FF96AAE8\n"
433 ".long loc_FF96AAE8\n"
434 ".long loc_FF96AC08\n"
435 ".long loc_FF96AC14\n"
436 ".long loc_FF96AC24\n"
437 ".long loc_FF96AC34\n"
438 ".long loc_FF96AC34\n"
439 ".long loc_FF96AC34\n"
440 ".long loc_FF96AAD0\n"
441 ".long loc_FF96AADC\n"
442 ".long loc_FF96AAF8\n"
443 ".long loc_FF96AB04\n"
444 ".long loc_FF96AB3C\n"
445 ".long loc_FF96AB74\n"
446 ".long loc_FF96ABAC\n"
447 ".long loc_FF96ABE4\n"
448 ".long loc_FF96ABE4\n"
449 ".long loc_FF96AC34\n"
450 ".long loc_FF96AC34\n"
451 ".long loc_FF96ABF0\n"
452 ".long loc_FF96ABFC\n"
453 "loc_FF96AAAC:\n"
454 "MOV R0, R2\n"
455 "BL sub_FF966B1C\n"
456 "B loc_FF96AC30\n"
457 "loc_FF96AAB8:\n"
458 "MOV R0, R2\n"
459 "BL sub_FF966DC0\n"
460 "B loc_FF96AC30\n"
461 "loc_FF96AAC4:\n"
462 "MOV R0, R2\n"
463 "BL sub_FF967034\n"
464 "B loc_FF96AC30\n"
465 "loc_FF96AAD0:\n"
466 "MOV R0, R2\n"
467 "BL sub_FF967330\n"
468 "B loc_FF96AC30\n"
469 "loc_FF96AADC:\n"
470 "MOV R0, R2\n"
471 "BL sub_FF967598\n"
472 "B loc_FF96AC30\n"
473 "loc_FF96AAE8:\n"
474 "MOV R0, R2\n"
475 "BL sub_FF967798_my\n"
476 "MOV R8, #0\n"
477 "B loc_FF96AC30\n"
478 "loc_FF96AAF8:\n"
479 "MOV R0, R2\n"
480 "BL sub_FF9678F8\n"
481 "B loc_FF96AC30\n"
482 "loc_FF96AB04:\n"
483 "LDRH R1, [R2,#4]\n"
484 "LDR R3, =0x2C298\n"
485 "STRH R1, [SP,#0x14]\n"
486 "LDRH R1, [R3,#6]\n"
487 "STRH R1, [SP,#0x1A]\n"
488 "LDRH R1, [R3,#2]\n"
489 "STRH R1, [SP,#0x16]\n"
490 "LDRH R3, [R3,#4]\n"
491 "STRH R3, [SP,#0x18]\n"
492 "MOV R0, R2\n"
493 "LDRH R2, [R2,#0xC]\n"
494 "STRH R2, [SP,#0x1C]\n"
495 "BL sub_FF967BF0\n"
496 "B loc_FF96AC30\n"
497 "loc_FF96AB3C:\n"
498 "MOV R0, R2\n"
499 "LDRH R2, [R2,#4]\n"
500 "LDR R3, =0x2C298\n"
501 "STRH R2, [SP,#0x14]\n"
502 "LDRH R2, [R3,#8]\n"
503 "STRH R2, [SP,#0x1C]\n"
504 "LDRH R1, [R3,#2]\n"
505 "STRH R1, [SP,#0x16]\n"
506 "LDRH R2, [R3,#4]\n"
507 "STRH R2, [SP,#0x18]\n"
508 "LDRH R3, [R3,#6]\n"
509 "STRH R3, [SP,#0x1A]\n"
510 "BL sub_FF967D18\n"
511 "B loc_FF96AC30\n"
512 "loc_FF96AB74:\n"
513 "LDR R3, =0x2C298\n"
514 "LDRH R1, [R3]\n"
515 "STRH R1, [SP,#0x14]\n"
516 "MOV R0, R2\n"
517 "LDRH R2, [R2,#6]\n"
518 "STRH R2, [SP,#0x16]\n"
519 "LDRH R2, [R3,#8]\n"
520 "STRH R2, [SP,#0x1C]\n"
521 "LDRH R1, [R3,#4]\n"
522 "STRH R1, [SP,#0x18]\n"
523 "LDRH R3, [R3,#6]\n"
524 "STRH R3, [SP,#0x1A]\n"
525 "BL sub_FF967DDC\n"
526 "B loc_FF96AC30\n"
527 "loc_FF96ABAC:\n"
528 "LDR R3, =0x2C298\n"
529 "LDRH R1, [R3,#6]\n"
530 "STRH R1, [SP,#0x1A]\n"
531 "LDRH R1, [R3]\n"
532 "STRH R1, [SP,#0x14]\n"
533 "LDRH R1, [R3,#2]\n"
534 "STRH R1, [SP,#0x16]\n"
535 "LDRH R3, [R3,#4]\n"
536 "STRH R3, [SP,#0x18]\n"
537 "MOV R0, R2\n"
538 "LDRH R2, [R2,#0xC]\n"
539 "STRH R2, [SP,#0x1C]\n"
540 "BL sub_FF967E94\n"
541 "B loc_FF96AC30\n"
542 "loc_FF96ABE4:\n"
543 "MOV R0, R2\n"
544 "BL sub_FF967F44\n"
545 "B loc_FF96AC30\n"
546 "loc_FF96ABF0:\n"
547 "MOV R0, R2\n"
548 "BL sub_FF96858C\n"
549 "B loc_FF96AC30\n"
550 "loc_FF96ABFC:\n"
551 "MOV R0, R2\n"
552 "BL sub_FF968788\n"
553 "B loc_FF96AC30\n"
554 "loc_FF96AC08:\n"
555 "MOV R0, R2\n"
556 "BL sub_FF968944\n"
557 "B loc_FF96AC30\n"
558 "loc_FF96AC14:\n"
559 "MOV R0, R2\n"
560 "MOV R1, #0\n"
561 "BL sub_FF968B2C\n"
562 "B loc_FF96AC30\n"
563 "loc_FF96AC24:\n"
564 "MOV R0, R2\n"
565 "MOV R1, #1\n"
566 "BL sub_FF968B2C\n"
567 "loc_FF96AC30:\n"
568 "LDR R12, [SP,#4]\n"
569 "loc_FF96AC34:\n"
570 "ADD R0, R12, #4\n"
571 "LDR R1, [R12,#0x7C]\n"
572 "LDR R2, [R12,#0x8C]\n"
573 "MOV LR, PC\n"
574 "LDR PC, [R12,#0x88]\n"
575 "loc_FF96AC48:\n"
576 "CMP R8, #1\n"
577 "BNE loc_FF96AC70\n"
578 "LDR R1, [SP,#4]\n"
579 "LDR R3, [R1,#0x7C]\n"
580 "ADD R3, R3, R3,LSL#1\n"
581 "ADD R1, R1, R3,LSL#2\n"
582 "MOV R0, R6\n"
583 "SUB R1, R1, #8\n"
584 "BL sub_FF9667D4\n"
585 "B loc_FF96ACEC\n"
586 "loc_FF96AC70:\n"
587 "LDR R3, [SP,#4]\n"
588 "LDR R2, [R3]\n"
589 "CMP R2, #9\n"
590 "BNE loc_FF96ACB8\n"
591 "MOV R4, #0\n"
592 "MOV R1, #1\n"
593 "MOV R2, R1\n"
594 "MOV R3, R1\n"
595 "MOV R0, R4\n"
596 "STR R4, [SP]\n"
597 "BL sub_FF966718\n"
598 "MOV R1, #1\n"
599 "MOV R0, R4\n"
600 "MOV R2, R1\n"
601 "MOV R3, R1\n"
602 "STR R4, [SP]\n"
603 "BL sub_FF966970\n"
604 "B loc_FF96ACEC\n"
605 "loc_FF96ACB8:\n"
606 "MOV R4, #1\n"
607 "MOV R0, R4\n"
608 "MOV R1, R4\n"
609 "MOV R2, R4\n"
610 "MOV R3, R4\n"
611 "STR R4, [SP]\n"
612 "BL sub_FF966718\n"
613 "MOV R0, R4\n"
614 "MOV R1, R0\n"
615 "MOV R2, R0\n"
616 "MOV R3, R0\n"
617 "STR R4, [SP]\n"
618 "BL sub_FF966970\n"
619 "loc_FF96ACEC:\n"
620 "LDR R2, =0x2C2E4\n"
621 "MOV R3, #0\n"
622 "LDR R0, [SP,#4]\n"
623 "STR R3, [R2]\n"
624 "BL sub_FF9661BC\n"
625 "loc_FF96AD00:\n"
626 "LDR R3, =0x2C28C\n"
627 "MOV R2, #0\n"
628 "LDR R0, [R3]\n"
629 "MOV R1, R7\n"
630 "BL sub_FFB1358C\n"
631 "LDR R12, [SP,#4]\n"
632 "LDR R2, [R12]\n"
633 "CMP R2, #0x23\n"
634 "BNE loc_FF96A800\n"
635 "MOV R0, R12\n"
636 "BL sub_FF9661BC\n"
637 "LDR R3, =0x2C288\n"
638 "MOV R1, #1\n"
639 "LDR R0, [R3]\n"
640 "BL sub_FFB12E74\n"
641 "BL sub_FFB14B50\n"
642 "ADD SP, SP, #0x20\n"
643 "LDMFD SP!, {R4-R8,PC}\n"
644 );
645 }
646
647 void __attribute__((naked,noinline)) sub_FF967798_my(){
648 asm volatile(
649 "STMFD SP!, {R4-R6,LR}\n"
650 "LDR R3, =0x2C288\n"
651 "MOV R4, R0\n"
652 "MOV R1, #0x3E\n"
653 "LDR R0, [R3]\n"
654 "BL sub_FFB13010\n"
655 "MOV R1, #0\n"
656 "LDRSH R0, [R4,#4]\n"
657 "BL sub_FF9662F0\n"
658 "MOV R6, R0\n"
659 "LDRSH R0, [R4,#6]\n"
660 "BL sub_FF966458\n"
661 "LDRSH R0, [R4,#8]\n"
662 "BL sub_FF9664F4\n"
663 "LDRSH R0, [R4,#0xA]\n"
664 "BL sub_FF966590\n"
665 "LDRSH R0, [R4,#0xC]\n"
666 "BL sub_FF96662C\n"
667 "LDR R3, [R4]\n"
668 "CMP R3, #9\n"
669 "MOV R5, R0\n"
670 "MOVEQ R5, #0\n"
671 "MOVEQ R6, R5\n"
672 "CMP R6, #1\n"
673 "BNE loc_FF96781C\n"
674 "MOV R2, #2\n"
675 "LDRSH R0, [R4,#4]\n"
676 "LDR R1, =0xFF966210\n"
677 "BL sub_FFAD9644\n"
678 "LDR R2, =0x2C2D8\n"
679 "MOV R3, #0\n"
680 "STR R3, [R2]\n"
681 "B loc_FF967820\n"
682 "loc_FF96781C:\n"
683 "BL sub_FF9666C8\n"
684 "loc_FF967820:\n"
685 "STRH R0, [R4,#4]\n"
686 "CMP R5, #1\n"
687 "BNE loc_FF967840\n"
688 "LDRSH R0, [R4,#0xC]\n"
689 "LDR R1, =0xFF9662D4\n"
690 "MOV R2, #0x20\n"
691 "BL sub_FF966ABC\n"
692 "B loc_FF967844\n"
693 "loc_FF967840:\n"
694 "BL sub_FF966708\n"
695 "loc_FF967844:\n"
696 "STRH R0, [R4,#0xC]\n"
697 "LDRSH R0, [R4,#6]\n"
698 "BL sub_FF9304F8_my\n"
699 "LDRSH R0, [R4,#8]\n"
700 "MOV R1, #1\n"
701 "BL sub_FF9327AC\n"
702 "ADD R0, R4, #8\n"
703 "MOV R1, #0\n"
704 "BL sub_FF93286C\n"
705 "LDRSH R0, [R4,#0xE]\n"
706 "BL sub_FF954890\n"
707 "CMP R6, #1\n"
708 "BNE loc_FF9678A8\n"
709 "LDR R3, =0x2C288\n"
710 "MOV R2, #0xBB0\n"
711 "LDR R0, [R3]\n"
712 "MOV R1, #2\n"
713 "ADD R2, R2, #8\n"
714 "BL sub_FFB12E64\n"
715 "TST R0, #1\n"
716 "BEQ loc_FF9678A8\n"
717 "MOV R1, #0x4A0\n"
718 "LDR R0, =0xFF966168\n"
719 "ADD R1, R1, #3\n"
720 "BL sub_FFB2069C\n"
721 "loc_FF9678A8:\n"
722 "CMP R5, #1\n"
723 "LDMNEFD SP!, {R4-R6,PC}\n"
724 "LDR R3, =0x2C288\n"
725 "MOV R2, #0xBB0\n"
726 "LDR R0, [R3]\n"
727 "MOV R1, #0x20\n"
728 "ADD R2, R2, #8\n"
729 "BL sub_FFB12E64\n"
730 "TST R0, #1\n"
731 "LDMEQFD SP!, {R4-R6,PC}\n"
732 "MOV R1, #0x4A0\n"
733 "LDR R0, =0xFF966168\n"
734 "ADD R1, R1, #8\n"
735 "LDMFD SP!, {R4-R6,LR}\n"
736 "B sub_FFB2069C\n"
737 );
738 }
739
740
741 void __attribute__((naked,noinline)) sub_FF9304F8_my(){
742 asm volatile(
743 "STMFD SP!, {R4,LR}\n"
744 "LDR R3, =0x63E4\n"
745 "LDR R2, [R3]\n"
746 "MOV R1, #0x168\n"
747 "MOV R3, R0,LSL#16\n"
748 "CMP R2, #1\n"
749 "ADD R1, R1, #3\n"
750 "LDR R0, =0xFF92FD14\n"
751 "MOV R4, R3,ASR#16\n"
752 "BEQ loc_FF930524\n"
753 "BL sub_FFB2069C\n"
754 "loc_FF930524:\n"
755 "MOV R1, #0x170\n"
756 "CMN R4, #0xC00\n"
757 "LDR R3, =0x12E16\n"
758 "LDR R0, =0xFF92FD14\n"
759 "ADD R1, R1, #1\n"
760 "LDREQSH R4, [R3]\n"
761 "LDRNE R3, =0x12E16\n"
762 "CMN R4, #0xC00\n"
763 "STRH R4, [R3]\n"
764 "BNE loc_FF930550\n"
765 "BL sub_FFB2069C\n"
766 "loc_FF930550:\n"
767 "MOV R0, R4\n"
768
769 "BL apex2us\n"
770 "MOV R4, R0\n"
771 "BL sub_FF9BCB6C\n"
772 "MOV R0, R4\n"
773 "BL sub_FF9D6534\n"
774 "MOV R1, #0x174\n"
775 "TST R0, #1\n"
776 "ADD R1, R1, #2\n"
777 "LDR R0, =0xFF92FD14\n"
778 "LDMEQFD SP!, {R4,PC}\n"
779 "LDMFD SP!, {R4,LR}\n"
780 "B sub_FFB2069C\n"
781 );
782 }