This source file includes following definitions.
- capt_seq_task
- sub_FF960D4C_my
- exp_drv_task
- sub_FF8AB54C_my
- sub_FF89A150_my
1 #include "lolevel.h"
2 #include "platform.h"
3 #include "core.h"
4 #include "conf.h"
5
6 static long *nrflag = (long*)(0x8744+0x00);
7 #define NR_AUTO (0)
8
9 #define PAUSE_FOR_FILE_COUNTER 250
10 #include "../../../generic/capt_seq.c"
11
12
13
14 void __attribute__((naked,noinline)) capt_seq_task( ) {
15 asm volatile (
16 "STMFD SP!, {R3-R7,LR} \n"
17 "LDR R5, =0x36C34 \n"
18 "LDR R6, =0x2ACC \n"
19 "loc_FF86ECB4:\n"
20 "MOV R2, #0 \n"
21 "LDR R0, [R6, #4] \n"
22 "MOV R1, SP \n"
23 "BL sub_003F7218 \n"
24 "TST R0, #1 \n"
25 "BEQ loc_FF86ECE0 \n"
26 "LDR R1, =0x493 \n"
27 "LDR R0, =0xFF86E814 \n"
28 "BL _DebugAssert \n"
29 "BL _ExitTask \n"
30 "LDMFD SP!, {R3-R7,PC} \n"
31 "loc_FF86ECE0:\n"
32 "LDR R0, [SP] \n"
33 "LDR R1, [R0] \n"
34 "CMP R1, #0x20 \n"
35 "ADDCC PC, PC, R1, LSL #2 \n"
36 "B loc_FF86EF20 \n"
37 "B loc_FF86ED74 \n"
38 "B loc_FF86ED7C \n"
39 "B loc_FF86EDE0 \n"
40 "B loc_FF86EDF4 \n"
41 "B loc_FF86EDEC \n"
42 "B loc_FF86EDFC \n"
43 "B loc_FF86EE04 \n"
44 "B loc_FF86EE10 \n"
45 "B loc_FF86EE2C \n"
46 "B loc_FF86EDF4 \n"
47 "B loc_FF86EE34 \n"
48 "B loc_FF86EE40 \n"
49 "B loc_FF86EE48 \n"
50 "B loc_FF86EE54 \n"
51 "B loc_FF86EE5C \n"
52 "B loc_FF86EE64 \n"
53 "B loc_FF86EE6C \n"
54 "B loc_FF86EE74 \n"
55 "B loc_FF86EE80 \n"
56 "B loc_FF86EE88 \n"
57 "B loc_FF86EE90 \n"
58 "B loc_FF86EE98 \n"
59 "B loc_FF86EEA0 \n"
60 "B loc_FF86EEAC \n"
61 "B loc_FF86EEB4 \n"
62 "B loc_FF86EEBC \n"
63 "B loc_FF86EEC4 \n"
64 "B loc_FF86EECC \n"
65 "B loc_FF86EED8 \n"
66 "B loc_FF86EEE0 \n"
67 "B loc_FF86EEEC \n"
68 "B loc_FF86EF2C \n"
69 "loc_FF86ED74:\n"
70 "BL shooting_expo_iso_override\n"
71 "BL sub_FF86F50C \n"
72 "BL shooting_expo_param_override\n"
73 "B loc_FF86EE08 \n"
74 "loc_FF86ED7C:\n"
75 "LDR R4, [R0, #0x10] \n"
76 "LDR R0, [R5, #0x84] \n"
77 "TST R0, #0x30 \n"
78 "BLNE sub_FF87066C \n"
79 "BL sub_FF87034C \n"
80 "MOV R1, R4 \n"
81 "BL sub_FF8703A4 \n"
82 "LDR R0, =0x10F \n"
83 "MOV R2, #4 \n"
84 "ADD R1, R4, #0x24 \n"
85 "BL sub_FF87E744 \n"
86 "MOV R2, #4 \n"
87 "ADD R1, R4, #0x28 \n"
88 "MOV R0, #0x2C \n"
89 "BL sub_FF87E744 \n"
90 "MOV R0, R4 \n"
91
92 "BL sub_FF960D4C_my \n"
93 "BL capt_seq_hook_raw_here \n"
94 "MOV R7, R0 \n"
95 "MOV R2, R4 \n"
96 "MOV R1, #1 \n"
97 "BL sub_FF86D0F8 \n"
98 "TST R7, #1 \n"
99 "MOVEQ R0, R4 \n"
100 "BLEQ sub_FF960754 \n"
101 "B loc_FF86EF2C \n"
102 "loc_FF86EDE0:\n"
103 "MOV R0, #1 \n"
104 "BL sub_FF86F7D0 \n"
105 "B loc_FF86EF2C \n"
106 "loc_FF86EDEC:\n"
107 "BL sub_FF86F154 \n"
108 "B loc_FF86EF2C \n"
109 "loc_FF86EDF4:\n"
110 "BL sub_FF86F4EC \n"
111 "B loc_FF86EF2C \n"
112 "loc_FF86EDFC:\n"
113 "BL sub_FF86F4F4 \n"
114 "B loc_FF86EF2C \n"
115 "loc_FF86EE04:\n"
116 "BL sub_FF86F6B8 \n"
117 "loc_FF86EE08:\n"
118 "BL sub_FF86CC78 \n"
119 "B loc_FF86EF2C \n"
120 "loc_FF86EE10:\n"
121 "LDR R4, [R0, #0x10] \n"
122 "MOV R0, R4 \n"
123 "BL sub_FF960E50 \n"
124 "MOV R2, R4 \n"
125 "MOV R1, #9 \n"
126 "BL sub_FF86D0F8 \n"
127 "B loc_FF86EF2C \n"
128 "loc_FF86EE2C:\n"
129 "BL sub_FF86F738 \n"
130 "B loc_FF86EE08 \n"
131 "loc_FF86EE34:\n"
132 "LDR R0, [R5, #0x50] \n"
133 "BL sub_FF86FB70 \n"
134 "B loc_FF86EF2C \n"
135 "loc_FF86EE40:\n"
136 "BL sub_FF86FF08 \n"
137 "B loc_FF86EF2C \n"
138 "loc_FF86EE48:\n"
139 "MOV R0, #0 \n"
140 "BL sub_FF86FF6C \n"
141 "B loc_FF86EF2C \n"
142 "loc_FF86EE54:\n"
143 "BL sub_FF95FB24 \n"
144 "B loc_FF86EF2C \n"
145 "loc_FF86EE5C:\n"
146 "BL sub_FF95FD84 \n"
147 "B loc_FF86EF2C \n"
148 "loc_FF86EE64:\n"
149 "BL sub_FF95FE3C \n"
150 "B loc_FF86EF2C \n"
151 "loc_FF86EE6C:\n"
152 "BL sub_FF95FF10 \n"
153 "B loc_FF86EF2C \n"
154 "loc_FF86EE74:\n"
155 "MOV R0, #0 \n"
156 "BL sub_FF960170 \n"
157 "B loc_FF86EF2C \n"
158 "loc_FF86EE80:\n"
159 "BL sub_FF9602E0 \n"
160 "B loc_FF86EF2C \n"
161 "loc_FF86EE88:\n"
162 "BL sub_FF960374 \n"
163 "B loc_FF86EF2C \n"
164 "loc_FF86EE90:\n"
165 "BL sub_FF96042C \n"
166 "B loc_FF86EF2C \n"
167 "loc_FF86EE98:\n"
168 "BL sub_FF86F94C \n"
169 "B loc_FF86EF2C \n"
170 "loc_FF86EEA0:\n"
171 "BL sub_FF86F978 \n"
172 "BL sub_FF830FB0 \n"
173 "B loc_FF86EF2C \n"
174 "loc_FF86EEAC:\n"
175 "BL sub_FF95FFE0 \n"
176 "B loc_FF86EF2C \n"
177 "loc_FF86EEB4:\n"
178 "BL sub_FF960020 \n"
179 "B loc_FF86EF2C \n"
180 "loc_FF86EEBC:\n"
181 "BL sub_FF871844 \n"
182 "B loc_FF86EF2C \n"
183 "loc_FF86EEC4:\n"
184 "BL sub_FF8718B8 \n"
185 "B loc_FF86EF2C \n"
186 "loc_FF86EECC:\n"
187 "LDR R0, [R0, #0xC] \n"
188 "BL sub_FF960544 \n"
189 "B loc_FF86EF2C \n"
190 "loc_FF86EED8:\n"
191 "BL sub_FF9605B4 \n"
192 "B loc_FF86EF2C \n"
193 "loc_FF86EEE0:\n"
194 "BL sub_FF871920 \n"
195 "BL sub_FF8718D8 \n"
196 "B loc_FF86EF2C \n"
197 "loc_FF86EEEC:\n"
198 "MOV R0, #1 \n"
199 "BL sub_FF961568 \n"
200 "MOV R0, #1 \n"
201 "BL sub_FF961690 \n"
202 "LDRH R0, [R5, #0x94] \n"
203 "CMP R0, #4 \n"
204 "LDRNEH R0, [R5] \n"
205 "SUBNE R1, R0, #0x8200 \n"
206 "SUBNES R1, R1, #0x2E \n"
207 "BNE loc_FF86EF2C \n"
208 "BL sub_FF8718B8 \n"
209 "BL sub_FF871D7C \n"
210 "B loc_FF86EF2C \n"
211 "loc_FF86EF20:\n"
212 "LDR R1, =0x5F4 \n"
213 "LDR R0, =0xFF86E814 \n"
214 "BL _DebugAssert \n"
215 "loc_FF86EF2C:\n"
216 "LDR R0, [SP] \n"
217 "LDR R1, [R0, #4] \n"
218 "LDR R0, [R6] \n"
219 "BL sub_003FAC6C \n"
220 "LDR R4, [SP] \n"
221 "LDR R0, [R4, #8] \n"
222 "CMP R0, #0 \n"
223 "LDREQ R1, =0x117 \n"
224 "LDREQ R0, =0xFF86E814 \n"
225 "BLEQ _DebugAssert \n"
226 "MOV R0, #0 \n"
227 "STR R0, [R4, #8] \n"
228 "B loc_FF86ECB4 \n"
229 );
230 }
231
232
233
234 void __attribute__((naked,noinline)) sub_FF960D4C_my() {
235 asm volatile (
236 "STMFD SP!, {R3-R5,LR} \n"
237 "MOV R5, R0 \n"
238 "MOV R0, #0xC \n"
239 "BL sub_FF873300 \n"
240 "TST R0, #1 \n"
241 "MOVNE R0, #1 \n"
242 "BNE sub_FF960E4C \n"
243 "BL sub_FF86F4FC \n"
244 "MOV R0, R5 \n"
245 "BL sub_FF9606A4 \n"
246 "TST R0, #1 \n"
247 "BNE sub_FF960E4C \n"
248 "LDR R4, =0x36C34 \n"
249 "LDR R0, [R4, #0x84] \n"
250 "AND R0, R0, #0x40 \n"
251 "CMP R0, #0 \n"
252 "LDRNEH R0, [R4, #0x92] \n"
253 "CMPNE R0, #3 \n"
254 "LDRNE R0, [R5, #8] \n"
255 "CMPNE R0, #1 \n"
256 "BLS loc_FF960DBC \n"
257 "BL sub_FF961850 \n"
258 "MOV R3, #0xC0 \n"
259 "STR R3, [SP] \n"
260 "LDR R2, =0x3A98 \n"
261 "LDR R3, =0xFF960EDC \n"
262 "MOV R1, #0x8000 \n"
263 "BL sub_FF873568 \n"
264 "loc_FF960DBC:\n"
265 "MOV R0, R5 \n"
266 "BL sub_FF96098C \n"
267 "BL sub_FF961348 \n"
268
269 "BL wait_until_remote_button_is_released \n"
270 "BL capt_seq_hook_set_nr \n"
271
272 "LDR R0, [R4, #0x84] \n"
273 "TST R0, #0x40 \n"
274 "BEQ sub_FF960E30 \n"
275 "LDR R0, =0x181 \n"
276 "MOV R2, #4 \n"
277 "MOV R1, SP \n"
278 "BL _GetPropertyCase \n"
279 "TST R0, #1 \n"
280 "MOVNE R1, #0xD4 \n"
281 "LDRNE R0, =0xFF960EDC \n"
282 "BLNE _DebugAssert \n"
283 "LDR R0, [SP] \n"
284 "CMP R0, #0 \n"
285 "BNE loc_FF960E10 \n"
286 "BL sub_FF961850 \n"
287 "MOV R1, #0x8000 \n"
288 "BL sub_003FAC6C \n"
289 "B sub_FF960E30 \n"
290 "loc_FF960E10:\n"
291 "BL sub_FF961850 \n"
292 "MOV R1, #0x8000 \n"
293 "BL sub_003FACA0 \n"
294 "LDR R2, =0xFF960D38 \n"
295 "LDR R0, [SP] \n"
296 "MOV R3, #0x8000 \n"
297 "ADD R1, R2, #0 \n"
298 "BL sub_FF833200 \n"
299 "loc_FF960E30:\n"
300 "LDR R0, [R4, #0x84] \n"
301 "TST R0, #0x10 \n"
302 "MOV R0, R5 \n"
303 "LDMEQFD SP!, {R3-R5,LR} \n"
304 );
305 }
306
307
308
309 void __attribute__((naked,noinline)) exp_drv_task( ) {
310 asm volatile (
311 "STMFD SP!, {R4-R9,LR} \n"
312 "SUB SP, SP, #0x2C \n"
313 "LDR R6, =0x3D78 \n"
314 "LDR R7, =0xBB8 \n"
315 "LDR R4, =0x55E1C \n"
316 "MOV R0, #0 \n"
317 "ADD R5, SP, #0x1C \n"
318 "STR R0, [SP, #0xC] \n"
319 "loc_FF8AE8F4:\n"
320 "LDR R0, [R6, #0x20] \n"
321 "MOV R2, #0 \n"
322 "ADD R1, SP, #0x28 \n"
323 "BL sub_003F7218 \n"
324 "LDR R0, [SP, #0xC] \n"
325 "CMP R0, #1 \n"
326 "BNE loc_FF8AE940 \n"
327 "LDR R0, [SP, #0x28] \n"
328 "LDR R0, [R0] \n"
329 "CMP R0, #0x14 \n"
330 "CMPNE R0, #0x15 \n"
331 "CMPNE R0, #0x16 \n"
332 "CMPNE R0, #0x17 \n"
333 "BEQ loc_FF8AEAA0 \n"
334 "CMP R0, #0x2A \n"
335 "BEQ loc_FF8AEA28 \n"
336 "ADD R1, SP, #0xC \n"
337 "MOV R0, #0 \n"
338 "BL sub_FF8AE884 \n"
339 "loc_FF8AE940:\n"
340 "LDR R0, [SP, #0x28] \n"
341 "LDR R1, [R0] \n"
342 "CMP R1, #0x30 \n"
343 "BNE loc_FF8AE96C \n"
344 "BL sub_FF8AFCB0 \n"
345 "LDR R0, [R6, #0x1C] \n"
346 "MOV R1, #1 \n"
347 "BL sub_003FAC6C \n"
348 "BL _ExitTask \n"
349 "ADD SP, SP, #0x2C \n"
350 "LDMFD SP!, {R4-R9,PC} \n"
351 "loc_FF8AE96C:\n"
352 "CMP R1, #0x2F \n"
353 "BNE loc_FF8AE988 \n"
354 "LDR R2, [R0, #0x8C]! \n"
355 "LDR R1, [R0, #4] \n"
356 "MOV R0, R1 \n"
357 "BLX R2 \n"
358 "B loc_FF8AEF5C \n"
359 "loc_FF8AE988:\n"
360 "CMP R1, #0x28 \n"
361 "BNE loc_FF8AE9D8 \n"
362 "LDR R0, [R6, #0x1C] \n"
363 "MOV R1, #0x80 \n"
364 "BL sub_003FACA0 \n"
365 "LDR R0, =0xFF8AA1F0 \n"
366 "MOV R1, #0x80 \n"
367 "BL sub_FF954E04 \n"
368 "LDR R0, [R6, #0x1C] \n"
369 "MOV R2, R7 \n"
370 "MOV R1, #0x80 \n"
371 "BL sub_003FABAC \n"
372 "TST R0, #1 \n"
373 "LDRNE R1, =0x1599 \n"
374 "BNE loc_FF8AEA94 \n"
375 "loc_FF8AE9C4:\n"
376 "LDR R1, [SP, #0x28] \n"
377 "LDR R0, [R1, #0x90] \n"
378 "LDR R1, [R1, #0x8C] \n"
379 "BLX R1 \n"
380 "B loc_FF8AEF5C \n"
381 "loc_FF8AE9D8:\n"
382 "CMP R1, #0x29 \n"
383 "BNE loc_FF8AEA20 \n"
384 "ADD R1, SP, #0xC \n"
385 "BL sub_FF8AE884 \n"
386 "LDR R0, [R6, #0x1C] \n"
387 "MOV R1, #0x100 \n"
388 "BL sub_003FACA0 \n"
389 "LDR R0, =0xFF8AA200 \n"
390 "MOV R1, #0x100 \n"
391 "BL sub_FF954FA4 \n"
392 "LDR R0, [R6, #0x1C] \n"
393 "MOV R2, R7 \n"
394 "MOV R1, #0x100 \n"
395 "BL sub_003FABAC \n"
396 "TST R0, #1 \n"
397 "BEQ loc_FF8AE9C4 \n"
398 "LDR R1, =0x15A3 \n"
399 "B loc_FF8AEA94 \n"
400 "loc_FF8AEA20:\n"
401 "CMP R1, #0x2A \n"
402 "BNE loc_FF8AEA38 \n"
403 "loc_FF8AEA28:\n"
404 "LDR R0, [SP, #0x28] \n"
405 "ADD R1, SP, #0xC \n"
406 "BL sub_FF8AE884 \n"
407 "B loc_FF8AE9C4 \n"
408 "loc_FF8AEA38:\n"
409 "CMP R1, #0x2D \n"
410 "BNE loc_FF8AEA50 \n"
411 "BL sub_FF89A404 \n"
412 "BL sub_FF89B0EC \n"
413 "BL sub_FF89AC54 \n"
414 "B loc_FF8AE9C4 \n"
415 "loc_FF8AEA50:\n"
416 "CMP R1, #0x2E \n"
417 "BNE loc_FF8AEAA0 \n"
418 "LDR R0, [R6, #0x1C] \n"
419 "MOV R1, #4 \n"
420 "BL sub_003FACA0 \n"
421 "LDR R1, =0xFF8AA220 \n"
422 "LDR R0, =0xFFFFF400 \n"
423 "MOV R2, #4 \n"
424 "BL sub_FF899E54 \n"
425 "BL sub_FF89A0E4 \n"
426 "LDR R0, [R6, #0x1C] \n"
427 "MOV R2, R7 \n"
428 "MOV R1, #4 \n"
429 "BL sub_003FAAC8 \n"
430 "TST R0, #1 \n"
431 "BEQ loc_FF8AE9C4 \n"
432 "LDR R1, =0x15CB \n"
433 "loc_FF8AEA94:\n"
434 "LDR R0, =0xFF8AA914 \n"
435 "BL _DebugAssert \n"
436 "B loc_FF8AE9C4 \n"
437 "loc_FF8AEAA0:\n"
438 "LDR R0, [SP, #0x28] \n"
439 "MOV R8, #1 \n"
440 "LDR R1, [R0] \n"
441 "CMP R1, #0x12 \n"
442 "CMPNE R1, #0x13 \n"
443 "BNE loc_FF8AEB08 \n"
444 "LDR R1, [R0, #0x7C] \n"
445 "ADD R1, R1, R1, LSL #1 \n"
446 "ADD R1, R0, R1, LSL #2 \n"
447 "SUB R1, R1, #8 \n"
448 "LDMIA R1, {R2,R3,R9} \n"
449 "STMIA R5, {R2,R3,R9} \n"
450 "BL sub_FF8ACE28 \n"
451 "LDR R0, [SP, #0x28] \n"
452 "LDR R1, [R0, #0x7C] \n"
453 "LDR R3, [R0, #0x8C] \n"
454 "LDR R2, [R0, #0x90] \n"
455 "ADD R0, R0, #4 \n"
456 "BLX R3 \n"
457 "LDR R0, [SP, #0x28] \n"
458 "BL sub_FF8B00B4 \n"
459 "LDR R0, [SP, #0x28] \n"
460 "LDR R1, [R0, #0x7C] \n"
461 "LDR R2, [R0, #0x98] \n"
462 "LDR R3, [R0, #0x94] \n"
463 "B loc_FF8AEE20 \n"
464 "loc_FF8AEB08:\n"
465 "CMP R1, #0x14 \n"
466 "CMPNE R1, #0x15 \n"
467 "CMPNE R1, #0x16 \n"
468 "CMPNE R1, #0x17 \n"
469 "BNE loc_FF8AEBC0 \n"
470 "ADD R3, SP, #0xC \n"
471 "MOV R2, SP \n"
472 "ADD R1, SP, #0x1C \n"
473 "BL sub_FF8AD088 \n"
474 "CMP R0, #1 \n"
475 "MOV R9, R0 \n"
476 "CMPNE R9, #5 \n"
477 "BNE loc_FF8AEB5C \n"
478 "LDR R0, [SP, #0x28] \n"
479 "MOV R2, R9 \n"
480 "LDR R1, [R0, #0x7C]! \n"
481 "LDR R12, [R0, #0x10]! \n"
482 "LDR R3, [R0, #4] \n"
483 "MOV R0, SP \n"
484 "BLX R12 \n"
485 "B loc_FF8AEB94 \n"
486 "loc_FF8AEB5C:\n"
487 "LDR R0, [SP, #0x28] \n"
488 "CMP R9, #2 \n"
489 "LDR R3, [R0, #0x90] \n"
490 "CMPNE R9, #6 \n"
491 "BNE loc_FF8AEBA8 \n"
492 "LDR R12, [R0, #0x8C] \n"
493 "MOV R2, R9 \n"
494 "MOV R1, #1 \n"
495 "MOV R0, SP \n"
496 "BLX R12 \n"
497 "LDR R0, [SP, #0x28] \n"
498 "MOV R2, SP \n"
499 "ADD R1, SP, #0x1C \n"
500 "BL sub_FF8AE570 \n"
501 "loc_FF8AEB94:\n"
502 "LDR R0, [SP, #0x28] \n"
503 "LDR R2, [SP, #0xC] \n"
504 "MOV R1, R9 \n"
505 "BL sub_FF8AE7C0 \n"
506 "B loc_FF8AEE28 \n"
507 "loc_FF8AEBA8:\n"
508 "LDR R1, [R0, #0x7C] \n"
509 "LDR R12, [R0, #0x8C] \n"
510 "MOV R2, R9 \n"
511 "ADD R0, R0, #4 \n"
512 "BLX R12 \n"
513 "B loc_FF8AEE28 \n"
514 "loc_FF8AEBC0:\n"
515 "CMP R1, #0x24 \n"
516 "CMPNE R1, #0x25 \n"
517 "BNE loc_FF8AEC0C \n"
518 "LDR R1, [R0, #0x7C] \n"
519 "ADD R1, R1, R1, LSL #1 \n"
520 "ADD R1, R0, R1, LSL #2 \n"
521 "SUB R1, R1, #8 \n"
522 "LDMIA R1, {R2,R3,R9} \n"
523 "STMIA R5, {R2,R3,R9} \n"
524 "BL sub_FF8ABE14 \n"
525 "LDR R0, [SP, #0x28] \n"
526 "LDR R1, [R0, #0x7C] \n"
527 "LDR R3, [R0, #0x8C] \n"
528 "LDR R2, [R0, #0x90] \n"
529 "ADD R0, R0, #4 \n"
530 "BLX R3 \n"
531 "LDR R0, [SP, #0x28] \n"
532 "BL sub_FF8AC254 \n"
533 "B loc_FF8AEE28 \n"
534 "loc_FF8AEC0C:\n"
535 "ADD R1, R0, #4 \n"
536 "LDMIA R1, {R2,R3,R9} \n"
537 "STMIA R5, {R2,R3,R9} \n"
538 "LDR R1, [R0] \n"
539 "CMP R1, #0x28 \n"
540 "ADDCC PC, PC, R1, LSL #2 \n"
541 "B loc_FF8AEE10 \n"
542 "B loc_FF8AECC8 \n"
543 "B loc_FF8AECC8 \n"
544 "B loc_FF8AECD0 \n"
545 "B loc_FF8AECD8 \n"
546 "B loc_FF8AECD8 \n"
547 "B loc_FF8AECD8 \n"
548 "B loc_FF8AECC8 \n"
549 "B loc_FF8AECD0 \n"
550 "B loc_FF8AECD8 \n"
551 "B loc_FF8AECD8 \n"
552 "B loc_FF8AECF0 \n"
553 "B loc_FF8AECF0 \n"
554 "B loc_FF8AEDFC \n"
555 "B loc_FF8AEE04 \n"
556 "B loc_FF8AEE04 \n"
557 "B loc_FF8AEE04 \n"
558 "B loc_FF8AEE04 \n"
559 "B loc_FF8AEE0C \n"
560 "B loc_FF8AEE10 \n"
561 "B loc_FF8AEE10 \n"
562 "B loc_FF8AEE10 \n"
563 "B loc_FF8AEE10 \n"
564 "B loc_FF8AEE10 \n"
565 "B loc_FF8AEE10 \n"
566 "B loc_FF8AECE0 \n"
567 "B loc_FF8AECE8 \n"
568 "B loc_FF8AECE8 \n"
569 "B loc_FF8AECE8 \n"
570 "B loc_FF8AECFC \n"
571 "B loc_FF8AECFC \n"
572 "B loc_FF8AED04 \n"
573 "B loc_FF8AED3C \n"
574 "B loc_FF8AED74 \n"
575 "B loc_FF8AEDAC \n"
576 "B loc_FF8AEDE4 \n"
577 "B loc_FF8AEDE4 \n"
578 "B loc_FF8AEE10 \n"
579 "B loc_FF8AEE10 \n"
580 "B loc_FF8AEDEC \n"
581 "B loc_FF8AEDF4 \n"
582 "loc_FF8AECC8:\n"
583 "BL sub_FF8AA798 \n"
584 "B loc_FF8AEE10 \n"
585 "loc_FF8AECD0:\n"
586 "BL sub_FF8AAA3C \n"
587 "B loc_FF8AEE10 \n"
588 "loc_FF8AECD8:\n"
589 "BL sub_FF8AAC64 \n"
590 "B loc_FF8AEE10 \n"
591 "loc_FF8AECE0:\n"
592 "BL sub_FF8AAF88 \n"
593 "B loc_FF8AEE10 \n"
594 "loc_FF8AECE8:\n"
595 "BL sub_FF8AB1A0 \n"
596 "B loc_FF8AEE10 \n"
597 "loc_FF8AECF0:\n"
598
599 "BL sub_FF8AB54C_my \n"
600 "MOV R8, #0 \n"
601 "B loc_FF8AEE10 \n"
602 "loc_FF8AECFC:\n"
603 "BL sub_FF8AB68C \n"
604 "B loc_FF8AEE10 \n"
605 "loc_FF8AED04:\n"
606 "LDRH R1, [R0, #4] \n"
607 "STRH R1, [SP, #0x1C] \n"
608 "LDRH R1, [R4, #2] \n"
609 "STRH R1, [SP, #0x1E] \n"
610 "LDRH R1, [R4, #4] \n"
611 "STRH R1, [SP, #0x20] \n"
612 "LDRH R1, [R4, #6] \n"
613 "STRH R1, [SP, #0x22] \n"
614 "LDRH R1, [R0, #0xC] \n"
615 "STRH R1, [SP, #0x24] \n"
616 "LDRH R1, [R4, #0xA] \n"
617 "STRH R1, [SP, #0x26] \n"
618 "BL sub_FF8AFD44 \n"
619 "B loc_FF8AEE10 \n"
620 "loc_FF8AED3C:\n"
621 "LDRH R1, [R0, #4] \n"
622 "STRH R1, [SP, #0x1C] \n"
623 "LDRH R1, [R4, #2] \n"
624 "STRH R1, [SP, #0x1E] \n"
625 "LDRH R1, [R4, #4] \n"
626 "STRH R1, [SP, #0x20] \n"
627 "LDRH R1, [R4, #6] \n"
628 "STRH R1, [SP, #0x22] \n"
629 "LDRH R1, [R4, #8] \n"
630 "STRH R1, [SP, #0x24] \n"
631 "LDRH R1, [R4, #0xA] \n"
632 "STRH R1, [SP, #0x26] \n"
633 "BL sub_FF8AFEB4 \n"
634 "B loc_FF8AEE10 \n"
635 "loc_FF8AED74:\n"
636 "LDRH R1, [R4] \n"
637 "STRH R1, [SP, #0x1C] \n"
638 "LDRH R1, [R0, #6] \n"
639 "STRH R1, [SP, #0x1E] \n"
640 "LDRH R1, [R4, #4] \n"
641 "STRH R1, [SP, #0x20] \n"
642 "LDRH R1, [R4, #6] \n"
643 "STRH R1, [SP, #0x22] \n"
644 "LDRH R1, [R4, #8] \n"
645 "STRH R1, [SP, #0x24] \n"
646 "LDRH R1, [R4, #0xA] \n"
647 "STRH R1, [SP, #0x26] \n"
648 "BL sub_FF8AFF68 \n"
649 "B loc_FF8AEE10 \n"
650 "loc_FF8AEDAC:\n"
651 "LDRH R1, [R4] \n"
652 "STRH R1, [SP, #0x1C] \n"
653 "LDRH R1, [R4, #2] \n"
654 "STRH R1, [SP, #0x1E] \n"
655 "LDRH R1, [R4, #4] \n"
656 "STRH R1, [SP, #0x20] \n"
657 "LDRH R1, [R4, #6] \n"
658 "STRH R1, [SP, #0x22] \n"
659 "LDRH R1, [R0, #0xC] \n"
660 "STRH R1, [SP, #0x24] \n"
661 "LDRH R1, [R4, #0xA] \n"
662 "STRH R1, [SP, #0x26] \n"
663 "BL sub_FF8B0010 \n"
664 "B loc_FF8AEE10 \n"
665 "loc_FF8AEDE4:\n"
666 "BL sub_FF8ABBC8 \n"
667 "B loc_FF8AEE10 \n"
668 "loc_FF8AEDEC:\n"
669 "BL sub_FF8AC358 \n"
670 "B loc_FF8AEE10 \n"
671 "loc_FF8AEDF4:\n"
672 "BL sub_FF8AC63C \n"
673 "B loc_FF8AEE10 \n"
674 "loc_FF8AEDFC:\n"
675 "BL sub_FF8AC8FC \n"
676 "B loc_FF8AEE10 \n"
677 "loc_FF8AEE04:\n"
678 "BL sub_FF8ACAB8 \n"
679 "B loc_FF8AEE10 \n"
680 "loc_FF8AEE0C:\n"
681 "BL sub_FF8ACC20 \n"
682 "loc_FF8AEE10:\n"
683 "LDR R0, [SP, #0x28] \n"
684 "LDR R1, [R0, #0x7C] \n"
685 "LDR R2, [R0, #0x90] \n"
686 "LDR R3, [R0, #0x8C] \n"
687 "loc_FF8AEE20:\n"
688 "ADD R0, R0, #4 \n"
689 "BLX R3 \n"
690 "loc_FF8AEE28:\n"
691 "LDR R0, [SP, #0x28] \n"
692 "LDR R0, [R0] \n"
693 "CMP R0, #0x10 \n"
694 "BEQ loc_FF8AEE60 \n"
695 "BGT loc_FF8AEE50 \n"
696 "CMP R0, #1 \n"
697 "CMPNE R0, #4 \n"
698 "CMPNE R0, #0xE \n"
699 "BNE loc_FF8AEE94 \n"
700 "B loc_FF8AEE60 \n"
701 "loc_FF8AEE50:\n"
702 "CMP R0, #0x13 \n"
703 "CMPNE R0, #0x17 \n"
704 "CMPNE R0, #0x1A \n"
705 "BNE loc_FF8AEE94 \n"
706 "loc_FF8AEE60:\n"
707 "LDRSH R0, [R4] \n"
708 "CMN R0, #0xC00 \n"
709 "LDRNESH R1, [R4, #8] \n"
710 "CMNNE R1, #0xC00 \n"
711 "STRNEH R0, [SP, #0x1C] \n"
712 "STRNEH R1, [SP, #0x24] \n"
713 "BNE loc_FF8AEE94 \n"
714 "ADD R0, SP, #0x10 \n"
715 "BL sub_FF8B02C4 \n"
716 "LDRH R0, [SP, #0x10] \n"
717 "STRH R0, [SP, #0x1C] \n"
718 "LDRH R0, [SP, #0x18] \n"
719 "STRH R0, [SP, #0x24] \n"
720 "loc_FF8AEE94:\n"
721 "LDR R0, [SP, #0x28] \n"
722 "CMP R8, #1 \n"
723 "BNE loc_FF8AEEE4 \n"
724 "LDR R1, [R0, #0x7C] \n"
725 "MOV R2, #0xC \n"
726 "ADD R1, R1, R1, LSL #1 \n"
727 "ADD R0, R0, R1, LSL #2 \n"
728 "SUB R8, R0, #8 \n"
729 "LDR R0, =0x55E1C \n"
730 "ADD R1, SP, #0x1C \n"
731 "BL sub_003FC17C \n"
732 "LDR R0, =0x55E28 \n"
733 "MOV R2, #0xC \n"
734 "ADD R1, SP, #0x1C \n"
735 "BL sub_003FC17C \n"
736 "LDR R0, =0x55E34 \n"
737 "MOV R2, #0xC \n"
738 "MOV R1, R8 \n"
739 "BL sub_003FC17C \n"
740 "B loc_FF8AEF5C \n"
741 "loc_FF8AEEE4:\n"
742 "LDR R0, [R0] \n"
743 "MOV R3, #1 \n"
744 "CMP R0, #0xB \n"
745 "BNE loc_FF8AEF28 \n"
746 "MOV R2, #0 \n"
747 "STRD R2, [SP] \n"
748 "MOV R2, R3 \n"
749 "MOV R1, R3 \n"
750 "MOV R0, #0 \n"
751 "BL sub_FF8AA578 \n"
752 "MOV R3, #1 \n"
753 "MOV R2, #0 \n"
754 "STRD R2, [SP] \n"
755 "MOV R2, R3 \n"
756 "MOV R1, R3 \n"
757 "MOV R0, #0 \n"
758 "B loc_FF8AEF58 \n"
759 "loc_FF8AEF28:\n"
760 "MOV R2, #1 \n"
761 "STRD R2, [SP] \n"
762 "MOV R3, R2 \n"
763 "MOV R1, R2 \n"
764 "MOV R0, R2 \n"
765 "BL sub_FF8AA578 \n"
766 "MOV R3, #1 \n"
767 "MOV R2, R3 \n"
768 "MOV R1, R3 \n"
769 "MOV R0, R3 \n"
770 "STR R3, [SP] \n"
771 "STR R3, [SP, #4] \n"
772 "loc_FF8AEF58:\n"
773 "BL sub_FF8AA6E4 \n"
774 "loc_FF8AEF5C:\n"
775 "LDR R0, [SP, #0x28] \n"
776 "BL sub_FF8AFCB0 \n"
777 "B loc_FF8AE8F4 \n"
778 );
779 }
780
781
782
783 void __attribute__((naked,noinline)) sub_FF8AB54C_my( ) {
784 asm volatile (
785 "STMFD SP!, {R4-R8,LR} \n"
786 "LDR R7, =0x3D78 \n"
787 "MOV R4, R0 \n"
788 "LDR R0, [R7, #0x1C] \n"
789 "MOV R1, #0x3E \n"
790 "BL sub_003FACA0 \n"
791 "MOV R2, #0 \n"
792 "LDRSH R0, [R4, #4] \n"
793 "MOV R1, R2 \n"
794 "BL sub_FF8AA280 \n"
795 "MOV R6, R0 \n"
796 "LDRSH R0, [R4, #6] \n"
797 "BL sub_FF8AA3D0 \n"
798 "LDRSH R0, [R4, #8] \n"
799 "BL sub_FF8AA428 \n"
800 "LDRSH R0, [R4, #0xA] \n"
801 "BL sub_FF8AA480 \n"
802 "LDRSH R0, [R4, #0xC] \n"
803 "MOV R1, #0 \n"
804 "BL sub_FF8AA4D8 \n"
805 "MOV R5, R0 \n"
806 "LDR R0, [R4] \n"
807 "LDR R8, =0x55E34 \n"
808 "CMP R0, #0xB \n"
809 "MOVEQ R6, #0 \n"
810 "MOVEQ R5, R6 \n"
811 "BEQ loc_FF8AB5E0 \n"
812 "CMP R6, #1 \n"
813 "BNE loc_FF8AB5E0 \n"
814 "LDRSH R0, [R4, #4] \n"
815 "LDR R1, =0xFF8AA1E0 \n"
816 "MOV R2, #2 \n"
817 "BL sub_FF954E88 \n"
818 "STRH R0, [R4, #4] \n"
819 "MOV R0, #0 \n"
820 "STR R0, [R7, #0x28] \n"
821 "B loc_FF8AB5E8 \n"
822 "loc_FF8AB5E0:\n"
823 "LDRH R0, [R8] \n"
824 "STRH R0, [R4, #4] \n"
825 "loc_FF8AB5E8:\n"
826 "CMP R5, #1 \n"
827 "LDRNEH R0, [R8, #8] \n"
828 "BNE loc_FF8AB604 \n"
829 "LDRSH R0, [R4, #0xC] \n"
830 "LDR R1, =0xFF8AA264 \n"
831 "MOV R2, #0x20 \n"
832 "BL sub_FF8AFD00 \n"
833 "loc_FF8AB604:\n"
834 "STRH R0, [R4, #0xC] \n"
835 "LDRSH R0, [R4, #6] \n"
836
837 "BL sub_FF89A150_my \n"
838 "B sub_FF8AB610 \n"
839 );
840 }
841
842
843
844 void __attribute__((naked,noinline)) sub_FF89A150_my() {
845 asm volatile (
846 "STMFD SP!, {R4-R6,LR} \n"
847 "LDR R5, =0x39C8 \n"
848 "MOV R4, R0 \n"
849 "LDR R0, [R5, #4] \n"
850 "CMP R0, #1 \n"
851 "LDRNE R1, =0x14D \n"
852 "LDRNE R0, =0xFF899F88 \n"
853 "BLNE _DebugAssert \n"
854 "CMN R4, #0xC00 \n"
855 "LDREQSH R4, [R5, #2] \n"
856 "CMN R4, #0xC00 \n"
857 "LDREQ R1, =0x153 \n"
858 "LDREQ R0, =0xFF899F88 \n"
859 "STRH R4, [R5, #2] \n"
860 "BLEQ _DebugAssert \n"
861 "MOV R0, R4 \n"
862
863 "BL apex2us \n"
864 "MOV R4, R0 \n"
865 "BL sub_FF8E9590 \n"
866 "MOV R0, R4 \n"
867 "BL sub_FF8F1D98 \n"
868 "TST R0, #1 \n"
869 "LDMEQFD SP!, {R4-R6,PC} \n"
870 "LDMFD SP!, {R4-R6,LR} \n"
871 "MOV R1, #0x158 \n"
872 "LDR R0, =0xFF899F88 \n"
873 "B _DebugAssert \n"
874 );
875 }