This source file includes following definitions.
- capt_seq_task
- sub_FF96E91C_my
- exp_drv_task
- sub_FF8BB1C0_my
- sub_FF8AC07C_my
1
2
3
4 #include "lolevel.h"
5 #include "platform.h"
6 #include "core.h"
7
8 #define USE_STUBS_NRFLAG 1
9 #define NR_AUTO (0)
10 #define PAUSE_FOR_FILE_COUNTER 100
11
12 #include "../../../generic/capt_seq.c"
13
14
15
16 void __attribute__((naked,noinline)) capt_seq_task() {
17 asm volatile (
18 " STMFD SP!, {R3-R9,LR} \n"
19 " LDR R5, =0x3A27C \n"
20 " LDR R7, =0x2B90 \n"
21 " MOV R6, #0 \n"
22
23 "loc_FF87AA9C:\n"
24 " LDR R0, [R7, #4] \n"
25 " MOV R2, #0 \n"
26 " MOV R1, SP \n"
27 " BL sub_FF839B84 /*_ReceiveMessageQueue*/ \n"
28 " TST R0, #1 \n"
29 " BEQ loc_FF87AAC8 \n"
30 " LDR R1, =0x476 \n"
31 " LDR R0, =0xFF87A62C /*'SsShootTask.c'*/ \n"
32 " BL _DebugAssert \n"
33 " BL _ExitTask \n"
34 " LDMFD SP!, {R3-R9,PC} \n"
35
36 "loc_FF87AAC8:\n"
37 " LDR R0, [SP] \n"
38 " LDR R1, [R0] \n"
39 " CMP R1, #0x20 \n"
40 " ADDCC PC, PC, R1, LSL#2 \n"
41 " B loc_FF87ACE8 \n"
42 " B loc_FF87AB5C \n"
43 " B loc_FF87AB74 \n"
44 " B loc_FF87ABA0 \n"
45 " B loc_FF87ABB4 \n"
46 " B loc_FF87ABAC \n"
47 " B loc_FF87ABC0 \n"
48 " B loc_FF87ABC8 \n"
49 " B loc_FF87ABD0 \n"
50 " B loc_FF87ABEC \n"
51 " B loc_FF87AC14 \n"
52 " B loc_FF87ABF8 \n"
53 " B loc_FF87AC04 \n"
54 " B loc_FF87AC0C \n"
55 " B loc_FF87AC1C \n"
56 " B loc_FF87AC24 \n"
57 " B loc_FF87AC2C \n"
58 " B loc_FF87AC34 \n"
59 " B loc_FF87AC3C \n"
60 " B loc_FF87AC48 \n"
61 " B loc_FF87AC50 \n"
62 " B loc_FF87AC58 \n"
63 " B loc_FF87AC60 \n"
64 " B loc_FF87AC68 \n"
65 " B loc_FF87AC74 \n"
66 " B loc_FF87AC7C \n"
67 " B loc_FF87AC84 \n"
68 " B loc_FF87AC8C \n"
69 " B loc_FF87AC94 \n"
70 " B loc_FF87AC9C \n"
71 " B loc_FF87ACA4 \n"
72 " B loc_FF87ACB0 \n"
73 " B loc_FF87ACF4 \n"
74
75 "loc_FF87AB5C:\n"
76 " BL shooting_expo_iso_override\n"
77 " BL sub_FF87B26C \n"
78
79 " BL captseq_hack_override_active\n"
80 " STR R0,[SP,#-4]!\n"
81 " BL shooting_expo_param_override\n"
82 " BL sub_FF8786B8 \n"
83 " LDR R0,[SP],#4\n"
84 " CMP R0, #1\n"
85 " MOVEQ R0, #0\n"
86 " STREQ R0, [R5,#0x28]\n"
87 " LDRNE R0, [R5,#0x28]\n"
88 " CMPNE R0, #0\n"
89
90
91 " BLNE sub_FF96E9FC \n"
92 " B loc_FF87ACF4 \n"
93
94 "loc_FF87AB74:\n"
95 " LDR R8, [R0, #0xC] \n"
96 " MOV R0, R8 \n"
97 " BL sub_FF96E91C_my \n"
98 " BL capt_seq_hook_raw_here \n"
99 " MOV R4, R0 \n"
100 " MOV R2, R8 \n"
101 " MOV R1, #1 \n"
102 " BL sub_FF878CAC \n"
103 " TST R4, #1 \n"
104 " MOVEQ R0, R8 \n"
105 " BLEQ sub_FF96E3BC \n"
106 " B loc_FF87ACF4 \n"
107
108 "loc_FF87ABA0:\n"
109 " MOV R0, #1 \n"
110 " BL sub_FF87B50C \n"
111 " B loc_FF87ACF4 \n"
112
113 "loc_FF87ABAC:\n"
114 " BL sub_FF87AF00 \n"
115 " B loc_FF87ABB8 \n"
116
117 "loc_FF87ABB4:\n"
118 " BL sub_FF87B24C \n"
119
120 "loc_FF87ABB8:\n"
121 " STR R6, [R5, #0x28] \n"
122 " B loc_FF87ACF4 \n"
123
124 "loc_FF87ABC0:\n"
125 " BL sub_FF87B254 \n"
126 " B loc_FF87ACF4 \n"
127
128 "loc_FF87ABC8:\n"
129 " BL sub_FF87B420 \n"
130 " B loc_FF87ABF0 \n"
131
132 "loc_FF87ABD0:\n"
133 " LDR R4, [R0, #0xC] \n"
134 " MOV R0, R4 \n"
135 " BL sub_FF96EA50 \n"
136 " MOV R2, R4 \n"
137 " MOV R1, #9 \n"
138 " BL sub_FF878CAC \n"
139 " B loc_FF87ACF4 \n"
140
141 "loc_FF87ABEC:\n"
142 " BL sub_FF87B484 \n"
143
144 "loc_FF87ABF0:\n"
145 " BL sub_FF8786B8 \n"
146 " B loc_FF87ACF4 \n"
147
148 "loc_FF87ABF8:\n"
149 " LDR R0, [R5, #0x58] \n"
150 " BL sub_FF87B950 \n"
151 " B loc_FF87ACF4 \n"
152
153 "loc_FF87AC04:\n"
154 " BL sub_FF87BCC8 \n"
155 " B loc_FF87ACF4 \n"
156
157 "loc_FF87AC0C:\n"
158 " BL sub_FF87BD2C \n"
159 " B loc_FF87ACF4 \n"
160
161 "loc_FF87AC14:\n"
162 " BL sub_FF87B24C \n"
163 " B loc_FF87ACF4 \n"
164
165 "loc_FF87AC1C:\n"
166 " BL sub_FF96D7C4 \n"
167 " B loc_FF87ACF4 \n"
168
169 "loc_FF87AC24:\n"
170 " BL sub_FF96D9D0 \n"
171 " B loc_FF87ACF4 \n"
172
173 "loc_FF87AC2C:\n"
174 " BL sub_FF96DA74 \n"
175 " B loc_FF87ACF4 \n"
176
177 "loc_FF87AC34:\n"
178 " BL sub_FF96DB44 \n"
179 " B loc_FF87ACF4 \n"
180
181 "loc_FF87AC3C:\n"
182 " MOV R0, #0 \n"
183 " BL sub_FF96DD4C \n"
184 " B loc_FF87ACF4 \n"
185
186 "loc_FF87AC48:\n"
187 " BL sub_FF96DEC4 \n"
188 " B loc_FF87ACF4 \n"
189
190 "loc_FF87AC50:\n"
191 " BL sub_FF96DF68 \n"
192 " B loc_FF87ACF4 \n"
193
194 "loc_FF87AC58:\n"
195 " BL sub_FF96E048 \n"
196 " B loc_FF87ACF4 \n"
197
198 "loc_FF87AC60:\n"
199 " BL sub_FF87B678 \n"
200 " B loc_FF87ACF4 \n"
201
202 "loc_FF87AC68:\n"
203 " BL sub_FF87B6A4 \n"
204 " BL sub_FF837A54 \n"
205 " B loc_FF87ACF4 \n"
206
207 "loc_FF87AC74:\n"
208 " BL sub_FF96DC08 \n"
209 " B loc_FF87ACF4 \n"
210
211 "loc_FF87AC7C:\n"
212 " BL sub_FF96DC48 \n"
213 " B loc_FF87ACF4 \n"
214
215 "loc_FF87AC84:\n"
216 " BL sub_FF87E034 \n"
217 " B loc_FF87ACF4 \n"
218
219 "loc_FF87AC8C:\n"
220 " BL sub_FF87E0A4 \n"
221 " B loc_FF87ACF4 \n"
222
223 "loc_FF87AC94:\n"
224 " BL sub_FF96E180 \n"
225 " B loc_FF87ACF4 \n"
226
227 "loc_FF87AC9C:\n"
228 " BL sub_FF96E1E4 \n"
229 " B loc_FF87ACF4 \n"
230
231 "loc_FF87ACA4:\n"
232 " BL sub_FF87E100 \n"
233 " BL sub_FF87E0C0 \n"
234 " B loc_FF87ACF4 \n"
235
236 "loc_FF87ACB0:\n"
237 " MOV R0, #1 \n"
238 " BL sub_FF96F1C8 \n"
239 " MOV R0, #1 \n"
240 " BL sub_FF96F2F0 \n"
241 " LDRH R0, [R5, #0x98] \n"
242 " CMP R0, #4 \n"
243 " LDRNEH R0, [R5] \n"
244 " SUBNE R1, R0, #0x4200 \n"
245 " SUBNES R1, R1, #0x2A \n"
246 " BNE loc_FF87ACF4 \n"
247 " BL sub_FF87E0A4 \n"
248 " BL sub_FF87E6A4 \n"
249 " BL sub_FF87E524 \n"
250 " B loc_FF87ACF4 \n"
251
252 "loc_FF87ACE8:\n"
253 " LDR R1, =0x5D7 \n"
254 " LDR R0, =0xFF87A62C /*'SsShootTask.c'*/ \n"
255 " BL _DebugAssert \n"
256
257 "loc_FF87ACF4:\n"
258 " LDR R0, [SP] \n"
259 " LDR R1, [R0, #4] \n"
260 " LDR R0, [R7] \n"
261 " BL sub_FF884CD0 /*_SetEventFlag*/ \n"
262 " LDR R4, [SP] \n"
263 " LDR R0, [R4, #8] \n"
264 " CMP R0, #0 \n"
265 " LDREQ R0, =0xFF87A62C /*'SsShootTask.c'*/ \n"
266 " MOVEQ R1, #0x118 \n"
267 " BLEQ _DebugAssert \n"
268 " STR R6, [R4, #8] \n"
269 " B loc_FF87AA9C \n"
270 );
271 }
272
273
274
275 void __attribute__((naked,noinline)) sub_FF96E91C_my() {
276 asm volatile (
277 " STMFD SP!, {R3-R7,LR} \n"
278 " LDR R6, =0x3A27C \n"
279 " MOV R5, R0 \n"
280 " LDR R0, [R6, #0x28] \n"
281 " MOV R4, #0 \n"
282 " CMP R0, #0 \n"
283 " BNE loc_FF96E94C \n"
284 " MOV R0, #0xC \n"
285 " BL sub_FF87FBB8 \n"
286 " TST R0, #1 \n"
287 " MOVNE R0, #1 \n"
288 " BNE loc_FF96E9F8 \n"
289
290 "loc_FF96E94C:\n"
291 " BL sub_FF87B25C \n"
292 " LDR R0, [R6, #0x28] \n"
293 " CMP R0, #0 \n"
294 " BNE loc_FF96E9E0 \n"
295 " MOV R0, R5 \n"
296 " BL sub_FF96E2D0 \n"
297 " TST R0, #1 \n"
298 " BNE loc_FF96E9F8 \n"
299 " MOV R0, R5 \n"
300 " BL sub_FF96E644 \n"
301 " BL sub_FF96EFA4 \n"
302 " MOV R4, #1 \n"
303 " MOV R0, #2 \n"
304 " BL sub_FF881378 \n"
305 " BL wait_until_remote_button_is_released\n"
306 " BL capt_seq_hook_set_nr\n"
307 " LDRH R0, [R6] \n"
308 " SUB R1, R0, #0x8200 \n"
309 " SUBS R1, R1, #0x2D \n"
310 " BNE loc_FF96E9D0 \n"
311 " MOV R2, #2 \n"
312 " MOV R1, SP \n"
313 " ADD R0, R2, #0x15C \n"
314 " STR R4, [SP] \n"
315 " BL _GetPropertyCase \n"
316 " TST R0, #1 \n"
317 " MOVNE R1, #0xBC \n"
318 " LDRNE R0, =0xFF96EAA8 /*'SsCaptureSeq.c'*/ \n"
319 " BLNE _DebugAssert \n"
320 " LDRH R0, [SP] \n"
321 " CMP R0, #1 \n"
322 " STRHI R4, [R5, #0xD4] \n"
323 " BHI loc_FF96E9F0 \n"
324 " MOV R0, #0 \n"
325 " STR R0, [R5, #0xD4] \n"
326
327 "loc_FF96E9D0:\n"
328 " MOV R0, R5 \n"
329 " BL sub_FFAB514C \n"
330 " MOV R4, R0 \n"
331 " B loc_FF96E9F4 \n"
332
333 "loc_FF96E9E0:\n"
334 " LDR R0, =0x6ADC \n"
335 " LDR R0, [R0] \n"
336 " CMP R0, #0 \n"
337 " BEQ loc_FF96E9F4 \n"
338
339 "loc_FF96E9F0:\n"
340 " MOV R4, #0x1D \n"
341
342 "loc_FF96E9F4:\n"
343 " MOV R0, R4 \n"
344
345 "loc_FF96E9F8:\n"
346 " LDMFD SP!, {R3-R7,PC} \n"
347 );
348 }
349
350
351
352 void __attribute__((naked,noinline)) exp_drv_task() {
353 asm volatile (
354 " STMFD SP!, {R4-R9,LR} \n"
355 " SUB SP, SP, #0x24 \n"
356 " LDR R6, =0x3EB0 \n"
357 " LDR R7, =0xBB8 \n"
358 " LDR R4, =0x55774 \n"
359 " MOV R0, #0 \n"
360 " ADD R5, SP, #0x14 \n"
361 " STR R0, [SP, #0x10] \n"
362
363 "loc_FF8BE368:\n"
364 " LDR R0, [R6, #0x20] \n"
365 " MOV R2, #0 \n"
366 " ADD R1, SP, #0x20 \n"
367 " BL sub_FF839B84 /*_ReceiveMessageQueue*/ \n"
368 " LDR R0, [SP, #0x10] \n"
369 " CMP R0, #1 \n"
370 " BNE loc_FF8BE3B4 \n"
371 " LDR R0, [SP, #0x20] \n"
372 " LDR R0, [R0] \n"
373 " CMP R0, #0x14 \n"
374 " CMPNE R0, #0x15 \n"
375 " CMPNE R0, #0x16 \n"
376 " CMPNE R0, #0x17 \n"
377 " BEQ loc_FF8BE514 \n"
378 " CMP R0, #0x29 \n"
379 " BEQ loc_FF8BE49C \n"
380 " ADD R1, SP, #0x10 \n"
381 " MOV R0, #0 \n"
382 " BL sub_FF8BE2F8 \n"
383
384 "loc_FF8BE3B4:\n"
385 " LDR R0, [SP, #0x20] \n"
386 " LDR R1, [R0] \n"
387 " CMP R1, #0x2F \n"
388 " BNE loc_FF8BE3E0 \n"
389 " BL sub_FF8BF7E4 \n"
390 " LDR R0, [R6, #0x1C] \n"
391 " MOV R1, #1 \n"
392 " BL sub_FF884CD0 /*_SetEventFlag*/ \n"
393 " BL _ExitTask \n"
394 " ADD SP, SP, #0x24 \n"
395 " LDMFD SP!, {R4-R9,PC} \n"
396
397 "loc_FF8BE3E0:\n"
398 " CMP R1, #0x2E \n"
399 " BNE loc_FF8BE3FC \n"
400 " LDR R2, [R0, #0x8C]! \n"
401 " LDR R1, [R0, #4] \n"
402 " MOV R0, R1 \n"
403 " BLX R2 \n"
404 " B loc_FF8BEA04 \n"
405
406 "loc_FF8BE3FC:\n"
407 " CMP R1, #0x27 \n"
408 " BNE loc_FF8BE44C \n"
409 " LDR R0, [R6, #0x1C] \n"
410 " MOV R1, #0x80 \n"
411 " BL sub_FF884D04 /*_ClearEventFlag*/ \n"
412 " LDR R0, =0xFF8B9EDC \n"
413 " MOV R1, #0x80 \n"
414 " BL sub_FF9613D0 \n"
415 " LDR R0, [R6, #0x1C] \n"
416 " MOV R2, R7 \n"
417 " MOV R1, #0x80 \n"
418 " BL sub_FF884C10 /*_WaitForAllEventFlag*/ \n"
419 " TST R0, #1 \n"
420 " LDRNE R1, =0x174E \n"
421 " BNE loc_FF8BE508 \n"
422
423 "loc_FF8BE438:\n"
424 " LDR R1, [SP, #0x20] \n"
425 " LDR R0, [R1, #0x90] \n"
426 " LDR R1, [R1, #0x8C] \n"
427 " BLX R1 \n"
428 " B loc_FF8BEA04 \n"
429
430 "loc_FF8BE44C:\n"
431 " CMP R1, #0x28 \n"
432 " BNE loc_FF8BE494 \n"
433 " ADD R1, SP, #0x10 \n"
434 " BL sub_FF8BE2F8 \n"
435 " LDR R0, [R6, #0x1C] \n"
436 " MOV R1, #0x100 \n"
437 " BL sub_FF884D04 /*_ClearEventFlag*/ \n"
438 " LDR R0, =0xFF8B9EEC \n"
439 " MOV R1, #0x100 \n"
440 " BL sub_FF961670 \n"
441 " LDR R0, [R6, #0x1C] \n"
442 " MOV R2, R7 \n"
443 " MOV R1, #0x100 \n"
444 " BL sub_FF884C10 /*_WaitForAllEventFlag*/ \n"
445 " TST R0, #1 \n"
446 " BEQ loc_FF8BE438 \n"
447 " LDR R1, =0x1758 \n"
448 " B loc_FF8BE508 \n"
449
450 "loc_FF8BE494:\n"
451 " CMP R1, #0x29 \n"
452 " BNE loc_FF8BE4AC \n"
453
454 "loc_FF8BE49C:\n"
455 " LDR R0, [SP, #0x20] \n"
456 " ADD R1, SP, #0x10 \n"
457 " BL sub_FF8BE2F8 \n"
458 " B loc_FF8BE438 \n"
459
460 "loc_FF8BE4AC:\n"
461 " CMP R1, #0x2C \n"
462 " BNE loc_FF8BE4C4 \n"
463 " BL sub_FF8AC30C \n"
464 " BL sub_FF8ACF88 \n"
465 " BL sub_FF8ACB00 \n"
466 " B loc_FF8BE438 \n"
467
468 "loc_FF8BE4C4:\n"
469 " CMP R1, #0x2D \n"
470 " BNE loc_FF8BE514 \n"
471 " LDR R0, [R6, #0x1C] \n"
472 " MOV R1, #4 \n"
473 " BL sub_FF884D04 /*_ClearEventFlag*/ \n"
474 " LDR R1, =0xFF8B9F0C \n"
475 " LDR R0, =0xFFFFF400 \n"
476 " MOV R2, #4 \n"
477 " BL sub_FF8ABD80 \n"
478 " BL sub_FF8AC010 \n"
479 " LDR R0, [R6, #0x1C] \n"
480 " MOV R2, R7 \n"
481 " MOV R1, #4 \n"
482 " BL sub_FF884B2C /*_WaitForAnyEventFlag*/ \n"
483 " TST R0, #1 \n"
484 " BEQ loc_FF8BE438 \n"
485 " MOV R1, #0x1780 \n"
486
487 "loc_FF8BE508:\n"
488 " LDR R0, =0xFF8BA600 /*'ExpDrv.c'*/ \n"
489 " BL _DebugAssert \n"
490 " B loc_FF8BE438 \n"
491
492 "loc_FF8BE514:\n"
493 " LDR R0, [SP, #0x20] \n"
494 " MOV R8, #1 \n"
495 " LDR R1, [R0] \n"
496 " CMP R1, #0x12 \n"
497 " CMPNE R1, #0x13 \n"
498 " BNE loc_FF8BE5DC \n"
499 " LDR R1, [R0, #0x7C] \n"
500 " ADD R1, R1, R1, LSL#1 \n"
501 " ADD R1, R0, R1, LSL#2 \n"
502 " SUB R1, R1, #8 \n"
503 " LDMIA R1, {R2,R3,R9} \n"
504 " STMIA R5, {R2,R3,R9} \n"
505 " BL sub_FF8BC968 \n"
506 " LDR R0, [SP, #0x20] \n"
507 " LDR R1, [R0, #0x7C] \n"
508 " LDR R3, [R0, #0x8C] \n"
509 " LDR R2, [R0, #0x90] \n"
510 " ADD R0, R0, #4 \n"
511 " BLX R3 \n"
512 " LDR R0, [SP, #0x20] \n"
513 " BL sub_FF8BFB80 \n"
514 " LDR R0, [SP, #0x20] \n"
515 " LDR R1, [R0, #0x7C] \n"
516 " LDR R2, [R0, #0x98] \n"
517 " LDR R3, [R0, #0x94] \n"
518 " B loc_FF8BE8F0 \n"
519
520 "loc_FF8BE5DC:\n"
521 " CMP R1, #0x14 \n"
522 " CMPNE R1, #0x15 \n"
523 " CMPNE R1, #0x16 \n"
524 " CMPNE R1, #0x17 \n"
525 " BNE loc_FF8BE694 \n"
526 " ADD R3, SP, #0x10 \n"
527 " ADD R2, SP, #4 \n"
528 " ADD R1, SP, #0x14 \n"
529 " BL sub_FF8BCBD0 \n"
530 " CMP R0, #1 \n"
531 " MOV R9, R0 \n"
532 " CMPNE R9, #5 \n"
533 " BNE loc_FF8BE630 \n"
534 " LDR R0, [SP, #0x20] \n"
535 " MOV R2, R9 \n"
536 " LDR R1, [R0, #0x7C]! \n"
537 " LDR R12, [R0, #0x10]! \n"
538 " LDR R3, [R0, #4] \n"
539 " ADD R0, SP, #4 \n"
540 " BLX R12 \n"
541 " B loc_FF8BE668 \n"
542
543 "loc_FF8BE630:\n"
544 " LDR R0, [SP, #0x20] \n"
545 " CMP R9, #2 \n"
546 " LDR R3, [R0, #0x90] \n"
547 " CMPNE R9, #6 \n"
548 " BNE loc_FF8BE67C \n"
549 " LDR R12, [R0, #0x8C] \n"
550 " MOV R2, R9 \n"
551 " MOV R1, #1 \n"
552 " ADD R0, SP, #4 \n"
553 " BLX R12 \n"
554 " LDR R0, [SP, #0x20] \n"
555 " ADD R2, SP, #4 \n"
556 " ADD R1, SP, #0x14 \n"
557 " BL sub_FF8BE044 \n"
558
559 "loc_FF8BE668:\n"
560 " LDR R0, [SP, #0x20] \n"
561 " LDR R2, [SP, #0x10] \n"
562 " MOV R1, R9 \n"
563 " BL sub_FF8BE298 \n"
564 " B loc_FF8BE8F8 \n"
565
566 "loc_FF8BE67C:\n"
567 " LDR R1, [R0, #0x7C] \n"
568 " LDR R12, [R0, #0x8C] \n"
569 " MOV R2, R9 \n"
570 " ADD R0, R0, #4 \n"
571 " BLX R12 \n"
572 " B loc_FF8BE8F8 \n"
573
574 "loc_FF8BE694:\n"
575 " CMP R1, #0x23 \n"
576 " CMPNE R1, #0x24 \n"
577 " BNE loc_FF8BE6E0 \n"
578 " LDR R1, [R0, #0x7C] \n"
579 " ADD R1, R1, R1, LSL#1 \n"
580 " ADD R1, R0, R1, LSL#2 \n"
581 " SUB R1, R1, #8 \n"
582 " LDMIA R1, {R2,R3,R9} \n"
583 " STMIA R5, {R2,R3,R9} \n"
584 " BL sub_FF8BB9E4 \n"
585 " LDR R0, [SP, #0x20] \n"
586 " LDR R1, [R0, #0x7C] \n"
587 " LDR R3, [R0, #0x8C] \n"
588 " LDR R2, [R0, #0x90] \n"
589 " ADD R0, R0, #4 \n"
590 " BLX R3 \n"
591 " LDR R0, [SP, #0x20] \n"
592 " BL sub_FF8BBE20 \n"
593 " B loc_FF8BE8F8 \n"
594
595 "loc_FF8BE6E0:\n"
596 " ADD R1, R0, #4 \n"
597 " LDMIA R1, {R2,R3,R9} \n"
598 " STMIA R5, {R2,R3,R9} \n"
599 " LDR R1, [R0] \n"
600 " CMP R1, #0x27 \n"
601 " ADDCC PC, PC, R1, LSL#2 \n"
602 " B loc_FF8BE8E0 \n"
603 " B loc_FF8BE798 \n"
604 " B loc_FF8BE798 \n"
605 " B loc_FF8BE7A0 \n"
606 " B loc_FF8BE7A8 \n"
607 " B loc_FF8BE7A8 \n"
608 " B loc_FF8BE7A8 \n"
609 " B loc_FF8BE798 \n"
610 " B loc_FF8BE7A0 \n"
611 " B loc_FF8BE7A8 \n"
612 " B loc_FF8BE7A8 \n"
613 " B loc_FF8BE7C0 \n"
614 " B loc_FF8BE7C0 \n"
615 " B loc_FF8BE8CC \n"
616 " B loc_FF8BE8D4 \n"
617 " B loc_FF8BE8D4 \n"
618 " B loc_FF8BE8D4 \n"
619 " B loc_FF8BE8D4 \n"
620 " B loc_FF8BE8DC \n"
621 " B loc_FF8BE8E0 \n"
622 " B loc_FF8BE8E0 \n"
623 " B loc_FF8BE8E0 \n"
624 " B loc_FF8BE8E0 \n"
625 " B loc_FF8BE8E0 \n"
626 " B loc_FF8BE8E0 \n"
627 " B loc_FF8BE7B0 \n"
628 " B loc_FF8BE7B8 \n"
629 " B loc_FF8BE7B8 \n"
630 " B loc_FF8BE7CC \n"
631 " B loc_FF8BE7CC \n"
632 " B loc_FF8BE7D4 \n"
633 " B loc_FF8BE80C \n"
634 " B loc_FF8BE844 \n"
635 " B loc_FF8BE87C \n"
636 " B loc_FF8BE8B4 \n"
637 " B loc_FF8BE8B4 \n"
638 " B loc_FF8BE8E0 \n"
639 " B loc_FF8BE8E0 \n"
640 " B loc_FF8BE8BC \n"
641 " B loc_FF8BE8C4 \n"
642
643 "loc_FF8BE798:\n"
644 " BL sub_FF8BA484 \n"
645 " B loc_FF8BE8E0 \n"
646
647 "loc_FF8BE7A0:\n"
648 " BL sub_FF8BA728 \n"
649 " B loc_FF8BE8E0 \n"
650
651 "loc_FF8BE7A8:\n"
652 " BL sub_FF8BA950 \n"
653 " B loc_FF8BE8E0 \n"
654
655 "loc_FF8BE7B0:\n"
656 " BL sub_FF8BAC28 \n"
657 " B loc_FF8BE8E0 \n"
658
659 "loc_FF8BE7B8:\n"
660 " BL sub_FF8BAE40 \n"
661 " B loc_FF8BE8E0 \n"
662
663 "loc_FF8BE7C0:\n"
664 " BL sub_FF8BB1C0_my \n"
665 " MOV R8, #0 \n"
666 " B loc_FF8BE8E0 \n"
667
668 "loc_FF8BE7CC:\n"
669 " BL sub_FF8BB308 \n"
670 " B loc_FF8BE8E0 \n"
671
672 "loc_FF8BE7D4:\n"
673 " LDRH R1, [R0, #4] \n"
674 " STRH R1, [SP, #0x14] \n"
675 " LDRH R1, [R4, #2] \n"
676 " STRH R1, [SP, #0x16] \n"
677 " LDRH R1, [R4, #4] \n"
678 " STRH R1, [SP, #0x18] \n"
679 " LDRH R1, [R4, #6] \n"
680 " STRH R1, [SP, #0x1A] \n"
681 " LDRH R1, [R0, #0xC] \n"
682 " STRH R1, [SP, #0x1C] \n"
683 " LDRH R1, [R4, #0xA] \n"
684 " STRH R1, [SP, #0x1E] \n"
685 " BL sub_FF8BF878 \n"
686 " B loc_FF8BE8E0 \n"
687
688 "loc_FF8BE80C:\n"
689 " LDRH R1, [R0, #4] \n"
690 " STRH R1, [SP, #0x14] \n"
691 " LDRH R1, [R4, #2] \n"
692 " STRH R1, [SP, #0x16] \n"
693 " LDRH R1, [R4, #4] \n"
694 " STRH R1, [SP, #0x18] \n"
695 " LDRH R1, [R4, #6] \n"
696 " STRH R1, [SP, #0x1A] \n"
697 " LDRH R1, [R4, #8] \n"
698 " STRH R1, [SP, #0x1C] \n"
699 " LDRH R1, [R4, #0xA] \n"
700 " STRH R1, [SP, #0x1E] \n"
701 " BL sub_FF8BF980 \n"
702 " B loc_FF8BE8E0 \n"
703
704 "loc_FF8BE844:\n"
705 " LDRH R1, [R4] \n"
706 " STRH R1, [SP, #0x14] \n"
707 " LDRH R1, [R0, #6] \n"
708 " STRH R1, [SP, #0x16] \n"
709 " LDRH R1, [R4, #4] \n"
710 " STRH R1, [SP, #0x18] \n"
711 " LDRH R1, [R4, #6] \n"
712 " STRH R1, [SP, #0x1A] \n"
713 " LDRH R1, [R4, #8] \n"
714 " STRH R1, [SP, #0x1C] \n"
715 " LDRH R1, [R4, #0xA] \n"
716 " STRH R1, [SP, #0x1E] \n"
717 " BL sub_FF8BFA34 \n"
718 " B loc_FF8BE8E0 \n"
719
720 "loc_FF8BE87C:\n"
721 " LDRH R1, [R4] \n"
722 " STRH R1, [SP, #0x14] \n"
723 " LDRH R1, [R4, #2] \n"
724 " STRH R1, [SP, #0x16] \n"
725 " LDRH R1, [R4, #4] \n"
726 " STRH R1, [SP, #0x18] \n"
727 " LDRH R1, [R4, #6] \n"
728 " STRH R1, [SP, #0x1A] \n"
729 " LDRH R1, [R0, #0xC] \n"
730 " STRH R1, [SP, #0x1C] \n"
731 " LDRH R1, [R4, #0xA] \n"
732 " STRH R1, [SP, #0x1E] \n"
733 " BL sub_FF8BFADC \n"
734 " B loc_FF8BE8E0 \n"
735
736 "loc_FF8BE8B4:\n"
737 " BL sub_FF8BB7D8 \n"
738 " B loc_FF8BE8E0 \n"
739
740 "loc_FF8BE8BC:\n"
741 " BL sub_FF8BBF24 \n"
742 " B loc_FF8BE8E0 \n"
743
744 "loc_FF8BE8C4:\n"
745 " BL sub_FF8BC1CC \n"
746 " B loc_FF8BE8E0 \n"
747
748 "loc_FF8BE8CC:\n"
749 " BL sub_FF8BC3AC \n"
750 " B loc_FF8BE8E0 \n"
751
752 "loc_FF8BE8D4:\n"
753 " BL sub_FF8BC5F0 \n"
754 " B loc_FF8BE8E0 \n"
755
756 "loc_FF8BE8DC:\n"
757 " BL sub_FF8BC760 \n"
758
759 "loc_FF8BE8E0:\n"
760 " LDR R0, [SP, #0x20] \n"
761 " LDR R1, [R0, #0x7C] \n"
762 " LDR R2, [R0, #0x90] \n"
763 " LDR R3, [R0, #0x8C] \n"
764
765 "loc_FF8BE8F0:\n"
766 " ADD R0, R0, #4 \n"
767 " BLX R3 \n"
768
769 "loc_FF8BE8F8:\n"
770 " LDR R1, [SP, #0x20] \n"
771 " LDR R0, [R1] \n"
772 " CMP R0, #0x10 \n"
773 " BEQ loc_FF8BE930 \n"
774 " BGT loc_FF8BE920 \n"
775 " CMP R0, #1 \n"
776 " CMPNE R0, #4 \n"
777 " CMPNE R0, #0xE \n"
778 " BNE loc_FF8BE940 \n"
779 " B loc_FF8BE930 \n"
780
781 "loc_FF8BE920:\n"
782 " CMP R0, #0x13 \n"
783 " CMPNE R0, #0x17 \n"
784 " CMPNE R0, #0x1A \n"
785 " BNE loc_FF8BE940 \n"
786
787 "loc_FF8BE930:\n"
788 " LDRH R0, [R4] \n"
789 " STRH R0, [SP, #0x14] \n"
790 " LDRH R0, [R4, #8] \n"
791 " STRH R0, [SP, #0x1C] \n"
792
793 "loc_FF8BE940:\n"
794 " CMP R8, #1 \n"
795 " BNE loc_FF8BE98C \n"
796 " LDR R0, [R1, #0x7C] \n"
797 " MOV R2, #0xC \n"
798 " ADD R0, R0, R0, LSL#1 \n"
799 " ADD R0, R1, R0, LSL#2 \n"
800 " SUB R8, R0, #8 \n"
801 " LDR R0, =0x55774 \n"
802 " ADD R1, SP, #0x14 \n"
803 " BL sub_FFB580BC \n"
804 " LDR R0, =0x55780 \n"
805 " MOV R2, #0xC \n"
806 " ADD R1, SP, #0x14 \n"
807 " BL sub_FFB580BC \n"
808 " LDR R0, =0x5578C \n"
809 " MOV R2, #0xC \n"
810 " MOV R1, R8 \n"
811 " BL sub_FFB580BC \n"
812 " B loc_FF8BEA04 \n"
813
814 "loc_FF8BE98C:\n"
815 " LDR R0, [R1] \n"
816 " MOV R3, #1 \n"
817 " CMP R0, #0xB \n"
818 " BNE loc_FF8BE9D0 \n"
819 " MOV R2, #0 \n"
820 " STRD R2, [SP] \n"
821 " MOV R2, R3 \n"
822 " MOV R1, R3 \n"
823 " MOV R0, #0 \n"
824 " BL sub_FF8BA264 \n"
825 " MOV R3, #1 \n"
826 " MOV R2, #0 \n"
827 " STRD R2, [SP] \n"
828 " MOV R2, R3 \n"
829 " MOV R1, R3 \n"
830 " MOV R0, #0 \n"
831 " B loc_FF8BEA00 \n"
832
833 "loc_FF8BE9D0:\n"
834 " MOV R2, #1 \n"
835 " STRD R2, [SP] \n"
836 " MOV R3, R2 \n"
837 " MOV R1, R2 \n"
838 " MOV R0, R2 \n"
839 " BL sub_FF8BA264 \n"
840 " MOV R3, #1 \n"
841 " MOV R2, R3 \n"
842 " MOV R1, R3 \n"
843 " MOV R0, R3 \n"
844 " STR R3, [SP] \n"
845 " STR R3, [SP, #4] \n"
846
847 "loc_FF8BEA00:\n"
848 " BL sub_FF8BA3D0 \n"
849
850 "loc_FF8BEA04:\n"
851 " LDR R0, [SP, #0x20] \n"
852 " BL sub_FF8BF7E4 \n"
853 " B loc_FF8BE368 \n"
854 );
855 }
856
857
858
859 void __attribute__((naked,noinline)) sub_FF8BB1C0_my() {
860 asm volatile (
861 " STMFD SP!, {R4-R8,LR} \n"
862 " LDR R7, =0x3EB0 \n"
863 " MOV R4, R0 \n"
864 " LDR R0, [R7, #0x1C] \n"
865 " MOV R1, #0x3E \n"
866 " BL sub_FF884D04 /*_ClearEventFlag*/ \n"
867 " MOV R2, #0 \n"
868 " LDRSH R0, [R4, #4] \n"
869 " MOV R1, R2 \n"
870 " BL sub_FF8B9F6C \n"
871 " MOV R5, R0 \n"
872 " LDRSH R0, [R4, #6] \n"
873 " BL sub_FF8BA0BC \n"
874 " LDRSH R0, [R4, #8] \n"
875 " BL sub_FF8BA114 \n"
876 " LDRSH R0, [R4, #0xA] \n"
877 " BL sub_FF8BA16C \n"
878 " LDRSH R0, [R4, #0xC] \n"
879 " MOV R1, #0 \n"
880 " BL sub_FF8BA1C4 \n"
881 " MOV R6, R0 \n"
882 " LDRSH R0, [R4, #0xE] \n"
883 " BL sub_FF8BF814 \n"
884 " LDR R0, [R4] \n"
885 " LDR R8, =0x5578C \n"
886 " CMP R0, #0xB \n"
887 " MOVEQ R5, #0 \n"
888 " MOVEQ R6, R5 \n"
889 " BEQ loc_FF8BB25C \n"
890 " CMP R5, #1 \n"
891 " BNE loc_FF8BB25C \n"
892 " LDRSH R0, [R4, #4] \n"
893 " LDR R1, =0xFF8B9ECC \n"
894 " MOV R2, #2 \n"
895 " BL sub_FF961524 \n"
896 " STRH R0, [R4, #4] \n"
897 " MOV R0, #0 \n"
898 " STR R0, [R7, #0x28] \n"
899 " B loc_FF8BB264 \n"
900
901 "loc_FF8BB25C:\n"
902 " LDRH R0, [R8] \n"
903 " STRH R0, [R4, #4] \n"
904
905 "loc_FF8BB264:\n"
906 " CMP R6, #1 \n"
907 " LDRNEH R0, [R8, #8] \n"
908 " BNE loc_FF8BB280 \n"
909 " LDRSH R0, [R4, #0xC] \n"
910 " LDR R1, =0xFF8B9F50 \n"
911 " MOV R2, #0x20 \n"
912 " BL sub_FF8BF834 \n"
913
914 "loc_FF8BB280:\n"
915 " STRH R0, [R4, #0xC] \n"
916 " LDRSH R0, [R4, #6] \n"
917 " BL sub_FF8AC07C_my \n"
918 " LDR PC, =0xFF8BB28C \n"
919 );
920 }
921
922
923
924 void __attribute__((naked,noinline)) sub_FF8AC07C_my() {
925 asm volatile (
926 " STMFD SP!, {R4-R6,LR} \n"
927 " LDR R5, =0x3B74 \n"
928 " MOV R4, R0 \n"
929 " LDR R0, [R5, #4] \n"
930 " CMP R0, #1 \n"
931 " LDRNE R1, =0x146 \n"
932 " LDRNE R0, =0xFF8ABEB4 /*'Shutter.c'*/ \n"
933 " BLNE _DebugAssert \n"
934 " CMN R4, #0xC00 \n"
935 " LDREQSH R4, [R5, #2] \n"
936 " CMN R4, #0xC00 \n"
937 " MOVEQ R1, #0x14C \n"
938 " LDREQ R0, =0xFF8ABEB4 /*'Shutter.c'*/ \n"
939 " STRH R4, [R5, #2] \n"
940 " BLEQ _DebugAssert \n"
941 " MOV R0, R4 \n"
942 " BL apex2us \n"
943 " MOV R4, R0 \n"
944
945 " MOV R0, R4 \n"
946 " BL sub_FF900BC8 \n"
947 " TST R0, #1 \n"
948 " LDMEQFD SP!, {R4-R6,PC} \n"
949 " LDMFD SP!, {R4-R6,LR} \n"
950 " LDR R1, =0x151 \n"
951 " LDR R0, =0xFF8ABEB4 /*'Shutter.c'*/ \n"
952 " B _DebugAssert \n"
953 );
954 }