This source file includes following definitions.
- capt_seq_task
- sub_FF933C30_my
- sub_FF85C37C_my
- exp_drv_task
- sub_FF8AD258_my
- sub_FF891504_my
1
2
3
4 #include "lolevel.h"
5 #include "platform.h"
6 #include "core.h"
7
8 #define USE_STUBS_NRFLAG 1
9
10 #include "../../../generic/capt_seq.c"
11
12
13
14 void __attribute__((naked,noinline)) capt_seq_task() {
15 asm volatile (
16 " STMFD SP!, {R3-R9,LR} \n"
17 " LDR R6, =0x1DAF4 \n"
18 " LDR R5, =0x5648 \n"
19 " MOV R9, #1 \n"
20 " MOV R7, #0 \n"
21
22 "loc_FF85C04C:\n"
23 " LDR R0, [R5, #0xC] \n"
24 " MOV R2, #0 \n"
25 " MOV R1, SP \n"
26 " BL sub_FF8290D8 /*_ReceiveMessageQueue*/ \n"
27 " TST R0, #1 \n"
28 " BEQ loc_FF85C078 \n"
29 " LDR R1, =0x43F \n"
30 " LDR R0, =0xFF85BDD0 /*'SsShootTask.c'*/ \n"
31 " BL _DebugAssert \n"
32 " BL _ExitTask \n"
33 " LDMFD SP!, {R3-R9,PC} \n"
34
35 "loc_FF85C078:\n"
36 " LDR R0, [SP] \n"
37 " LDR R1, [R0] \n"
38 " CMP R1, #0x17 \n"
39 " ADDLS PC, PC, R1, LSL#2 \n"
40 " B loc_FF85C268 \n"
41 " B loc_FF85C0EC \n"
42 " B loc_FF85C154 \n"
43 " B loc_FF85C15C \n"
44 " B loc_FF85C174 \n"
45 " B loc_FF85C168 \n"
46 " B loc_FF85C17C \n"
47 " B loc_FF85C184 \n"
48 " B loc_FF85C18C \n"
49 " B loc_FF85C1E4 \n"
50 " B loc_FF85C1F0 \n"
51 " B loc_FF85C1F8 \n"
52 " B loc_FF85C200 \n"
53 " B loc_FF85C208 \n"
54 " B loc_FF85C210 \n"
55 " B loc_FF85C218 \n"
56 " B loc_FF85C220 \n"
57 " B loc_FF85C228 \n"
58 " B loc_FF85C234 \n"
59 " B loc_FF85C23C \n"
60 " B loc_FF85C244 \n"
61 " B loc_FF85C24C \n"
62 " B loc_FF85C258 \n"
63 " B loc_FF85C260 \n"
64 " B loc_FF85C274 \n"
65
66 "loc_FF85C0EC:\n"
67 " BL sub_FF9325D8 \n"
68
69
70 " BL captseq_hack_override_active\n"
71 " STR R0,[SP,#-4]!\n"
72 " BL shooting_expo_param_override\n"
73
74 " BL sub_FF85A2BC \n"
75
76 " LDR R0, [SP], #4\n"
77 " CMP R0, #1\n"
78 " MOVEQ R0, #0\n"
79 " STREQ R0, [R6, #0x24]\n"
80 " LDRNE R0, [R6, #0x24]\n"
81 " CMPNE R0, #0\n"
82
83
84
85 " BEQ loc_FF85C274 \n"
86 " BL sub_FF85BA9C \n"
87 " MOV R4, R0 \n"
88 " LDR R0, [R6, #0x24] \n"
89 " CMP R0, #0 \n"
90 " BEQ loc_FF85C134 \n"
91 " MOV R0, #0xC \n"
92 " BL sub_FF85F170 \n"
93 " TST R0, #1 \n"
94 " STRNE R9, [R5, #4] \n"
95 " LDRNE R0, [R4, #8] \n"
96 " ORRNE R0, R0, #0x40000000 \n"
97 " STRNE R0, [R4, #8] \n"
98 " BNE loc_FF85C274 \n"
99
100 "loc_FF85C134:\n"
101 " BL sub_FF9471B8 \n"
102 " BL sub_FF869984 \n"
103 " STR R0, [R4, #0x14] \n"
104 " MOV R0, R4 \n"
105 " BL sub_FF933C30_my \n"
106 " TST R0, #1 \n"
107 " STRNE R9, [R5, #4] \n"
108 " B loc_FF85C274 \n"
109
110 "loc_FF85C154:\n"
111 " BL sub_FF85C37C_my \n"
112 " B loc_FF85C16C \n"
113
114 "loc_FF85C15C:\n"
115 " MOV R0, #1 \n"
116 " BL sub_FF93277C \n"
117 " B loc_FF85C274 \n"
118
119 "loc_FF85C168:\n"
120 " BL sub_FF932274 \n"
121
122 "loc_FF85C16C:\n"
123 " STR R7, [R6, #0x24] \n"
124 " B loc_FF85C274 \n"
125
126 "loc_FF85C174:\n"
127 " BL sub_FF9325A4 \n"
128 " B loc_FF85C16C \n"
129
130 "loc_FF85C17C:\n"
131 " BL sub_FF9325AC \n"
132 " B loc_FF85C274 \n"
133
134 "loc_FF85C184:\n"
135 " BL sub_FF93269C \n"
136 " B loc_FF85C1E8 \n"
137
138 "loc_FF85C18C:\n"
139 " LDR R4, [R0, #0xC] \n"
140 " BL sub_FF9325B4 \n"
141 " MOV R0, R4 \n"
142 " BL sub_FF932DC8 \n"
143 " TST R0, #1 \n"
144 " MOV R8, R0 \n"
145 " BNE loc_FF85C1CC \n"
146 " BL sub_FF869984 \n"
147 " STR R0, [R4, #0x14] \n"
148 " MOV R0, R4 \n"
149 " BL sub_FF933B48 \n"
150 " MOV R0, R4 \n"
151 " BL sub_FF934098 \n"
152 " MOV R8, R0 \n"
153 " LDR R0, [R4, #0x14] \n"
154 " BL sub_FF869B98 \n"
155
156 "loc_FF85C1CC:\n"
157 " BL sub_FF9325A4 \n"
158 " MOV R2, R4 \n"
159 " MOV R1, #8 \n"
160 " MOV R0, R8 \n"
161 " BL sub_FF85A868 \n"
162 " B loc_FF85C274 \n"
163
164 "loc_FF85C1E4:\n"
165 " BL sub_FF9326F8 \n"
166
167 "loc_FF85C1E8:\n"
168 " BL sub_FF85A2BC \n"
169 " B loc_FF85C274 \n"
170
171 "loc_FF85C1F0:\n"
172 " BL sub_FF9325A4 \n"
173 " B loc_FF85C274 \n"
174
175 "loc_FF85C1F8:\n"
176 " BL sub_FF933034 \n"
177 " B loc_FF85C274 \n"
178
179 "loc_FF85C200:\n"
180 " BL sub_FF9331EC \n"
181 " B loc_FF85C274 \n"
182
183 "loc_FF85C208:\n"
184 " BL sub_FF93327C \n"
185 " B loc_FF85C274 \n"
186
187 "loc_FF85C210:\n"
188 " BL sub_FF933330 \n"
189 " B loc_FF85C274 \n"
190
191 "loc_FF85C218:\n"
192 " BL sub_FF933518 \n"
193 " B loc_FF85C274 \n"
194
195 "loc_FF85C220:\n"
196 " BL sub_FF933568 \n"
197 " B loc_FF85C274 \n"
198
199 "loc_FF85C228:\n"
200 " MOV R0, #0 \n"
201 " BL sub_FF9335EC \n"
202 " B loc_FF85C274 \n"
203
204 "loc_FF85C234:\n"
205 " BL sub_FF93372C \n"
206 " B loc_FF85C274 \n"
207
208 "loc_FF85C23C:\n"
209 " BL sub_FF9337C0 \n"
210 " B loc_FF85C274 \n"
211
212 "loc_FF85C244:\n"
213 " BL sub_FF933880 \n"
214 " B loc_FF85C274 \n"
215
216 "loc_FF85C24C:\n"
217 " BL sub_FF9328A0 \n"
218 " BL sub_FF825B44 \n"
219 " B loc_FF85C274 \n"
220
221 "loc_FF85C258:\n"
222 " BL sub_FF9333EC \n"
223 " B loc_FF85C274 \n"
224
225 "loc_FF85C260:\n"
226 " BL sub_FF933458 \n"
227 " B loc_FF85C274 \n"
228
229 "loc_FF85C268:\n"
230 " LDR R1, =0x523 \n"
231 " LDR R0, =0xFF85BDD0 /*'SsShootTask.c'*/ \n"
232 " BL _DebugAssert \n"
233
234 "loc_FF85C274:\n"
235 " LDR R0, [SP] \n"
236 " LDR R1, [R0, #4] \n"
237 " LDR R0, [R5, #8] \n"
238 " BL sub_FF828E54 /*_SetEventFlag*/ \n"
239 " LDR R4, [SP] \n"
240 " LDR R0, [R4, #8] \n"
241 " CMP R0, #0 \n"
242 " LDREQ R0, =0xFF85BDD0 /*'SsShootTask.c'*/ \n"
243 " MOVEQ R1, #0xFC \n"
244 " BLEQ _DebugAssert \n"
245 " STR R7, [R4, #8] \n"
246 " B loc_FF85C04C \n"
247 );
248 }
249
250
251
252 void __attribute__((naked,noinline)) sub_FF933C30_my() {
253 asm volatile (
254 " STMFD SP!, {R0-R10,LR} \n"
255 " MOV R6, #0 \n"
256 " MOV R4, R0 \n"
257 " BL sub_FF93475C \n"
258 " MVN R1, #0 \n"
259 " BL sub_FF828E88 /*_ClearEventFlag*/ \n"
260 " MOV R2, #4 \n"
261 " ADD R1, SP, #8 \n"
262 " MOV R0, #0x8A \n"
263 " BL _GetPropertyCase \n"
264 " TST R0, #1 \n"
265 " LDRNE R1, =0x20A \n"
266 " LDRNE R0, =0xFF933E04 /*'SsCaptureSeq.c'*/ \n"
267 " BLNE _DebugAssert \n"
268 " LDR R8, =0x1DBA8 \n"
269 " LDR R5, =0x1DAF4 \n"
270 " LDRSH R1, [R8, #0xE] \n"
271 " LDR R0, [R5, #0x7C] \n"
272 " BL sub_FF9E2458 \n"
273 " BL _GetCCDTemperature \n"
274 " LDR R2, =0xE220 \n"
275 " ADD R3, R4, #0x8C \n"
276 " STRH R0, [R4, #0x88] \n"
277 " STRD R2, [SP] \n"
278 " MOV R1, R0 \n"
279 " LDRH R0, [R5, #0x54] \n"
280 " LDRSH R2, [R8, #0xC] \n"
281 " LDR R3, =0xE21C \n"
282 " BL sub_FF934C50 \n"
283 " BL wait_until_remote_button_is_released\n"
284 " BL capt_seq_hook_set_nr\n"
285 " LDR PC, =0xFF933CA4 \n"
286 );
287 }
288
289
290
291 void __attribute__((naked,noinline)) sub_FF85C37C_my() {
292 asm volatile (
293 " STMFD SP!, {R4-R6,LR} \n"
294 " LDR R4, [R0, #0xC] \n"
295 " LDR R6, =0x1DAF4 \n"
296 " LDR R0, [R4, #8] \n"
297 " MOV R5, #0 \n"
298 " ORR R0, R0, #1 \n"
299 " STR R0, [R4, #8] \n"
300 " LDR R0, [R6, #0x24] \n"
301 " CMP R0, #0 \n"
302 " MOVEQ R0, #2 \n"
303 " BLEQ sub_FF8569D8 \n"
304 " BL sub_FF9325B4 \n"
305 " LDR R0, [R6, #0x24] \n"
306 " CMP R0, #0 \n"
307 " BNE loc_FF85C3FC \n"
308 " MOV R0, R4 \n"
309 " BL sub_FF932A48 \n"
310 " TST R0, #1 \n"
311 " MOVNE R2, R4 \n"
312 " LDMNEFD SP!, {R4-R6,LR} \n"
313 " MOVNE R1, #1 \n"
314 " BNE sub_FF85A868 \n"
315 " BL sub_FF9471B8 \n"
316 " BL sub_FF869984 \n"
317 " STR R0, [R4, #0x14] \n"
318 " MOV R0, R4 \n"
319 " BL sub_FF933B48 \n"
320 " BL sub_FF9345F0 \n"
321 " MOV R0, R4 \n"
322 " BL sub_FF933C30_my \n"
323 " MOV R5, R0 \n"
324 " B loc_FF85C40C \n"
325
326 "loc_FF85C3FC:\n"
327 " LDR R0, =0x5648 \n"
328 " LDR R0, [R0, #4] \n"
329 " CMP R0, #0 \n"
330 " MOVNE R5, #0x1D \n"
331
332 "loc_FF85C40C:\n"
333 " BL capt_seq_hook_raw_here \n"
334 " MOV R2, R4 \n"
335 " MOV R1, #1 \n"
336 " MOV R0, R5 \n"
337 " BL sub_FF85A868 \n"
338 " BL sub_FF934038 \n"
339 " CMP R0, #0 \n"
340 " LDRNE R0, [R4, #8] \n"
341 " ORRNE R0, R0, #0x2000 \n"
342 " STRNE R0, [R4, #8] \n"
343 " LDMFD SP!, {R4-R6,PC} \n"
344 );
345 }
346
347
348
349 void __attribute__((naked,noinline)) exp_drv_task() {
350 asm volatile (
351 " STMFD SP!, {R4-R8,LR} \n"
352 " SUB SP, SP, #0x20 \n"
353 " LDR R8, =0xBB8 \n"
354 " LDR R7, =0x6E88 \n"
355 " LDR R5, =0x457AC \n"
356 " MOV R0, #0 \n"
357 " ADD R6, SP, #0x10 \n"
358 " STR R0, [SP, #0xC] \n"
359
360 "loc_FF8AF7D0:\n"
361 " LDR R0, [R7, #0x20] \n"
362 " MOV R2, #0 \n"
363 " ADD R1, SP, #0x1C \n"
364 " BL sub_FF8290D8 /*_ReceiveMessageQueue*/ \n"
365 " LDR R0, [SP, #0xC] \n"
366 " CMP R0, #1 \n"
367 " BNE loc_FF8AF818 \n"
368 " LDR R0, [SP, #0x1C] \n"
369 " LDR R0, [R0] \n"
370 " CMP R0, #0x13 \n"
371 " CMPNE R0, #0x14 \n"
372 " CMPNE R0, #0x15 \n"
373 " BEQ loc_FF8AF998 \n"
374 " CMP R0, #0x26 \n"
375 " BEQ loc_FF8AF904 \n"
376 " ADD R1, SP, #0xC \n"
377 " MOV R0, #0 \n"
378 " BL sub_FF8AF760 \n"
379
380 "loc_FF8AF818:\n"
381 " LDR R0, [SP, #0x1C] \n"
382 " LDR R1, [R0] \n"
383 " CMP R1, #0x2B \n"
384 " BNE loc_FF8AF848 \n"
385 " LDR R0, [SP, #0x1C] \n"
386 " BL sub_FF8B0A98 \n"
387 " LDR R0, [R7, #0x1C] \n"
388 " MOV R1, #1 \n"
389 " BL sub_FF828E54 /*_SetEventFlag*/ \n"
390 " BL _ExitTask \n"
391 " ADD SP, SP, #0x20 \n"
392 " LDMFD SP!, {R4-R8,PC} \n"
393
394 "loc_FF8AF848:\n"
395 " CMP R1, #0x2A \n"
396 " BNE loc_FF8AF864 \n"
397 " LDR R2, [R0, #0x88]! \n"
398 " LDR R1, [R0, #4] \n"
399 " MOV R0, R1 \n"
400 " BLX R2 \n"
401 " B loc_FF8AFE00 \n"
402
403 "loc_FF8AF864:\n"
404 " CMP R1, #0x24 \n"
405 " BNE loc_FF8AF8B4 \n"
406 " LDR R0, [R7, #0x1C] \n"
407 " MOV R1, #0x80 \n"
408 " BL sub_FF828E88 /*_ClearEventFlag*/ \n"
409 " LDR R0, =0xFF8AC214 \n"
410 " MOV R1, #0x80 \n"
411 " BL sub_FF9272C0 \n"
412 " LDR R0, [R7, #0x1C] \n"
413 " MOV R2, R8 \n"
414 " MOV R1, #0x80 \n"
415 " BL sub_FF828D8C /*_WaitForAllEventFlag*/ \n"
416 " TST R0, #1 \n"
417 " LDRNE R1, =0xD07 \n"
418 " BNE loc_FF8AF974 \n"
419
420 "loc_FF8AF8A0:\n"
421 " LDR R1, [SP, #0x1C] \n"
422 " LDR R0, [R1, #0x8C] \n"
423 " LDR R1, [R1, #0x88] \n"
424 " BLX R1 \n"
425 " B loc_FF8AFE00 \n"
426
427 "loc_FF8AF8B4:\n"
428 " CMP R1, #0x25 \n"
429 " BNE loc_FF8AF8FC \n"
430 " ADD R1, SP, #0xC \n"
431 " BL sub_FF8AF760 \n"
432 " LDR R0, [R7, #0x1C] \n"
433 " MOV R1, #0x100 \n"
434 " BL sub_FF828E88 /*_ClearEventFlag*/ \n"
435 " LDR R0, =0xFF8AC224 \n"
436 " MOV R1, #0x100 \n"
437 " BL sub_FF927548 \n"
438 " LDR R0, [R7, #0x1C] \n"
439 " MOV R2, R8 \n"
440 " MOV R1, #0x100 \n"
441 " BL sub_FF828D8C /*_WaitForAllEventFlag*/ \n"
442 " TST R0, #1 \n"
443 " BEQ loc_FF8AF8A0 \n"
444 " LDR R1, =0xD11 \n"
445 " B loc_FF8AF974 \n"
446
447 "loc_FF8AF8FC:\n"
448 " CMP R1, #0x26 \n"
449 " BNE loc_FF8AF914 \n"
450
451 "loc_FF8AF904:\n"
452 " LDR R0, [SP, #0x1C] \n"
453 " ADD R1, SP, #0xC \n"
454 " BL sub_FF8AF760 \n"
455 " B loc_FF8AF8A0 \n"
456
457 "loc_FF8AF914:\n"
458 " CMP R1, #0x27 \n"
459 " CMPNE R1, #0x28 \n"
460 " BNE loc_FF8AF980 \n"
461 " ADD R1, SP, #0xC \n"
462 " BL sub_FF8AF760 \n"
463 " LDR R4, [SP, #0x1C] \n"
464 " LDR R0, [R7, #0x1C] \n"
465 " MOV R1, #0x40 \n"
466 " BL sub_FF828E88 /*_ClearEventFlag*/ \n"
467 " LDR R0, [R4] \n"
468 " MOV R1, #0x40 \n"
469 " CMP R0, #0x27 \n"
470 " LDR R0, =0xFF8AC288 \n"
471 " BNE loc_FF8AF954 \n"
472 " BL sub_FF92731C \n"
473 " B loc_FF8AF958 \n"
474
475 "loc_FF8AF954:\n"
476 " BL sub_FF927384 \n"
477
478 "loc_FF8AF958:\n"
479 " LDR R0, [R7, #0x1C] \n"
480 " MOV R2, R8 \n"
481 " MOV R1, #0x40 \n"
482 " BL sub_FF828D8C /*_WaitForAllEventFlag*/ \n"
483 " TST R0, #1 \n"
484 " BEQ loc_FF8AF8A0 \n"
485 " LDR R1, =0xD1F \n"
486
487 "loc_FF8AF974:\n"
488 " LDR R0, =0xFF8AC924 /*'ExpDrv.c'*/ \n"
489 " BL _DebugAssert \n"
490 " B loc_FF8AF8A0 \n"
491
492 "loc_FF8AF980:\n"
493 " CMP R1, #0x29 \n"
494 " BNE loc_FF8AF998 \n"
495 " BL sub_FF891760 \n"
496 " BL sub_FF8924E0 \n"
497 " BL sub_FF891FA0 \n"
498 " B loc_FF8AF8A0 \n"
499
500 "loc_FF8AF998:\n"
501 " LDR R0, [SP, #0x1C] \n"
502 " MOV R4, #1 \n"
503 " LDR R1, [R0] \n"
504 " CMP R1, #0x11 \n"
505 " CMPNE R1, #0x12 \n"
506 " BNE loc_FF8AFA08 \n"
507 " LDR R1, [R0, #0x7C] \n"
508 " ADD R1, R1, R1, LSL#1 \n"
509 " ADD R1, R0, R1, LSL#2 \n"
510 " SUB R1, R1, #8 \n"
511 " LDMIA R1, {R2-R4} \n"
512 " STMIA R6, {R2-R4} \n"
513 " BL sub_FF8AE27C \n"
514 " LDR R0, [SP, #0x1C] \n"
515 " LDR R1, [R0, #0x7C] \n"
516 " LDR R3, [R0, #0x88] \n"
517 " LDR R2, [R0, #0x8C] \n"
518 " ADD R0, R0, #4 \n"
519 " BLX R3 \n"
520 " LDR R0, [SP, #0x1C] \n"
521 " BL sub_FF8B0E6C \n"
522 " LDR R0, [SP, #0x1C] \n"
523 " LDR R1, [R0, #0x7C] \n"
524 " LDR R3, [R0, #0x90] \n"
525 " LDR R2, [R0, #0x94] \n"
526 " ADD R0, R0, #4 \n"
527 " BLX R3 \n"
528 " B loc_FF8AFD40 \n"
529
530 "loc_FF8AFA08:\n"
531 " CMP R1, #0x13 \n"
532 " CMPNE R1, #0x14 \n"
533 " CMPNE R1, #0x15 \n"
534 " BNE loc_FF8AFABC \n"
535 " ADD R3, SP, #0xC \n"
536 " MOV R2, SP \n"
537 " ADD R1, SP, #0x10 \n"
538 " BL sub_FF8AE4C4 \n"
539 " CMP R0, #1 \n"
540 " MOV R4, R0 \n"
541 " CMPNE R4, #5 \n"
542 " BNE loc_FF8AFA58 \n"
543 " LDR R0, [SP, #0x1C] \n"
544 " MOV R2, R4 \n"
545 " LDR R1, [R0, #0x7C]! \n"
546 " LDR R12, [R0, #0xC]! \n"
547 " LDR R3, [R0, #4] \n"
548 " MOV R0, SP \n"
549 " BLX R12 \n"
550 " B loc_FF8AFA90 \n"
551
552 "loc_FF8AFA58:\n"
553 " LDR R0, [SP, #0x1C] \n"
554 " CMP R4, #2 \n"
555 " LDR R3, [R0, #0x8C] \n"
556 " CMPNE R4, #6 \n"
557 " BNE loc_FF8AFAA4 \n"
558 " LDR R12, [R0, #0x88] \n"
559 " MOV R0, SP \n"
560 " MOV R2, R4 \n"
561 " MOV R1, #1 \n"
562 " BLX R12 \n"
563 " LDR R0, [SP, #0x1C] \n"
564 " MOV R2, SP \n"
565 " ADD R1, SP, #0x10 \n"
566 " BL sub_FF8AF474 \n"
567
568 "loc_FF8AFA90:\n"
569 " LDR R0, [SP, #0x1C] \n"
570 " LDR R2, [SP, #0xC] \n"
571 " MOV R1, R4 \n"
572 " BL sub_FF8AF700 \n"
573 " B loc_FF8AFD40 \n"
574
575 "loc_FF8AFAA4:\n"
576 " LDR R1, [R0, #0x7C] \n"
577 " LDR R12, [R0, #0x88] \n"
578 " ADD R0, R0, #4 \n"
579 " MOV R2, R4 \n"
580 " BLX R12 \n"
581 " B loc_FF8AFD40 \n"
582
583 "loc_FF8AFABC:\n"
584 " CMP R1, #0x20 \n"
585 " CMPNE R1, #0x21 \n"
586 " BNE loc_FF8AFB08 \n"
587 " LDR R1, [R0, #0x7C] \n"
588 " ADD R1, R1, R1, LSL#1 \n"
589 " ADD R1, R0, R1, LSL#2 \n"
590 " SUB R1, R1, #8 \n"
591 " LDMIA R1, {R2-R4} \n"
592 " STMIA R6, {R2-R4} \n"
593 " BL sub_FF8AD80C \n"
594 " LDR R0, [SP, #0x1C] \n"
595 " LDR R1, [R0, #0x7C] \n"
596 " LDR R3, [R0, #0x88] \n"
597 " LDR R2, [R0, #0x8C] \n"
598 " ADD R0, R0, #4 \n"
599 " BLX R3 \n"
600 " LDR R0, [SP, #0x1C] \n"
601 " BL sub_FF8ADAFC \n"
602 " B loc_FF8AFD40 \n"
603
604 "loc_FF8AFB08:\n"
605 " ADD R1, R0, #4 \n"
606 " LDMIA R1, {R2,R3,R12} \n"
607 " STMIA R6, {R2,R3,R12} \n"
608 " LDR R1, [R0] \n"
609 " CMP R1, #0x23 \n"
610 " ADDLS PC, PC, R1, LSL#2 \n"
611 " B loc_FF8AFD20 \n"
612 " B loc_FF8AFBB4 \n"
613 " B loc_FF8AFBB4 \n"
614 " B loc_FF8AFC08 \n"
615 " B loc_FF8AFC10 \n"
616 " B loc_FF8AFC10 \n"
617 " B loc_FF8AFC10 \n"
618 " B loc_FF8AFBB4 \n"
619 " B loc_FF8AFC08 \n"
620 " B loc_FF8AFC10 \n"
621 " B loc_FF8AFC10 \n"
622 " B loc_FF8AFC28 \n"
623 " B loc_FF8AFC28 \n"
624 " B loc_FF8AFD14 \n"
625 " B loc_FF8AFD1C \n"
626 " B loc_FF8AFD1C \n"
627 " B loc_FF8AFD1C \n"
628 " B loc_FF8AFD1C \n"
629 " B loc_FF8AFD20 \n"
630 " B loc_FF8AFD20 \n"
631 " B loc_FF8AFD20 \n"
632 " B loc_FF8AFD20 \n"
633 " B loc_FF8AFD20 \n"
634 " B loc_FF8AFC18 \n"
635 " B loc_FF8AFC20 \n"
636 " B loc_FF8AFC20 \n"
637 " B loc_FF8AFC34 \n"
638 " B loc_FF8AFC3C \n"
639 " B loc_FF8AFC6C \n"
640 " B loc_FF8AFC9C \n"
641 " B loc_FF8AFCCC \n"
642 " B loc_FF8AFCFC \n"
643 " B loc_FF8AFCFC \n"
644 " B loc_FF8AFD20 \n"
645 " B loc_FF8AFD20 \n"
646 " B loc_FF8AFD04 \n"
647 " B loc_FF8AFD0C \n"
648
649 "loc_FF8AFBB4:\n"
650 " BL sub_FF8AC70C \n"
651 " B loc_FF8AFD20 \n"
652
653
654 "loc_FF8AFC08:\n"
655 " BL sub_FF8AC994 \n"
656 " B loc_FF8AFD20 \n"
657
658 "loc_FF8AFC10:\n"
659 " BL sub_FF8ACB98 \n"
660 " B loc_FF8AFD20 \n"
661
662 "loc_FF8AFC18:\n"
663 " BL sub_FF8ACE00 \n"
664 " B loc_FF8AFD20 \n"
665
666 "loc_FF8AFC20:\n"
667 " BL sub_FF8ACFF4 \n"
668 " B loc_FF8AFD20 \n"
669
670 "loc_FF8AFC28:\n"
671 " BL sub_FF8AD258_my \n"
672 " MOV R4, #0 \n"
673 " B loc_FF8AFD20 \n"
674
675 "loc_FF8AFC34:\n"
676 " BL sub_FF8AD394 \n"
677 " B loc_FF8AFD20 \n"
678
679 "loc_FF8AFC3C:\n"
680 " LDRH R1, [R0, #4] \n"
681 " STRH R1, [SP, #0x10] \n"
682 " LDRH R1, [R5, #2] \n"
683 " STRH R1, [SP, #0x12] \n"
684 " LDRH R1, [R5, #4] \n"
685 " STRH R1, [SP, #0x14] \n"
686 " LDRH R1, [R5, #6] \n"
687 " STRH R1, [SP, #0x16] \n"
688 " LDRH R1, [R0, #0xC] \n"
689 " STRH R1, [SP, #0x18] \n"
690 " BL sub_FF8B0B0C \n"
691 " B loc_FF8AFD20 \n"
692
693 "loc_FF8AFC6C:\n"
694 " LDRH R1, [R0, #4] \n"
695 " STRH R1, [SP, #0x10] \n"
696 " LDRH R1, [R5, #2] \n"
697 " STRH R1, [SP, #0x12] \n"
698 " LDRH R1, [R5, #4] \n"
699 " STRH R1, [SP, #0x14] \n"
700 " LDRH R1, [R5, #6] \n"
701 " STRH R1, [SP, #0x16] \n"
702 " LDRH R1, [R5, #8] \n"
703 " STRH R1, [SP, #0x18] \n"
704 " BL sub_FF8B0C88 \n"
705 " B loc_FF8AFD20 \n"
706
707 "loc_FF8AFC9C:\n"
708 " LDRH R1, [R5] \n"
709 " STRH R1, [SP, #0x10] \n"
710 " LDRH R1, [R0, #6] \n"
711 " STRH R1, [SP, #0x12] \n"
712 " LDRH R1, [R5, #4] \n"
713 " STRH R1, [SP, #0x14] \n"
714 " LDRH R1, [R5, #6] \n"
715 " STRH R1, [SP, #0x16] \n"
716 " LDRH R1, [R5, #8] \n"
717 " STRH R1, [SP, #0x18] \n"
718 " BL sub_FF8B0D34 \n"
719 " B loc_FF8AFD20 \n"
720
721 "loc_FF8AFCCC:\n"
722 " LDRH R1, [R5] \n"
723 " STRH R1, [SP, #0x10] \n"
724 " LDRH R1, [R5, #2] \n"
725 " STRH R1, [SP, #0x12] \n"
726 " LDRH R1, [R5, #4] \n"
727 " STRH R1, [SP, #0x14] \n"
728 " LDRH R1, [R5, #6] \n"
729 " STRH R1, [SP, #0x16] \n"
730 " LDRH R1, [R0, #0xC] \n"
731 " STRH R1, [SP, #0x18] \n"
732 " BL sub_FF8B0DD4 \n"
733 " B loc_FF8AFD20 \n"
734
735 "loc_FF8AFCFC:\n"
736 " BL sub_FF8AD5EC \n"
737 " B loc_FF8AFD20 \n"
738
739 "loc_FF8AFD04:\n"
740 " BL sub_FF8ADC00 \n"
741 " B loc_FF8AFD20 \n"
742
743 "loc_FF8AFD0C:\n"
744 " BL sub_FF8ADE34 \n"
745 " B loc_FF8AFD20 \n"
746
747 "loc_FF8AFD14:\n"
748 " BL sub_FF8ADFAC \n"
749 " B loc_FF8AFD20 \n"
750
751 "loc_FF8AFD1C:\n"
752 " BL sub_FF8AE144 \n"
753
754 "loc_FF8AFD20:\n"
755 " LDR R0, [SP, #0x1C] \n"
756 " LDR R1, [R0, #0x7C] \n"
757 " LDR R3, [R0, #0x88] \n"
758 " LDR R2, [R0, #0x8C] \n"
759 " ADD R0, R0, #4 \n"
760 " BLX R3 \n"
761 " CMP R4, #1 \n"
762 " BNE loc_FF8AFD88 \n"
763
764 "loc_FF8AFD40:\n"
765 " LDR R0, [SP, #0x1C] \n"
766 " MOV R2, #0xC \n"
767 " LDR R1, [R0, #0x7C] \n"
768 " ADD R1, R1, R1, LSL#1 \n"
769 " ADD R0, R0, R1, LSL#2 \n"
770 " SUB R4, R0, #8 \n"
771 " LDR R0, =0x457AC \n"
772 " ADD R1, SP, #0x10 \n"
773 " BL sub_FFA919C0 \n"
774 " LDR R0, =0x457B8 \n"
775 " MOV R2, #0xC \n"
776 " ADD R1, SP, #0x10 \n"
777 " BL sub_FFA919C0 \n"
778 " LDR R0, =0x457C4 \n"
779 " MOV R2, #0xC \n"
780 " MOV R1, R4 \n"
781 " BL sub_FFA919C0 \n"
782 " B loc_FF8AFE00 \n"
783
784 "loc_FF8AFD88:\n"
785 " LDR R0, [SP, #0x1C] \n"
786 " LDR R0, [R0] \n"
787 " CMP R0, #0xB \n"
788 " BNE loc_FF8AFDD0 \n"
789 " MOV R3, #0 \n"
790 " STR R3, [SP] \n"
791 " MOV R3, #1 \n"
792 " MOV R2, #1 \n"
793 " MOV R1, #1 \n"
794 " MOV R0, #0 \n"
795 " BL sub_FF8AC514 \n"
796 " MOV R3, #0 \n"
797 " STR R3, [SP] \n"
798 " MOV R3, #1 \n"
799 " MOV R2, #1 \n"
800 " MOV R1, #1 \n"
801 " MOV R0, #0 \n"
802 " B loc_FF8AFDFC \n"
803
804 "loc_FF8AFDD0:\n"
805 " MOV R3, #1 \n"
806 " MOV R2, #1 \n"
807 " MOV R1, #1 \n"
808 " MOV R0, #1 \n"
809 " STR R3, [SP] \n"
810 " BL sub_FF8AC514 \n"
811 " MOV R3, #1 \n"
812 " MOV R2, #1 \n"
813 " MOV R1, #1 \n"
814 " MOV R0, #1 \n"
815 " STR R3, [SP] \n"
816
817 "loc_FF8AFDFC:\n"
818 " BL sub_FF8AC654 \n"
819
820 "loc_FF8AFE00:\n"
821 " LDR R0, [SP, #0x1C] \n"
822 " BL sub_FF8B0A98 \n"
823 " B loc_FF8AF7D0 \n"
824 );
825 }
826
827
828
829 void __attribute__((naked,noinline)) sub_FF8AD258_my() {
830 asm volatile (
831 " STMFD SP!, {R4-R8,LR} \n"
832 " LDR R7, =0x6E88 \n"
833 " MOV R4, R0 \n"
834 " LDR R0, [R7, #0x1C] \n"
835 " MOV R1, #0x3E \n"
836 " BL sub_FF828E88 /*_ClearEventFlag*/ \n"
837 " LDRSH R0, [R4, #4] \n"
838 " MOV R2, #0 \n"
839 " MOV R1, #0 \n"
840 " BL sub_FF8AC2A8 \n"
841 " MOV R6, R0 \n"
842 " LDRSH R0, [R4, #6] \n"
843 " BL sub_FF8AC3B4 \n"
844 " LDRSH R0, [R4, #8] \n"
845 " BL sub_FF8AC40C \n"
846 " LDRSH R0, [R4, #0xA] \n"
847 " BL sub_FF8AC464 \n"
848 " LDRSH R0, [R4, #0xC] \n"
849 " BL sub_FF8AC4BC \n"
850 " MOV R5, R0 \n"
851 " LDR R0, [R4] \n"
852 " LDR R8, =0x457C4 \n"
853 " CMP R0, #0xB \n"
854 " MOVEQ R6, #0 \n"
855 " MOVEQ R5, #0 \n"
856 " BEQ loc_FF8AD2E8 \n"
857 " CMP R6, #1 \n"
858 " BNE loc_FF8AD2E8 \n"
859 " LDRSH R0, [R4, #4] \n"
860 " LDR R1, =0xFF8AC204 \n"
861 " MOV R2, #2 \n"
862 " BL sub_FF927414 \n"
863 " STRH R0, [R4, #4] \n"
864 " MOV R0, #0 \n"
865 " STR R0, [R7, #0x28] \n"
866 " B loc_FF8AD2F0 \n"
867
868 "loc_FF8AD2E8:\n"
869 " LDRH R0, [R8] \n"
870 " STRH R0, [R4, #4] \n"
871
872 "loc_FF8AD2F0:\n"
873 " CMP R5, #1 \n"
874 " LDRNEH R0, [R8, #8] \n"
875 " BNE loc_FF8AD30C \n"
876 " LDRSH R0, [R4, #0xC] \n"
877 " LDR R1, =0xFF8AC298 \n"
878 " MOV R2, #0x20 \n"
879 " BL sub_FF8B0AC8 \n"
880
881 "loc_FF8AD30C:\n"
882 " STRH R0, [R4, #0xC] \n"
883 " LDRSH R0, [R4, #6] \n"
884 " BL sub_FF891504_my \n"
885 " LDR PC, =0xFF8AD318 \n"
886 );
887 }
888
889
890
891 void __attribute__((naked,noinline)) sub_FF891504_my() {
892 asm volatile (
893 " STMFD SP!, {R4-R6,LR} \n"
894 " LDR R5, =0x6964 \n"
895 " MOV R4, R0 \n"
896 " LDR R0, [R5, #4] \n"
897 " CMP R0, #1 \n"
898 " MOVNE R1, #0x16C \n"
899 " LDRNE R0, =0xFF89129C /*'Shutter.c'*/ \n"
900 " BLNE _DebugAssert \n"
901 " CMN R4, #0xC00 \n"
902 " LDREQSH R4, [R5, #2] \n"
903 " CMN R4, #0xC00 \n"
904 " LDREQ R1, =0x172 \n"
905 " LDREQ R0, =0xFF89129C /*'Shutter.c'*/ \n"
906 " STRH R4, [R5, #2] \n"
907 " BLEQ _DebugAssert \n"
908 " MOV R0, R4 \n"
909 " BL apex2us \n"
910 " MOV R4, R0 \n"
911
912 " MOV R0, R4 \n"
913 " BL sub_FF8C3398 \n"
914 " TST R0, #1 \n"
915 " LDRNE R1, =0x177 \n"
916 " LDMNEFD SP!, {R4-R6,LR} \n"
917 " LDRNE R0, =0xFF89129C /*'Shutter.c'*/ \n"
918 " BNE _DebugAssert \n"
919 " LDMFD SP!, {R4-R6,PC} \n"
920 );
921 }