This source file includes following definitions.
- capt_seq_task
- sub_FF96EF54_my
- exp_drv_task
- sub_FF8BB264_my
- sub_FF8AC12C_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, =0x3A29C \n"
20 " LDR R7, =0x2B90 \n"
21 " MOV R6, #0 \n"
22
23 "loc_FF87AB50:\n"
24 " LDR R0, [R7, #4] \n"
25 " MOV R2, #0 \n"
26 " MOV R1, SP \n"
27 " BL sub_FF839BD8 /*_ReceiveMessageQueue*/ \n"
28 " TST R0, #1 \n"
29 " BEQ loc_FF87AB7C \n"
30 " LDR R1, =0x476 \n"
31 " LDR R0, =0xFF87A6E0 /*'SsShootTask.c'*/ \n"
32 " BL _DebugAssert \n"
33 " BL _ExitTask \n"
34 " LDMFD SP!, {R3-R9,PC} \n"
35
36 "loc_FF87AB7C:\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_FF87AD9C \n"
42 " B loc_FF87AC10 \n"
43 " B loc_FF87AC28 \n"
44 " B loc_FF87AC54 \n"
45 " B loc_FF87AC68 \n"
46 " B loc_FF87AC60 \n"
47 " B loc_FF87AC74 \n"
48 " B loc_FF87AC7C \n"
49 " B loc_FF87AC84 \n"
50 " B loc_FF87ACA0 \n"
51 " B loc_FF87ACC8 \n"
52 " B loc_FF87ACAC \n"
53 " B loc_FF87ACB8 \n"
54 " B loc_FF87ACC0 \n"
55 " B loc_FF87ACD0 \n"
56 " B loc_FF87ACD8 \n"
57 " B loc_FF87ACE0 \n"
58 " B loc_FF87ACE8 \n"
59 " B loc_FF87ACF0 \n"
60 " B loc_FF87ACFC \n"
61 " B loc_FF87AD04 \n"
62 " B loc_FF87AD0C \n"
63 " B loc_FF87AD14 \n"
64 " B loc_FF87AD1C \n"
65 " B loc_FF87AD28 \n"
66 " B loc_FF87AD30 \n"
67 " B loc_FF87AD38 \n"
68 " B loc_FF87AD40 \n"
69 " B loc_FF87AD48 \n"
70 " B loc_FF87AD50 \n"
71 " B loc_FF87AD58 \n"
72 " B loc_FF87AD64 \n"
73 " B loc_FF87ADA8 \n"
74
75 "loc_FF87AC10:\n"
76 " BL shooting_expo_iso_override\n"
77 " BL sub_FF87B320 \n"
78 " BL shooting_expo_param_override\n"
79 " BL sub_FF87876C \n"
80 " LDR R0, [R5, #0x28] \n"
81 " CMP R0, #0 \n"
82 " BLNE sub_FF96F034 \n"
83 " B loc_FF87ADA8 \n"
84
85 "loc_FF87AC28:\n"
86 " LDR R8, [R0, #0xC] \n"
87 " MOV R0, R8 \n"
88 " BL sub_FF96EF54_my \n"
89 " BL capt_seq_hook_raw_here \n"
90 " MOV R4, R0 \n"
91 " MOV R2, R8 \n"
92 " MOV R1, #1 \n"
93 " BL sub_FF878D60 \n"
94 " TST R4, #1 \n"
95 " MOVEQ R0, R8 \n"
96 " BLEQ sub_FF96E9F4 \n"
97 " B loc_FF87ADA8 \n"
98
99 "loc_FF87AC54:\n"
100 " MOV R0, #1 \n"
101 " BL sub_FF87B5C0 \n"
102 " B loc_FF87ADA8 \n"
103
104 "loc_FF87AC60:\n"
105 " BL sub_FF87AFB4 \n"
106 " B loc_FF87AC6C \n"
107
108 "loc_FF87AC68:\n"
109 " BL sub_FF87B300 \n"
110
111 "loc_FF87AC6C:\n"
112 " STR R6, [R5, #0x28] \n"
113 " B loc_FF87ADA8 \n"
114
115 "loc_FF87AC74:\n"
116 " BL sub_FF87B308 \n"
117 " B loc_FF87ADA8 \n"
118
119 "loc_FF87AC7C:\n"
120 " BL sub_FF87B4D4 \n"
121 " B loc_FF87ACA4 \n"
122
123 "loc_FF87AC84:\n"
124 " LDR R4, [R0, #0xC] \n"
125 " MOV R0, R4 \n"
126 " BL sub_FF96F088 \n"
127 " MOV R2, R4 \n"
128 " MOV R1, #9 \n"
129 " BL sub_FF878D60 \n"
130 " B loc_FF87ADA8 \n"
131
132 "loc_FF87ACA0:\n"
133 " BL sub_FF87B538 \n"
134
135 "loc_FF87ACA4:\n"
136 " BL sub_FF87876C \n"
137 " B loc_FF87ADA8 \n"
138
139 "loc_FF87ACAC:\n"
140 " LDR R0, [R5, #0x58] \n"
141 " BL sub_FF87BA04 \n"
142 " B loc_FF87ADA8 \n"
143
144 "loc_FF87ACB8:\n"
145 " BL sub_FF87BD7C \n"
146 " B loc_FF87ADA8 \n"
147
148 "loc_FF87ACC0:\n"
149 " BL sub_FF87BDE0 \n"
150 " B loc_FF87ADA8 \n"
151
152 "loc_FF87ACC8:\n"
153 " BL sub_FF87B300 \n"
154 " B loc_FF87ADA8 \n"
155
156 "loc_FF87ACD0:\n"
157 " BL sub_FF96DDFC \n"
158 " B loc_FF87ADA8 \n"
159
160 "loc_FF87ACD8:\n"
161 " BL sub_FF96E008 \n"
162 " B loc_FF87ADA8 \n"
163
164 "loc_FF87ACE0:\n"
165 " BL sub_FF96E0AC \n"
166 " B loc_FF87ADA8 \n"
167
168 "loc_FF87ACE8:\n"
169 " BL sub_FF96E17C \n"
170 " B loc_FF87ADA8 \n"
171
172 "loc_FF87ACF0:\n"
173 " MOV R0, #0 \n"
174 " BL sub_FF96E384 \n"
175 " B loc_FF87ADA8 \n"
176
177 "loc_FF87ACFC:\n"
178 " BL sub_FF96E4FC \n"
179 " B loc_FF87ADA8 \n"
180
181 "loc_FF87AD04:\n"
182 " BL sub_FF96E5A0 \n"
183 " B loc_FF87ADA8 \n"
184
185 "loc_FF87AD0C:\n"
186 " BL sub_FF96E680 \n"
187 " B loc_FF87ADA8 \n"
188
189 "loc_FF87AD14:\n"
190 " BL sub_FF87B72C \n"
191 " B loc_FF87ADA8 \n"
192
193 "loc_FF87AD1C:\n"
194 " BL sub_FF87B758 \n"
195 " BL sub_FF837AA8 \n"
196 " B loc_FF87ADA8 \n"
197
198 "loc_FF87AD28:\n"
199 " BL sub_FF96E240 \n"
200 " B loc_FF87ADA8 \n"
201
202 "loc_FF87AD30:\n"
203 " BL sub_FF96E280 \n"
204 " B loc_FF87ADA8 \n"
205
206 "loc_FF87AD38:\n"
207 " BL sub_FF87E0E8 \n"
208 " B loc_FF87ADA8 \n"
209
210 "loc_FF87AD40:\n"
211 " BL sub_FF87E158 \n"
212 " B loc_FF87ADA8 \n"
213
214 "loc_FF87AD48:\n"
215 " BL sub_FF96E7B8 \n"
216 " B loc_FF87ADA8 \n"
217
218 "loc_FF87AD50:\n"
219 " BL sub_FF96E81C \n"
220 " B loc_FF87ADA8 \n"
221
222 "loc_FF87AD58:\n"
223 " BL sub_FF87E1B4 \n"
224 " BL sub_FF87E174 \n"
225 " B loc_FF87ADA8 \n"
226
227 "loc_FF87AD64:\n"
228 " MOV R0, #1 \n"
229 " BL sub_FF96F800 \n"
230 " MOV R0, #1 \n"
231 " BL sub_FF96F928 \n"
232 " LDRH R0, [R5, #0x98] \n"
233 " CMP R0, #4 \n"
234 " LDRNEH R0, [R5] \n"
235 " SUBNE R1, R0, #0x4200 \n"
236 " SUBNES R1, R1, #0x2A \n"
237 " BNE loc_FF87ADA8 \n"
238 " BL sub_FF87E158 \n"
239 " BL sub_FF87E758 \n"
240 " BL sub_FF87E5D8 \n"
241 " B loc_FF87ADA8 \n"
242
243 "loc_FF87AD9C:\n"
244 " LDR R1, =0x5D7 \n"
245 " LDR R0, =0xFF87A6E0 /*'SsShootTask.c'*/ \n"
246 " BL _DebugAssert \n"
247
248 "loc_FF87ADA8:\n"
249 " LDR R0, [SP] \n"
250 " LDR R1, [R0, #4] \n"
251 " LDR R0, [R7] \n"
252 " BL sub_FF884D84 /*_SetEventFlag*/ \n"
253 " LDR R4, [SP] \n"
254 " LDR R0, [R4, #8] \n"
255 " CMP R0, #0 \n"
256 " LDREQ R0, =0xFF87A6E0 /*'SsShootTask.c'*/ \n"
257 " MOVEQ R1, #0x118 \n"
258 " BLEQ _DebugAssert \n"
259 " STR R6, [R4, #8] \n"
260 " B loc_FF87AB50 \n"
261 );
262 }
263
264
265
266 void __attribute__((naked,noinline)) sub_FF96EF54_my() {
267 asm volatile (
268 " STMFD SP!, {R3-R7,LR} \n"
269 " LDR R6, =0x3A29C \n"
270 " MOV R5, R0 \n"
271 " LDR R0, [R6, #0x28] \n"
272 " MOV R4, #0 \n"
273 " CMP R0, #0 \n"
274 " BNE loc_FF96EF84 \n"
275 " MOV R0, #0xC \n"
276 " BL sub_FF87FC6C \n"
277 " TST R0, #1 \n"
278 " MOVNE R0, #1 \n"
279 " BNE loc_FF96F030 \n"
280
281 "loc_FF96EF84:\n"
282 " BL sub_FF87B310 \n"
283 " LDR R0, [R6, #0x28] \n"
284 " CMP R0, #0 \n"
285 " BNE loc_FF96F018 \n"
286 " MOV R0, R5 \n"
287 " BL sub_FF96E908 \n"
288 " TST R0, #1 \n"
289 " BNE loc_FF96F030 \n"
290 " MOV R0, R5 \n"
291 " BL sub_FF96EC7C \n"
292 " BL sub_FF96F5DC \n"
293 " MOV R4, #1 \n"
294 " MOV R0, #2 \n"
295 " BL sub_FF88142C \n"
296 " BL wait_until_remote_button_is_released\n"
297 " BL capt_seq_hook_set_nr\n"
298 " LDRH R0, [R6] \n"
299 " SUB R1, R0, #0x8200 \n"
300 " SUBS R1, R1, #0x2D \n"
301 " BNE loc_FF96F008 \n"
302 " MOV R2, #2 \n"
303 " MOV R1, SP \n"
304 " ADD R0, R2, #0x15C \n"
305 " STR R4, [SP] \n"
306 " BL _GetPropertyCase \n"
307 " TST R0, #1 \n"
308 " MOVNE R1, #0xBC \n"
309 " LDRNE R0, =0xFF96F0E0 /*'SsCaptureSeq.c'*/ \n"
310 " BLNE _DebugAssert \n"
311 " LDRH R0, [SP] \n"
312 " CMP R0, #1 \n"
313 " STRHI R4, [R5, #0xD4] \n"
314 " BHI loc_FF96F028 \n"
315 " MOV R0, #0 \n"
316 " STR R0, [R5, #0xD4] \n"
317
318 "loc_FF96F008:\n"
319 " MOV R0, R5 \n"
320 " BL sub_FFAB5898 \n"
321 " MOV R4, R0 \n"
322 " B loc_FF96F02C \n"
323
324 "loc_FF96F018:\n"
325 " LDR R0, =0x6AEC \n"
326 " LDR R0, [R0] \n"
327 " CMP R0, #0 \n"
328 " BEQ loc_FF96F02C \n"
329
330 "loc_FF96F028:\n"
331 " MOV R4, #0x1D \n"
332
333 "loc_FF96F02C:\n"
334 " MOV R0, R4 \n"
335
336 "loc_FF96F030:\n"
337 " LDMFD SP!, {R3-R7,PC} \n"
338 );
339 }
340
341
342
343 void __attribute__((naked,noinline)) exp_drv_task() {
344 asm volatile (
345 " STMFD SP!, {R4-R9,LR} \n"
346 " SUB SP, SP, #0x24 \n"
347 " LDR R6, =0x3EB0 \n"
348 " LDR R7, =0xBB8 \n"
349 " LDR R4, =0x55794 \n"
350 " MOV R0, #0 \n"
351 " ADD R5, SP, #0x14 \n"
352 " STR R0, [SP, #0x10] \n"
353
354 "loc_FF8BE40C:\n"
355 " LDR R0, [R6, #0x20] \n"
356 " MOV R2, #0 \n"
357 " ADD R1, SP, #0x20 \n"
358 " BL sub_FF839BD8 /*_ReceiveMessageQueue*/ \n"
359 " LDR R0, [SP, #0x10] \n"
360 " CMP R0, #1 \n"
361 " BNE loc_FF8BE458 \n"
362 " LDR R0, [SP, #0x20] \n"
363 " LDR R0, [R0] \n"
364 " CMP R0, #0x14 \n"
365 " CMPNE R0, #0x15 \n"
366 " CMPNE R0, #0x16 \n"
367 " CMPNE R0, #0x17 \n"
368 " BEQ loc_FF8BE5B8 \n"
369 " CMP R0, #0x29 \n"
370 " BEQ loc_FF8BE540 \n"
371 " ADD R1, SP, #0x10 \n"
372 " MOV R0, #0 \n"
373 " BL sub_FF8BE39C \n"
374
375 "loc_FF8BE458:\n"
376 " LDR R0, [SP, #0x20] \n"
377 " LDR R1, [R0] \n"
378 " CMP R1, #0x2F \n"
379 " BNE loc_FF8BE484 \n"
380 " BL sub_FF8BF888 \n"
381 " LDR R0, [R6, #0x1C] \n"
382 " MOV R1, #1 \n"
383 " BL sub_FF884D84 /*_SetEventFlag*/ \n"
384 " BL _ExitTask \n"
385 " ADD SP, SP, #0x24 \n"
386 " LDMFD SP!, {R4-R9,PC} \n"
387
388 "loc_FF8BE484:\n"
389 " CMP R1, #0x2E \n"
390 " BNE loc_FF8BE4A0 \n"
391 " LDR R2, [R0, #0x8C]! \n"
392 " LDR R1, [R0, #4] \n"
393 " MOV R0, R1 \n"
394 " BLX R2 \n"
395 " B loc_FF8BEAA8 \n"
396
397 "loc_FF8BE4A0:\n"
398 " CMP R1, #0x27 \n"
399 " BNE loc_FF8BE4F0 \n"
400 " LDR R0, [R6, #0x1C] \n"
401 " MOV R1, #0x80 \n"
402 " BL sub_FF884DB8 /*_ClearEventFlag*/ \n"
403 " LDR R0, =0xFF8B9F80 \n"
404 " MOV R1, #0x80 \n"
405 " BL sub_FF9619E4 \n"
406 " LDR R0, [R6, #0x1C] \n"
407 " MOV R2, R7 \n"
408 " MOV R1, #0x80 \n"
409 " BL sub_FF884CC4 /*_WaitForAllEventFlag*/ \n"
410 " TST R0, #1 \n"
411 " LDRNE R1, =0x174E \n"
412 " BNE loc_FF8BE5AC \n"
413
414 "loc_FF8BE4DC:\n"
415 " LDR R1, [SP, #0x20] \n"
416 " LDR R0, [R1, #0x90] \n"
417 " LDR R1, [R1, #0x8C] \n"
418 " BLX R1 \n"
419 " B loc_FF8BEAA8 \n"
420
421 "loc_FF8BE4F0:\n"
422 " CMP R1, #0x28 \n"
423 " BNE loc_FF8BE538 \n"
424 " ADD R1, SP, #0x10 \n"
425 " BL sub_FF8BE39C \n"
426 " LDR R0, [R6, #0x1C] \n"
427 " MOV R1, #0x100 \n"
428 " BL sub_FF884DB8 /*_ClearEventFlag*/ \n"
429 " LDR R0, =0xFF8B9F90 \n"
430 " MOV R1, #0x100 \n"
431 " BL sub_FF961C84 \n"
432 " LDR R0, [R6, #0x1C] \n"
433 " MOV R2, R7 \n"
434 " MOV R1, #0x100 \n"
435 " BL sub_FF884CC4 /*_WaitForAllEventFlag*/ \n"
436 " TST R0, #1 \n"
437 " BEQ loc_FF8BE4DC \n"
438 " LDR R1, =0x1758 \n"
439 " B loc_FF8BE5AC \n"
440
441 "loc_FF8BE538:\n"
442 " CMP R1, #0x29 \n"
443 " BNE loc_FF8BE550 \n"
444
445 "loc_FF8BE540:\n"
446 " LDR R0, [SP, #0x20] \n"
447 " ADD R1, SP, #0x10 \n"
448 " BL sub_FF8BE39C \n"
449 " B loc_FF8BE4DC \n"
450
451 "loc_FF8BE550:\n"
452 " CMP R1, #0x2C \n"
453 " BNE loc_FF8BE568 \n"
454 " BL sub_FF8AC3BC \n"
455 " BL sub_FF8AD02C \n"
456 " BL sub_FF8ACBA4 \n"
457 " B loc_FF8BE4DC \n"
458
459 "loc_FF8BE568:\n"
460 " CMP R1, #0x2D \n"
461 " BNE loc_FF8BE5B8 \n"
462 " LDR R0, [R6, #0x1C] \n"
463 " MOV R1, #4 \n"
464 " BL sub_FF884DB8 /*_ClearEventFlag*/ \n"
465 " LDR R1, =0xFF8B9FB0 \n"
466 " LDR R0, =0xFFFFF400 \n"
467 " MOV R2, #4 \n"
468 " BL sub_FF8ABE30 \n"
469 " BL sub_FF8AC0C0 \n"
470 " LDR R0, [R6, #0x1C] \n"
471 " MOV R2, R7 \n"
472 " MOV R1, #4 \n"
473 " BL sub_FF884BE0 /*_WaitForAnyEventFlag*/ \n"
474 " TST R0, #1 \n"
475 " BEQ loc_FF8BE4DC \n"
476 " MOV R1, #0x1780 \n"
477
478 "loc_FF8BE5AC:\n"
479 " LDR R0, =0xFF8BA6A4 /*'ExpDrv.c'*/ \n"
480 " BL _DebugAssert \n"
481 " B loc_FF8BE4DC \n"
482
483 "loc_FF8BE5B8:\n"
484 " LDR R0, [SP, #0x20] \n"
485 " MOV R8, #1 \n"
486 " LDR R1, [R0] \n"
487 " CMP R1, #0x12 \n"
488 " CMPNE R1, #0x13 \n"
489 " BNE loc_FF8BE680 \n"
490 " LDR R1, [R0, #0x7C] \n"
491 " ADD R1, R1, R1, LSL#1 \n"
492 " ADD R1, R0, R1, LSL#2 \n"
493 " SUB R1, R1, #8 \n"
494 " LDMIA R1, {R2,R3,R9} \n"
495 " STMIA R5, {R2,R3,R9} \n"
496 " BL sub_FF8BCA0C \n"
497 " LDR R0, [SP, #0x20] \n"
498 " LDR R1, [R0, #0x7C] \n"
499 " LDR R3, [R0, #0x8C] \n"
500 " LDR R2, [R0, #0x90] \n"
501 " ADD R0, R0, #4 \n"
502 " BLX R3 \n"
503 " LDR R0, [SP, #0x20] \n"
504 " BL sub_FF8BFC24 \n"
505 " LDR R0, [SP, #0x20] \n"
506 " LDR R1, [R0, #0x7C] \n"
507 " LDR R2, [R0, #0x98] \n"
508 " LDR R3, [R0, #0x94] \n"
509 " B loc_FF8BE994 \n"
510
511 "loc_FF8BE680:\n"
512 " CMP R1, #0x14 \n"
513 " CMPNE R1, #0x15 \n"
514 " CMPNE R1, #0x16 \n"
515 " CMPNE R1, #0x17 \n"
516 " BNE loc_FF8BE738 \n"
517 " ADD R3, SP, #0x10 \n"
518 " ADD R2, SP, #4 \n"
519 " ADD R1, SP, #0x14 \n"
520 " BL sub_FF8BCC74 \n"
521 " CMP R0, #1 \n"
522 " MOV R9, R0 \n"
523 " CMPNE R9, #5 \n"
524 " BNE loc_FF8BE6D4 \n"
525 " LDR R0, [SP, #0x20] \n"
526 " MOV R2, R9 \n"
527 " LDR R1, [R0, #0x7C]! \n"
528 " LDR R12, [R0, #0x10]! \n"
529 " LDR R3, [R0, #4] \n"
530 " ADD R0, SP, #4 \n"
531 " BLX R12 \n"
532 " B loc_FF8BE70C \n"
533
534 "loc_FF8BE6D4:\n"
535 " LDR R0, [SP, #0x20] \n"
536 " CMP R9, #2 \n"
537 " LDR R3, [R0, #0x90] \n"
538 " CMPNE R9, #6 \n"
539 " BNE loc_FF8BE720 \n"
540 " LDR R12, [R0, #0x8C] \n"
541 " MOV R2, R9 \n"
542 " MOV R1, #1 \n"
543 " ADD R0, SP, #4 \n"
544 " BLX R12 \n"
545 " LDR R0, [SP, #0x20] \n"
546 " ADD R2, SP, #4 \n"
547 " ADD R1, SP, #0x14 \n"
548 " BL sub_FF8BE0E8 \n"
549
550 "loc_FF8BE70C:\n"
551 " LDR R0, [SP, #0x20] \n"
552 " LDR R2, [SP, #0x10] \n"
553 " MOV R1, R9 \n"
554 " BL sub_FF8BE33C \n"
555 " B loc_FF8BE99C \n"
556
557 "loc_FF8BE720:\n"
558 " LDR R1, [R0, #0x7C] \n"
559 " LDR R12, [R0, #0x8C] \n"
560 " MOV R2, R9 \n"
561 " ADD R0, R0, #4 \n"
562 " BLX R12 \n"
563 " B loc_FF8BE99C \n"
564
565 "loc_FF8BE738:\n"
566 " CMP R1, #0x23 \n"
567 " CMPNE R1, #0x24 \n"
568 " BNE loc_FF8BE784 \n"
569 " LDR R1, [R0, #0x7C] \n"
570 " ADD R1, R1, R1, LSL#1 \n"
571 " ADD R1, R0, R1, LSL#2 \n"
572 " SUB R1, R1, #8 \n"
573 " LDMIA R1, {R2,R3,R9} \n"
574 " STMIA R5, {R2,R3,R9} \n"
575 " BL sub_FF8BBA88 \n"
576 " LDR R0, [SP, #0x20] \n"
577 " LDR R1, [R0, #0x7C] \n"
578 " LDR R3, [R0, #0x8C] \n"
579 " LDR R2, [R0, #0x90] \n"
580 " ADD R0, R0, #4 \n"
581 " BLX R3 \n"
582 " LDR R0, [SP, #0x20] \n"
583 " BL sub_FF8BBEC4 \n"
584 " B loc_FF8BE99C \n"
585
586 "loc_FF8BE784:\n"
587 " ADD R1, R0, #4 \n"
588 " LDMIA R1, {R2,R3,R9} \n"
589 " STMIA R5, {R2,R3,R9} \n"
590 " LDR R1, [R0] \n"
591 " CMP R1, #0x27 \n"
592 " ADDCC PC, PC, R1, LSL#2 \n"
593 " B loc_FF8BE984 \n"
594 " B loc_FF8BE83C \n"
595 " B loc_FF8BE83C \n"
596 " B loc_FF8BE844 \n"
597 " B loc_FF8BE84C \n"
598 " B loc_FF8BE84C \n"
599 " B loc_FF8BE84C \n"
600 " B loc_FF8BE83C \n"
601 " B loc_FF8BE844 \n"
602 " B loc_FF8BE84C \n"
603 " B loc_FF8BE84C \n"
604 " B loc_FF8BE864 \n"
605 " B loc_FF8BE864 \n"
606 " B loc_FF8BE970 \n"
607 " B loc_FF8BE978 \n"
608 " B loc_FF8BE978 \n"
609 " B loc_FF8BE978 \n"
610 " B loc_FF8BE978 \n"
611 " B loc_FF8BE980 \n"
612 " B loc_FF8BE984 \n"
613 " B loc_FF8BE984 \n"
614 " B loc_FF8BE984 \n"
615 " B loc_FF8BE984 \n"
616 " B loc_FF8BE984 \n"
617 " B loc_FF8BE984 \n"
618 " B loc_FF8BE854 \n"
619 " B loc_FF8BE85C \n"
620 " B loc_FF8BE85C \n"
621 " B loc_FF8BE870 \n"
622 " B loc_FF8BE870 \n"
623 " B loc_FF8BE878 \n"
624 " B loc_FF8BE8B0 \n"
625 " B loc_FF8BE8E8 \n"
626 " B loc_FF8BE920 \n"
627 " B loc_FF8BE958 \n"
628 " B loc_FF8BE958 \n"
629 " B loc_FF8BE984 \n"
630 " B loc_FF8BE984 \n"
631 " B loc_FF8BE960 \n"
632 " B loc_FF8BE968 \n"
633
634 "loc_FF8BE83C:\n"
635 " BL sub_FF8BA528 \n"
636 " B loc_FF8BE984 \n"
637
638 "loc_FF8BE844:\n"
639 " BL sub_FF8BA7CC \n"
640 " B loc_FF8BE984 \n"
641
642 "loc_FF8BE84C:\n"
643 " BL sub_FF8BA9F4 \n"
644 " B loc_FF8BE984 \n"
645
646 "loc_FF8BE854:\n"
647 " BL sub_FF8BACCC \n"
648 " B loc_FF8BE984 \n"
649
650 "loc_FF8BE85C:\n"
651 " BL sub_FF8BAEE4 \n"
652 " B loc_FF8BE984 \n"
653
654 "loc_FF8BE864:\n"
655 " BL sub_FF8BB264_my \n"
656 " MOV R8, #0 \n"
657 " B loc_FF8BE984 \n"
658
659 "loc_FF8BE870:\n"
660 " BL sub_FF8BB3AC \n"
661 " B loc_FF8BE984 \n"
662
663 "loc_FF8BE878:\n"
664 " LDRH R1, [R0, #4] \n"
665 " STRH R1, [SP, #0x14] \n"
666 " LDRH R1, [R4, #2] \n"
667 " STRH R1, [SP, #0x16] \n"
668 " LDRH R1, [R4, #4] \n"
669 " STRH R1, [SP, #0x18] \n"
670 " LDRH R1, [R4, #6] \n"
671 " STRH R1, [SP, #0x1A] \n"
672 " LDRH R1, [R0, #0xC] \n"
673 " STRH R1, [SP, #0x1C] \n"
674 " LDRH R1, [R4, #0xA] \n"
675 " STRH R1, [SP, #0x1E] \n"
676 " BL sub_FF8BF91C \n"
677 " B loc_FF8BE984 \n"
678
679 "loc_FF8BE8B0:\n"
680 " LDRH R1, [R0, #4] \n"
681 " STRH R1, [SP, #0x14] \n"
682 " LDRH R1, [R4, #2] \n"
683 " STRH R1, [SP, #0x16] \n"
684 " LDRH R1, [R4, #4] \n"
685 " STRH R1, [SP, #0x18] \n"
686 " LDRH R1, [R4, #6] \n"
687 " STRH R1, [SP, #0x1A] \n"
688 " LDRH R1, [R4, #8] \n"
689 " STRH R1, [SP, #0x1C] \n"
690 " LDRH R1, [R4, #0xA] \n"
691 " STRH R1, [SP, #0x1E] \n"
692 " BL sub_FF8BFA24 \n"
693 " B loc_FF8BE984 \n"
694
695 "loc_FF8BE8E8:\n"
696 " LDRH R1, [R4] \n"
697 " STRH R1, [SP, #0x14] \n"
698 " LDRH R1, [R0, #6] \n"
699 " STRH R1, [SP, #0x16] \n"
700 " LDRH R1, [R4, #4] \n"
701 " STRH R1, [SP, #0x18] \n"
702 " LDRH R1, [R4, #6] \n"
703 " STRH R1, [SP, #0x1A] \n"
704 " LDRH R1, [R4, #8] \n"
705 " STRH R1, [SP, #0x1C] \n"
706 " LDRH R1, [R4, #0xA] \n"
707 " STRH R1, [SP, #0x1E] \n"
708 " BL sub_FF8BFAD8 \n"
709 " B loc_FF8BE984 \n"
710
711 "loc_FF8BE920:\n"
712 " LDRH R1, [R4] \n"
713 " STRH R1, [SP, #0x14] \n"
714 " LDRH R1, [R4, #2] \n"
715 " STRH R1, [SP, #0x16] \n"
716 " LDRH R1, [R4, #4] \n"
717 " STRH R1, [SP, #0x18] \n"
718 " LDRH R1, [R4, #6] \n"
719 " STRH R1, [SP, #0x1A] \n"
720 " LDRH R1, [R0, #0xC] \n"
721 " STRH R1, [SP, #0x1C] \n"
722 " LDRH R1, [R4, #0xA] \n"
723 " STRH R1, [SP, #0x1E] \n"
724 " BL sub_FF8BFB80 \n"
725 " B loc_FF8BE984 \n"
726
727 "loc_FF8BE958:\n"
728 " BL sub_FF8BB87C \n"
729 " B loc_FF8BE984 \n"
730
731 "loc_FF8BE960:\n"
732 " BL sub_FF8BBFC8 \n"
733 " B loc_FF8BE984 \n"
734
735 "loc_FF8BE968:\n"
736 " BL sub_FF8BC270 \n"
737 " B loc_FF8BE984 \n"
738
739 "loc_FF8BE970:\n"
740 " BL sub_FF8BC450 \n"
741 " B loc_FF8BE984 \n"
742
743 "loc_FF8BE978:\n"
744 " BL sub_FF8BC694 \n"
745 " B loc_FF8BE984 \n"
746
747 "loc_FF8BE980:\n"
748 " BL sub_FF8BC804 \n"
749
750 "loc_FF8BE984:\n"
751 " LDR R0, [SP, #0x20] \n"
752 " LDR R1, [R0, #0x7C] \n"
753 " LDR R2, [R0, #0x90] \n"
754 " LDR R3, [R0, #0x8C] \n"
755
756 "loc_FF8BE994:\n"
757 " ADD R0, R0, #4 \n"
758 " BLX R3 \n"
759
760 "loc_FF8BE99C:\n"
761 " LDR R1, [SP, #0x20] \n"
762 " LDR R0, [R1] \n"
763 " CMP R0, #0x10 \n"
764 " BEQ loc_FF8BE9D4 \n"
765 " BGT loc_FF8BE9C4 \n"
766 " CMP R0, #1 \n"
767 " CMPNE R0, #4 \n"
768 " CMPNE R0, #0xE \n"
769 " BNE loc_FF8BE9E4 \n"
770 " B loc_FF8BE9D4 \n"
771
772 "loc_FF8BE9C4:\n"
773 " CMP R0, #0x13 \n"
774 " CMPNE R0, #0x17 \n"
775 " CMPNE R0, #0x1A \n"
776 " BNE loc_FF8BE9E4 \n"
777
778 "loc_FF8BE9D4:\n"
779 " LDRH R0, [R4] \n"
780 " STRH R0, [SP, #0x14] \n"
781 " LDRH R0, [R4, #8] \n"
782 " STRH R0, [SP, #0x1C] \n"
783
784 "loc_FF8BE9E4:\n"
785 " CMP R8, #1 \n"
786 " BNE loc_FF8BEA30 \n"
787 " LDR R0, [R1, #0x7C] \n"
788 " MOV R2, #0xC \n"
789 " ADD R0, R0, R0, LSL#1 \n"
790 " ADD R0, R1, R0, LSL#2 \n"
791 " SUB R8, R0, #8 \n"
792 " LDR R0, =0x55794 \n"
793 " ADD R1, SP, #0x14 \n"
794 " BL sub_FFB58820 \n"
795 " LDR R0, =0x557A0 \n"
796 " MOV R2, #0xC \n"
797 " ADD R1, SP, #0x14 \n"
798 " BL sub_FFB58820 \n"
799 " LDR R0, =0x557AC \n"
800 " MOV R2, #0xC \n"
801 " MOV R1, R8 \n"
802 " BL sub_FFB58820 \n"
803 " B loc_FF8BEAA8 \n"
804
805 "loc_FF8BEA30:\n"
806 " LDR R0, [R1] \n"
807 " MOV R3, #1 \n"
808 " CMP R0, #0xB \n"
809 " BNE loc_FF8BEA74 \n"
810 " MOV R2, #0 \n"
811 " STRD R2, [SP] \n"
812 " MOV R2, R3 \n"
813 " MOV R1, R3 \n"
814 " MOV R0, #0 \n"
815 " BL sub_FF8BA308 \n"
816 " MOV R3, #1 \n"
817 " MOV R2, #0 \n"
818 " STRD R2, [SP] \n"
819 " MOV R2, R3 \n"
820 " MOV R1, R3 \n"
821 " MOV R0, #0 \n"
822 " B loc_FF8BEAA4 \n"
823
824 "loc_FF8BEA74:\n"
825 " MOV R2, #1 \n"
826 " STRD R2, [SP] \n"
827 " MOV R3, R2 \n"
828 " MOV R1, R2 \n"
829 " MOV R0, R2 \n"
830 " BL sub_FF8BA308 \n"
831 " MOV R3, #1 \n"
832 " MOV R2, R3 \n"
833 " MOV R1, R3 \n"
834 " MOV R0, R3 \n"
835 " STR R3, [SP] \n"
836 " STR R3, [SP, #4] \n"
837
838 "loc_FF8BEAA4:\n"
839 " BL sub_FF8BA474 \n"
840
841 "loc_FF8BEAA8:\n"
842 " LDR R0, [SP, #0x20] \n"
843 " BL sub_FF8BF888 \n"
844 " B loc_FF8BE40C \n"
845 );
846 }
847
848
849
850 void __attribute__((naked,noinline)) sub_FF8BB264_my() {
851 asm volatile (
852 " STMFD SP!, {R4-R8,LR} \n"
853 " LDR R7, =0x3EB0 \n"
854 " MOV R4, R0 \n"
855 " LDR R0, [R7, #0x1C] \n"
856 " MOV R1, #0x3E \n"
857 " BL sub_FF884DB8 /*_ClearEventFlag*/ \n"
858 " MOV R2, #0 \n"
859 " LDRSH R0, [R4, #4] \n"
860 " MOV R1, R2 \n"
861 " BL sub_FF8BA010 \n"
862 " MOV R5, R0 \n"
863 " LDRSH R0, [R4, #6] \n"
864 " BL sub_FF8BA160 \n"
865 " LDRSH R0, [R4, #8] \n"
866 " BL sub_FF8BA1B8 \n"
867 " LDRSH R0, [R4, #0xA] \n"
868 " BL sub_FF8BA210 \n"
869 " LDRSH R0, [R4, #0xC] \n"
870 " MOV R1, #0 \n"
871 " BL sub_FF8BA268 \n"
872 " MOV R6, R0 \n"
873 " LDRSH R0, [R4, #0xE] \n"
874 " BL sub_FF8BF8B8 \n"
875 " LDR R0, [R4] \n"
876 " LDR R8, =0x557AC \n"
877 " CMP R0, #0xB \n"
878 " MOVEQ R5, #0 \n"
879 " MOVEQ R6, R5 \n"
880 " BEQ loc_FF8BB300 \n"
881 " CMP R5, #1 \n"
882 " BNE loc_FF8BB300 \n"
883 " LDRSH R0, [R4, #4] \n"
884 " LDR R1, =0xFF8B9F70 \n"
885 " MOV R2, #2 \n"
886 " BL sub_FF961B38 \n"
887 " STRH R0, [R4, #4] \n"
888 " MOV R0, #0 \n"
889 " STR R0, [R7, #0x28] \n"
890 " B loc_FF8BB308 \n"
891
892 "loc_FF8BB300:\n"
893 " LDRH R0, [R8] \n"
894 " STRH R0, [R4, #4] \n"
895
896 "loc_FF8BB308:\n"
897 " CMP R6, #1 \n"
898 " LDRNEH R0, [R8, #8] \n"
899 " BNE loc_FF8BB324 \n"
900 " LDRSH R0, [R4, #0xC] \n"
901 " LDR R1, =0xFF8B9FF4 \n"
902 " MOV R2, #0x20 \n"
903 " BL sub_FF8BF8D8 \n"
904
905 "loc_FF8BB324:\n"
906 " STRH R0, [R4, #0xC] \n"
907 " LDRSH R0, [R4, #6] \n"
908 " BL sub_FF8AC12C_my \n"
909 " LDR PC, =0xFF8BB330 \n"
910 );
911 }
912
913
914
915 void __attribute__((naked,noinline)) sub_FF8AC12C_my() {
916 asm volatile (
917 " STMFD SP!, {R4-R6,LR} \n"
918 " LDR R5, =0x3B74 \n"
919 " MOV R4, R0 \n"
920 " LDR R0, [R5, #4] \n"
921 " CMP R0, #1 \n"
922 " LDRNE R1, =0x146 \n"
923 " LDRNE R0, =0xFF8ABF64 /*'Shutter.c'*/ \n"
924 " BLNE _DebugAssert \n"
925 " CMN R4, #0xC00 \n"
926 " LDREQSH R4, [R5, #2] \n"
927 " CMN R4, #0xC00 \n"
928 " MOVEQ R1, #0x14C \n"
929 " LDREQ R0, =0xFF8ABF64 /*'Shutter.c'*/ \n"
930 " STRH R4, [R5, #2] \n"
931 " BLEQ _DebugAssert \n"
932 " MOV R0, R4 \n"
933 " BL apex2us \n"
934 " MOV R4, R0 \n"
935
936 " MOV R0, R4 \n"
937 " BL sub_FF900E9C \n"
938 " TST R0, #1 \n"
939 " LDMEQFD SP!, {R4-R6,PC} \n"
940 " LDMFD SP!, {R4-R6,LR} \n"
941 " LDR R1, =0x151 \n"
942 " LDR R0, =0xFF8ABF64 /*'Shutter.c'*/ \n"
943 " B _DebugAssert \n"
944 );
945 }