This source file includes following definitions.
- capt_seq_task
- sub_FF944478_my
- sub_FF860CEC_my
- exp_drv_task
- sub_FF8B6670_my
- sub_FF897408_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, =0x1E454 \n"
18 " LDR R5, =0x583C \n"
19 " MOV R9, #1 \n"
20 " MOV R7, #0 \n"
21
22 "loc_FF861224:\n"
23 " LDR R0, [R5, #0x14] \n"
24 " MOV R2, #0 \n"
25 " MOV R1, SP \n"
26 " BL sub_FF829FB0 /*_ReceiveMessageQueue*/ \n"
27 " TST R0, #1 \n"
28 " BEQ loc_FF861250 \n"
29 " LDR R1, =0x43F \n"
30 " LDR R0, =0xFF860C6C /*'SsShootTask.c'*/ \n"
31 " BL _DebugAssert \n"
32 " BL _ExitTask \n"
33 " LDMFD SP!, {R3-R9,PC} \n"
34
35 "loc_FF861250:\n"
36 " LDR R0, [SP] \n"
37 " LDR R1, [R0] \n"
38 " CMP R1, #0x1C \n"
39 " ADDLS PC, PC, R1, LSL#2 \n"
40 " B loc_FF8614AC \n"
41 " B loc_FF8612D8 \n"
42 " B loc_FF861348 \n"
43 " B loc_FF861350 \n"
44 " B loc_FF861368 \n"
45 " B loc_FF86135C \n"
46 " B loc_FF861370 \n"
47 " B loc_FF861378 \n"
48 " B loc_FF861380 \n"
49 " B loc_FF8613D8 \n"
50 " B loc_FF8613E4 \n"
51 " B loc_FF8613EC \n"
52 " B loc_FF8613F4 \n"
53 " B loc_FF8613FC \n"
54 " B loc_FF861404 \n"
55 " B loc_FF86140C \n"
56 " B loc_FF861414 \n"
57 " B loc_FF86141C \n"
58 " B loc_FF861424 \n"
59 " B loc_FF86142C \n"
60 " B loc_FF861434 \n"
61 " B loc_FF86143C \n"
62 " B loc_FF861444 \n"
63 " B loc_FF861450 \n"
64 " B loc_FF86145C \n"
65 " B loc_FF861464 \n"
66 " B loc_FF861494 \n"
67 " B loc_FF86149C \n"
68 " B loc_FF8614A4 \n"
69 " B loc_FF8614B8 \n"
70
71 "loc_FF8612D8:\n"
72 " BL sub_FF942484 \n"
73 " BL shooting_expo_param_override\n"
74 " BL sub_FF85F050 \n"
75 " LDR R0, [R6, #0x24] \n"
76 " CMP R0, #0 \n"
77 " BEQ loc_FF8614B8 \n"
78 " BL sub_FF860938 \n"
79 " MOV R4, R0 \n"
80 " LDR R0, [R6, #0x24] \n"
81 " CMP R0, #0 \n"
82 " BEQ loc_FF861320 \n"
83 " MOV R0, #0xC \n"
84 " BL sub_FF86499C \n"
85 " TST R0, #1 \n"
86 " STRNE R9, [R5, #4] \n"
87 " LDRNE R0, [R4, #8] \n"
88 " ORRNE R0, R0, #0x40000000 \n"
89 " STRNE R0, [R4, #8] \n"
90 " BNE loc_FF8614B8 \n"
91
92 "loc_FF861320:\n"
93 " MOV R0, R4 \n"
94 " BL sub_FF943F20 \n"
95 " BL sub_FF957CCC \n"
96 " BL sub_FF86F8F8 \n"
97 " STR R0, [R4, #0x14] \n"
98 " MOV R0, R4 \n"
99 " BL sub_FF944478_my \n"
100 " BL capt_seq_hook_raw_here \n"
101 " TST R0, #1 \n"
102 " STRNE R9, [R5, #4] \n"
103 " B loc_FF8614B8 \n"
104
105 "loc_FF861348:\n"
106 " BL sub_FF860CEC_my \n"
107 " B loc_FF861360 \n"
108
109 "loc_FF861350:\n"
110 " MOV R0, #1 \n"
111 " BL sub_FF942684 \n"
112 " B loc_FF8614B8 \n"
113
114 "loc_FF86135C:\n"
115 " BL sub_FF942180 \n"
116
117 "loc_FF861360:\n"
118 " STR R7, [R6, #0x24] \n"
119 " B loc_FF8614B8 \n"
120
121 "loc_FF861368:\n"
122 " BL sub_FF942418 \n"
123 " B loc_FF861360 \n"
124
125 "loc_FF861370:\n"
126 " BL sub_FF942420 \n"
127 " B loc_FF8614B8 \n"
128
129 "loc_FF861378:\n"
130 " BL sub_FF942574 \n"
131 " B loc_FF8613DC \n"
132
133 "loc_FF861380:\n"
134 " LDR R4, [R0, #0xC] \n"
135 " BL sub_FF942428 \n"
136 " MOV R0, R4 \n"
137 " BL sub_FF942FB8 \n"
138 " TST R0, #1 \n"
139 " MOV R8, R0 \n"
140 " BNE loc_FF8613C0 \n"
141 " BL sub_FF86F8F8 \n"
142 " STR R0, [R4, #0x14] \n"
143 " MOV R0, R4 \n"
144 " BL sub_FF944390 \n"
145 " MOV R0, R4 \n"
146 " BL sub_FF944984 \n"
147 " MOV R8, R0 \n"
148 " LDR R0, [R4, #0x14] \n"
149 " BL sub_FF86FB0C \n"
150
151 "loc_FF8613C0:\n"
152 " BL sub_FF942418 \n"
153 " MOV R2, R4 \n"
154 " MOV R1, #8 \n"
155 " MOV R0, R8 \n"
156 " BL sub_FF85F620 \n"
157 " B loc_FF8614B8 \n"
158
159 "loc_FF8613D8:\n"
160 " BL sub_FF942600 \n"
161
162 "loc_FF8613DC:\n"
163 " BL sub_FF85F050 \n"
164 " B loc_FF8614B8 \n"
165
166 "loc_FF8613E4:\n"
167 " BL sub_FF942418 \n"
168 " B loc_FF8614B8 \n"
169
170 "loc_FF8613EC:\n"
171 " BL sub_FF943230 \n"
172 " B loc_FF8614B8 \n"
173
174 "loc_FF8613F4:\n"
175 " BL sub_FF94342C \n"
176 " B loc_FF8614B8 \n"
177
178 "loc_FF8613FC:\n"
179 " BL sub_FF9434C0 \n"
180 " B loc_FF8614B8 \n"
181
182 "loc_FF861404:\n"
183 " BL sub_FF9435E8 \n"
184 " B loc_FF8614B8 \n"
185
186 "loc_FF86140C:\n"
187 " BL sub_FF94369C \n"
188 " B loc_FF8614B8 \n"
189
190 "loc_FF861414:\n"
191 " BL sub_FF943A70 \n"
192 " B loc_FF8614B8 \n"
193
194 "loc_FF86141C:\n"
195 " BL sub_FF943AC0 \n"
196 " B loc_FF8614B8 \n"
197
198 "loc_FF861424:\n"
199 " MOV R0, #0 \n"
200 " B loc_FF861448 \n"
201
202 "loc_FF86142C:\n"
203 " BL sub_FF943C64 \n"
204 " B loc_FF8614B8 \n"
205
206 "loc_FF861434:\n"
207 " BL sub_FF943CF8 \n"
208 " B loc_FF8614B8 \n"
209
210 "loc_FF86143C:\n"
211 " BL sub_FF943DB8 \n"
212 " B loc_FF8614B8 \n"
213
214 "loc_FF861444:\n"
215 " MOV R0, #1 \n"
216
217 "loc_FF861448:\n"
218 " BL sub_FF943B24 \n"
219 " B loc_FF8614B8 \n"
220
221 "loc_FF861450:\n"
222 " BL sub_FF942820 \n"
223 " BL sub_FF8615D0 \n"
224 " B loc_FF8614B8 \n"
225
226 "loc_FF86145C:\n"
227 " BL sub_FF943914 \n"
228 " B loc_FF8614B8 \n"
229
230 "loc_FF861464:\n"
231 " MOV R2, #2 \n"
232 " ADD R1, R6, #0x58 \n"
233 " MOV R0, #0x6F \n"
234 " BL _GetPropertyCase \n"
235 " TST R0, #1 \n"
236 " LDRNE R1, =0x502 \n"
237 " LDRNE R0, =0xFF860C6C /*'SsShootTask.c'*/ \n"
238 " BLNE _DebugAssert \n"
239 " LDRH R0, [R6, #0x58] \n"
240 " CMP R0, #1 \n"
241 " BLEQ sub_FF943908 \n"
242 " B loc_FF8614B8 \n"
243
244 "loc_FF861494:\n"
245 " BL sub_FF9439D8 \n"
246 " B loc_FF8614B8 \n"
247
248 "loc_FF86149C:\n"
249 " BL sub_FF860BD0 \n"
250 " B loc_FF8614B8 \n"
251
252 "loc_FF8614A4:\n"
253 " BL sub_FF826210 \n"
254 " B loc_FF8614B8 \n"
255
256 "loc_FF8614AC:\n"
257 " LDR R1, =0x523 \n"
258 " LDR R0, =0xFF860C6C /*'SsShootTask.c'*/ \n"
259 " BL _DebugAssert \n"
260
261 "loc_FF8614B8:\n"
262 " LDR R0, [SP] \n"
263 " LDR R1, [R0, #4] \n"
264 " LDR R0, [R5, #0x10] \n"
265 " BL sub_FF829D2C /*_SetEventFlag*/ \n"
266 " LDR R4, [SP] \n"
267 " LDR R0, [R4, #8] \n"
268 " CMP R0, #0 \n"
269 " LDREQ R0, =0xFF860C6C /*'SsShootTask.c'*/ \n"
270 " MOVEQ R1, #0xFC \n"
271 " BLEQ _DebugAssert \n"
272 " STR R7, [R4, #8] \n"
273 " B loc_FF861224 \n"
274 );
275 }
276
277
278
279 void __attribute__((naked,noinline)) sub_FF944478_my() {
280 asm volatile (
281 " STMFD SP!, {R0-R10,LR} \n"
282 " MOV R6, #0 \n"
283 " MOV R4, R0 \n"
284 " BL sub_FF94503C \n"
285 " MVN R1, #0 \n"
286 " BL sub_FF829D60 /*_ClearEventFlag*/ \n"
287 " MOV R2, #4 \n"
288 " ADD R1, SP, #8 \n"
289 " MOV R0, #0x8A \n"
290 " BL _GetPropertyCase \n"
291 " TST R0, #1 \n"
292 " LDRNE R1, =0x20A \n"
293 " LDRNE R0, =0xFF944680 /*'SsCaptureSeq.c'*/ \n"
294 " BLNE _DebugAssert \n"
295 " LDR R8, =0x1E508 \n"
296 " LDR R5, =0x1E454 \n"
297 " LDRSH R1, [R8, #0xE] \n"
298 " LDR R0, [R5, #0x7C] \n"
299
300 " BL _GetCCDTemperature \n"
301 " LDR R2, =0xE61C \n"
302 " ADD R3, R4, #0x8C \n"
303 " STRH R0, [R4, #0x88] \n"
304 " STRD R2, [SP] \n"
305 " MOV R1, R0 \n"
306 " LDRH R0, [R5, #0x54] \n"
307 " LDRSH R2, [R8, #0xC] \n"
308 " LDR R3, =0xE618 \n"
309 " BL sub_FF945530 \n"
310 " BL wait_until_remote_button_is_released\n"
311 " BL capt_seq_hook_set_nr\n"
312 " LDR PC, =0xFF9444EC \n"
313 );
314 }
315
316
317
318 void __attribute__((naked,noinline)) sub_FF860CEC_my() {
319 asm volatile (
320 " STMFD SP!, {R3-R9,LR} \n"
321 " LDR R4, [R0, #0xC] \n"
322 " LDR R5, =0x1E454 \n"
323 " LDR R0, [R4, #8] \n"
324 " LDR R6, =0x820A \n"
325 " ORR R0, R0, #1 \n"
326 " STR R0, [R4, #8] \n"
327 " LDRH R0, [R5] \n"
328 " LDR R8, =0x583C \n"
329 " MOV R7, #0 \n"
330 " CMP R0, R6 \n"
331 " BEQ loc_FF860D90 \n"
332 " LDRH R0, [R5, #0x86] \n"
333 " CMP R0, #3 \n"
334 " BEQ loc_FF860DF0 \n"
335 " LDR R0, [R4, #0xC] \n"
336 " CMP R0, #1 \n"
337 " BLS loc_FF860D9C \n"
338 " LDRH R0, [R5, #0x84] \n"
339 " CMP R0, #0 \n"
340 " BNE loc_FF860DF0 \n"
341 " LDRH R0, [R5, #0x80] \n"
342 " CMP R0, #2 \n"
343 " BNE loc_FF860DA8 \n"
344 " BL sub_FF9428D4 \n"
345 " LDRH R0, [R5] \n"
346 " CMP R0, R6 \n"
347 " BEQ loc_FF860D90 \n"
348 " LDRH R0, [R5, #0x86] \n"
349 " CMP R0, #3 \n"
350 " BEQ loc_FF860DF0 \n"
351 " LDR R0, [R4, #0xC] \n"
352 " CMP R0, #1 \n"
353 " BLS loc_FF860D9C \n"
354 " LDRH R0, [R5, #0x84] \n"
355 " CMP R0, #0 \n"
356 " BNE loc_FF860DF0 \n"
357 " LDRH R0, [R5, #0x80] \n"
358 " CMP R0, #2 \n"
359 " BEQ loc_FF860DD4 \n"
360 " B loc_FF860DA8 \n"
361
362 "loc_FF860D90:\n"
363 " LDRH R0, [R5, #0x86] \n"
364 " CMP R0, #3 \n"
365 " BEQ loc_FF860DF0 \n"
366
367 "loc_FF860D9C:\n"
368 " LDRH R0, [R5, #0x84] \n"
369 " CMP R0, #0 \n"
370 " BNE loc_FF860DF0 \n"
371
372 "loc_FF860DA8:\n"
373 " LDRH R0, [R5, #0x80] \n"
374 " CMP R0, #1 \n"
375 " BNE loc_FF860DF0 \n"
376 " LDRH R0, [R5] \n"
377 " CMP R0, R6 \n"
378 " LDRNE R0, [R4, #0xC] \n"
379 " CMPNE R0, #1 \n"
380 " BLS loc_FF860DF0 \n"
381 " LDR R0, [R4, #0x10] \n"
382 " CMP R0, #1 \n"
383 " BNE loc_FF860DF0 \n"
384
385 "loc_FF860DD4:\n"
386 " LDR R3, =0x20D \n"
387 " LDR R2, =0xEA60 \n"
388 " STR R3, [SP] \n"
389 " LDR R0, [R8, #0x10] \n"
390 " LDR R3, =0xFF860C6C /*'SsShootTask.c'*/ \n"
391 " MOV R1, #0x40000000 \n"
392 " BL sub_FF864D24 \n"
393
394 "loc_FF860DF0:\n"
395 " BL sub_FF860BD0 \n"
396 " LDR R0, [R5, #0x24] \n"
397 " CMP R0, #0 \n"
398 " MOVEQ R0, #2 \n"
399 " BLEQ sub_FF85B94C \n"
400 " BL sub_FF942428 \n"
401 " LDR R0, [R5, #0x24] \n"
402 " CMP R0, #0 \n"
403 " BNE loc_FF860E60 \n"
404 " MOV R0, R4 \n"
405 " BL sub_FF943F20 \n"
406 " MOV R0, R4 \n"
407 " BL sub_FF942B90 \n"
408 " TST R0, #1 \n"
409 " MOVNE R2, R4 \n"
410 " LDMNEFD SP!, {R3-R9,LR} \n"
411 " MOVNE R1, #1 \n"
412 " BNE sub_FF85F620 \n"
413 " BL sub_FF957CCC \n"
414 " BL sub_FF86F8F8 \n"
415 " STR R0, [R4, #0x14] \n"
416 " MOV R0, R4 \n"
417 " BL sub_FF944390 \n"
418 " BL sub_FF944ED0 \n"
419 " MOV R0, R4 \n"
420 " BL sub_FF944478_my \n"
421 " MOV R7, R0 \n"
422 " BL capt_seq_hook_raw_here \n"
423 " B loc_FF860E6C \n"
424
425 "loc_FF860E60:\n"
426 " LDR R0, [R8, #4] \n"
427 " CMP R0, #0 \n"
428 " MOVNE R7, #0x1D \n"
429
430 "loc_FF860E6C:\n"
431 " MOV R2, R4 \n"
432 " MOV R1, #1 \n"
433 " MOV R0, R7 \n"
434 " BL sub_FF85F620 \n"
435 " BL sub_FF944924 \n"
436 " CMP R0, #0 \n"
437 " LDRNE R0, [R4, #8] \n"
438 " ORRNE R0, R0, #0x2000 \n"
439 " STRNE R0, [R4, #8] \n"
440 " LDRH R0, [R5, #0x86] \n"
441 " CMP R0, #3 \n"
442 " BEQ loc_FF860EB8 \n"
443 " LDRH R0, [R5, #0x84] \n"
444 " CMP R0, #0 \n"
445 " LDREQH R0, [R5, #0x80] \n"
446 " CMPEQ R0, #2 \n"
447 " MOVEQ R0, R4 \n"
448 " LDMEQFD SP!, {R3-R9,LR} \n"
449 " BEQ sub_FF942928 \n"
450
451 "loc_FF860EB8:\n"
452 " LDMFD SP!, {R3-R9,PC} \n"
453 );
454 }
455
456
457
458 void __attribute__((naked,noinline)) exp_drv_task() {
459 asm volatile (
460 " STMFD SP!, {R4-R8,LR} \n"
461 " SUB SP, SP, #0x20 \n"
462 " LDR R8, =0xBB8 \n"
463 " LDR R7, =0x7270 \n"
464 " LDR R5, =0x462E8 \n"
465 " MOV R0, #0 \n"
466 " ADD R6, SP, #0x10 \n"
467 " STR R0, [SP, #0xC] \n"
468
469 "loc_FF8B8BB0:\n"
470 " LDR R0, [R7, #0x20] \n"
471 " MOV R2, #0 \n"
472 " ADD R1, SP, #0x1C \n"
473 " BL sub_FF829FB0 /*_ReceiveMessageQueue*/ \n"
474 " LDR R0, [SP, #0xC] \n"
475 " CMP R0, #1 \n"
476 " BNE loc_FF8B8BF8 \n"
477 " LDR R0, [SP, #0x1C] \n"
478 " LDR R0, [R0] \n"
479 " CMP R0, #0x13 \n"
480 " CMPNE R0, #0x14 \n"
481 " CMPNE R0, #0x15 \n"
482 " BEQ loc_FF8B8D78 \n"
483 " CMP R0, #0x26 \n"
484 " BEQ loc_FF8B8CE4 \n"
485 " ADD R1, SP, #0xC \n"
486 " MOV R0, #0 \n"
487 " BL sub_FF8B8B40 \n"
488
489 "loc_FF8B8BF8:\n"
490 " LDR R0, [SP, #0x1C] \n"
491 " LDR R1, [R0] \n"
492 " CMP R1, #0x2B \n"
493 " BNE loc_FF8B8C28 \n"
494 " LDR R0, [SP, #0x1C] \n"
495 " BL sub_FF8B9E70 \n"
496 " LDR R0, [R7, #0x1C] \n"
497 " MOV R1, #1 \n"
498 " BL sub_FF829D2C /*_SetEventFlag*/ \n"
499 " BL _ExitTask \n"
500 " ADD SP, SP, #0x20 \n"
501 " LDMFD SP!, {R4-R8,PC} \n"
502
503 "loc_FF8B8C28:\n"
504 " CMP R1, #0x2A \n"
505 " BNE loc_FF8B8C44 \n"
506 " LDR R2, [R0, #0x88]! \n"
507 " LDR R1, [R0, #4] \n"
508 " MOV R0, R1 \n"
509 " BLX R2 \n"
510 " B loc_FF8B91DC \n"
511
512 "loc_FF8B8C44:\n"
513 " CMP R1, #0x24 \n"
514 " BNE loc_FF8B8C94 \n"
515 " LDR R0, [R7, #0x1C] \n"
516 " MOV R1, #0x80 \n"
517 " BL sub_FF829D60 /*_ClearEventFlag*/ \n"
518 " LDR R0, =0xFF8B562C \n"
519 " MOV R1, #0x80 \n"
520 " BL sub_FF9362DC \n"
521 " LDR R0, [R7, #0x1C] \n"
522 " MOV R2, R8 \n"
523 " MOV R1, #0x80 \n"
524 " BL sub_FF829C64 /*_WaitForAllEventFlag*/ \n"
525 " TST R0, #1 \n"
526 " LDRNE R1, =0xD07 \n"
527 " BNE loc_FF8B8D54 \n"
528
529 "loc_FF8B8C80:\n"
530 " LDR R1, [SP, #0x1C] \n"
531 " LDR R0, [R1, #0x8C] \n"
532 " LDR R1, [R1, #0x88] \n"
533 " BLX R1 \n"
534 " B loc_FF8B91DC \n"
535
536 "loc_FF8B8C94:\n"
537 " CMP R1, #0x25 \n"
538 " BNE loc_FF8B8CDC \n"
539 " ADD R1, SP, #0xC \n"
540 " BL sub_FF8B8B40 \n"
541 " LDR R0, [R7, #0x1C] \n"
542 " MOV R1, #0x100 \n"
543 " BL sub_FF829D60 /*_ClearEventFlag*/ \n"
544 " MOV R1, #0x100 \n"
545 " LDR R0, =0xFF8B563C \n"
546 " BL sub_FF936A9C \n"
547 " LDR R0, [R7, #0x1C] \n"
548 " MOV R2, R8 \n"
549 " MOV R1, #0x100 \n"
550 " BL sub_FF829C64 /*_WaitForAllEventFlag*/ \n"
551 " TST R0, #1 \n"
552 " BEQ loc_FF8B8C80 \n"
553 " LDR R1, =0xD11 \n"
554 " B loc_FF8B8D54 \n"
555
556 "loc_FF8B8CDC:\n"
557 " CMP R1, #0x26 \n"
558 " BNE loc_FF8B8CF4 \n"
559
560 "loc_FF8B8CE4:\n"
561 " LDR R0, [SP, #0x1C] \n"
562 " ADD R1, SP, #0xC \n"
563 " BL sub_FF8B8B40 \n"
564 " B loc_FF8B8C80 \n"
565
566 "loc_FF8B8CF4:\n"
567 " CMP R1, #0x27 \n"
568 " CMPNE R1, #0x28 \n"
569 " BNE loc_FF8B8D60 \n"
570 " ADD R1, SP, #0xC \n"
571 " BL sub_FF8B8B40 \n"
572 " LDR R4, [SP, #0x1C] \n"
573 " LDR R0, [R7, #0x1C] \n"
574 " MOV R1, #0x40 \n"
575 " BL sub_FF829D60 /*_ClearEventFlag*/ \n"
576 " LDR R0, [R4] \n"
577 " MOV R1, #0x40 \n"
578 " CMP R0, #0x27 \n"
579 " LDR R0, =0xFF8B56A0 \n"
580 " BNE loc_FF8B8D34 \n"
581 " BL sub_FF93637C \n"
582 " B loc_FF8B8D38 \n"
583
584 "loc_FF8B8D34:\n"
585 " BL sub_FF936408 \n"
586
587 "loc_FF8B8D38:\n"
588 " LDR R0, [R7, #0x1C] \n"
589 " MOV R2, R8 \n"
590 " MOV R1, #0x40 \n"
591 " BL sub_FF829C64 /*_WaitForAllEventFlag*/ \n"
592 " TST R0, #1 \n"
593 " BEQ loc_FF8B8C80 \n"
594 " LDR R1, =0xD1F \n"
595
596 "loc_FF8B8D54:\n"
597 " LDR R0, =0xFF8B5D3C /*'ExpDrv.c'*/ \n"
598 " BL _DebugAssert \n"
599 " B loc_FF8B8C80 \n"
600
601 "loc_FF8B8D60:\n"
602 " CMP R1, #0x29 \n"
603 " BNE loc_FF8B8D78 \n"
604 " BL sub_FF897664 \n"
605 " BL sub_FF8983E4 \n"
606 " BL sub_FF897EA4 \n"
607 " B loc_FF8B8C80 \n"
608
609 "loc_FF8B8D78:\n"
610 " LDR R0, [SP, #0x1C] \n"
611 " MOV R4, #1 \n"
612 " LDR R1, [R0] \n"
613 " CMP R1, #0x11 \n"
614 " CMPNE R1, #0x12 \n"
615 " BNE loc_FF8B8DE8 \n"
616 " LDR R1, [R0, #0x7C] \n"
617 " ADD R1, R1, R1, LSL#1 \n"
618 " ADD R1, R0, R1, LSL#2 \n"
619 " SUB R1, R1, #8 \n"
620 " LDMIA R1, {R2-R4} \n"
621 " STMIA R6, {R2-R4} \n"
622 " BL sub_FF8B76BC \n"
623 " LDR R0, [SP, #0x1C] \n"
624 " LDR R1, [R0, #0x7C] \n"
625 " LDR R3, [R0, #0x88] \n"
626 " LDR R2, [R0, #0x8C] \n"
627 " ADD R0, R0, #4 \n"
628 " BLX R3 \n"
629 " LDR R0, [SP, #0x1C] \n"
630 " BL sub_FF8BA244 \n"
631 " LDR R0, [SP, #0x1C] \n"
632 " LDR R1, [R0, #0x7C] \n"
633 " LDR R3, [R0, #0x90] \n"
634 " LDR R2, [R0, #0x94] \n"
635 " ADD R0, R0, #4 \n"
636 " BLX R3 \n"
637 " B loc_FF8B911C \n"
638
639 "loc_FF8B8DE8:\n"
640 " CMP R1, #0x13 \n"
641 " CMPNE R1, #0x14 \n"
642 " CMPNE R1, #0x15 \n"
643 " BNE loc_FF8B8E9C \n"
644 " ADD R3, SP, #0xC \n"
645 " MOV R2, SP \n"
646 " ADD R1, SP, #0x10 \n"
647 " BL sub_FF8B7904 \n"
648 " CMP R0, #1 \n"
649 " MOV R4, R0 \n"
650 " CMPNE R4, #5 \n"
651 " BNE loc_FF8B8E38 \n"
652 " LDR R0, [SP, #0x1C] \n"
653 " MOV R2, R4 \n"
654 " LDR R1, [R0, #0x7C]! \n"
655 " LDR R12, [R0, #0xC]! \n"
656 " LDR R3, [R0, #4] \n"
657 " MOV R0, SP \n"
658 " BLX R12 \n"
659 " B loc_FF8B8E70 \n"
660
661 "loc_FF8B8E38:\n"
662 " LDR R0, [SP, #0x1C] \n"
663 " CMP R4, #2 \n"
664 " LDR R3, [R0, #0x8C] \n"
665 " CMPNE R4, #6 \n"
666 " BNE loc_FF8B8E84 \n"
667 " LDR R12, [R0, #0x88] \n"
668 " MOV R0, SP \n"
669 " MOV R2, R4 \n"
670 " MOV R1, #1 \n"
671 " BLX R12 \n"
672 " LDR R0, [SP, #0x1C] \n"
673 " MOV R2, SP \n"
674 " ADD R1, SP, #0x10 \n"
675 " BL sub_FF8B888C \n"
676
677 "loc_FF8B8E70:\n"
678 " LDR R0, [SP, #0x1C] \n"
679 " LDR R2, [SP, #0xC] \n"
680 " MOV R1, R4 \n"
681 " BL sub_FF8B8AE0 \n"
682 " B loc_FF8B911C \n"
683
684 "loc_FF8B8E84:\n"
685 " LDR R1, [R0, #0x7C] \n"
686 " LDR R12, [R0, #0x88] \n"
687 " ADD R0, R0, #4 \n"
688 " MOV R2, R4 \n"
689 " BLX R12 \n"
690 " B loc_FF8B911C \n"
691
692 "loc_FF8B8E9C:\n"
693 " CMP R1, #0x20 \n"
694 " CMPNE R1, #0x21 \n"
695 " BNE loc_FF8B8EE8 \n"
696 " LDR R1, [R0, #0x7C] \n"
697 " ADD R1, R1, R1, LSL#1 \n"
698 " ADD R1, R0, R1, LSL#2 \n"
699 " SUB R1, R1, #8 \n"
700 " LDMIA R1, {R2-R4} \n"
701 " STMIA R6, {R2-R4} \n"
702 " BL sub_FF8B6C40 \n"
703 " LDR R0, [SP, #0x1C] \n"
704 " LDR R1, [R0, #0x7C] \n"
705 " LDR R3, [R0, #0x88] \n"
706 " LDR R2, [R0, #0x8C] \n"
707 " ADD R0, R0, #4 \n"
708 " BLX R3 \n"
709 " LDR R0, [SP, #0x1C] \n"
710 " BL sub_FF8B6F3C \n"
711 " B loc_FF8B911C \n"
712
713 "loc_FF8B8EE8:\n"
714 " ADD R1, R0, #4 \n"
715 " LDMIA R1, {R2,R3,R12} \n"
716 " STMIA R6, {R2,R3,R12} \n"
717 " LDR R1, [R0] \n"
718 " CMP R1, #0x23 \n"
719 " ADDLS PC, PC, R1, LSL#2 \n"
720 " B loc_FF8B90FC \n"
721 " B loc_FF8B8F94 \n"
722 " B loc_FF8B8F94 \n"
723 " B loc_FF8B8FE4 \n"
724 " B loc_FF8B8FEC \n"
725 " B loc_FF8B8FEC \n"
726 " B loc_FF8B8FEC \n"
727 " B loc_FF8B8F94 \n"
728 " B loc_FF8B8FE4 \n"
729 " B loc_FF8B8FEC \n"
730 " B loc_FF8B8FEC \n"
731 " B loc_FF8B9004 \n"
732 " B loc_FF8B9004 \n"
733 " B loc_FF8B90F0 \n"
734 " B loc_FF8B90F8 \n"
735 " B loc_FF8B90F8 \n"
736 " B loc_FF8B90F8 \n"
737 " B loc_FF8B90F8 \n"
738 " B loc_FF8B90FC \n"
739 " B loc_FF8B90FC \n"
740 " B loc_FF8B90FC \n"
741 " B loc_FF8B90FC \n"
742 " B loc_FF8B90FC \n"
743 " B loc_FF8B8FF4 \n"
744 " B loc_FF8B8FFC \n"
745 " B loc_FF8B8FFC \n"
746 " B loc_FF8B9010 \n"
747 " B loc_FF8B9018 \n"
748 " B loc_FF8B9048 \n"
749 " B loc_FF8B9078 \n"
750 " B loc_FF8B90A8 \n"
751 " B loc_FF8B90D8 \n"
752 " B loc_FF8B90D8 \n"
753 " B loc_FF8B90FC \n"
754 " B loc_FF8B90FC \n"
755 " B loc_FF8B90E0 \n"
756 " B loc_FF8B90E8 \n"
757
758 "loc_FF8B8F94:\n"
759 " BL sub_FF8B5B24 \n"
760 " B loc_FF8B90FC \n"
761
762
763 "loc_FF8B8FE4:\n"
764 " BL sub_FF8B5DAC \n"
765 " B loc_FF8B90FC \n"
766
767 "loc_FF8B8FEC:\n"
768 " BL sub_FF8B5FB0 \n"
769 " B loc_FF8B90FC \n"
770
771 "loc_FF8B8FF4:\n"
772 " BL sub_FF8B6218 \n"
773 " B loc_FF8B90FC \n"
774
775 "loc_FF8B8FFC:\n"
776 " BL sub_FF8B640C \n"
777 " B loc_FF8B90FC \n"
778
779 "loc_FF8B9004:\n"
780 " BL sub_FF8B6670_my \n"
781 " MOV R4, #0 \n"
782 " B loc_FF8B90FC \n"
783
784 "loc_FF8B9010:\n"
785 " BL sub_FF8B67AC \n"
786 " B loc_FF8B90FC \n"
787
788 "loc_FF8B9018:\n"
789 " LDRH R1, [R0, #4] \n"
790 " STRH R1, [SP, #0x10] \n"
791 " LDRH R1, [R5, #2] \n"
792 " STRH R1, [SP, #0x12] \n"
793 " LDRH R1, [R5, #4] \n"
794 " STRH R1, [SP, #0x14] \n"
795 " LDRH R1, [R5, #6] \n"
796 " STRH R1, [SP, #0x16] \n"
797 " LDRH R1, [R0, #0xC] \n"
798 " STRH R1, [SP, #0x18] \n"
799 " BL sub_FF8B9EE4 \n"
800 " B loc_FF8B90FC \n"
801
802 "loc_FF8B9048:\n"
803 " LDRH R1, [R0, #4] \n"
804 " STRH R1, [SP, #0x10] \n"
805 " LDRH R1, [R5, #2] \n"
806 " STRH R1, [SP, #0x12] \n"
807 " LDRH R1, [R5, #4] \n"
808 " STRH R1, [SP, #0x14] \n"
809 " LDRH R1, [R5, #6] \n"
810 " STRH R1, [SP, #0x16] \n"
811 " LDRH R1, [R5, #8] \n"
812 " STRH R1, [SP, #0x18] \n"
813 " BL sub_FF8BA060 \n"
814 " B loc_FF8B90FC \n"
815
816 "loc_FF8B9078:\n"
817 " LDRH R1, [R5] \n"
818 " STRH R1, [SP, #0x10] \n"
819 " LDRH R1, [R0, #6] \n"
820 " STRH R1, [SP, #0x12] \n"
821 " LDRH R1, [R5, #4] \n"
822 " STRH R1, [SP, #0x14] \n"
823 " LDRH R1, [R5, #6] \n"
824 " STRH R1, [SP, #0x16] \n"
825 " LDRH R1, [R5, #8] \n"
826 " STRH R1, [SP, #0x18] \n"
827 " BL sub_FF8BA10C \n"
828 " B loc_FF8B90FC \n"
829
830 "loc_FF8B90A8:\n"
831 " LDRH R1, [R5] \n"
832 " STRH R1, [SP, #0x10] \n"
833 " LDRH R1, [R5, #2] \n"
834 " STRH R1, [SP, #0x12] \n"
835 " LDRH R1, [R5, #4] \n"
836 " STRH R1, [SP, #0x14] \n"
837 " LDRH R1, [R5, #6] \n"
838 " STRH R1, [SP, #0x16] \n"
839 " LDRH R1, [R0, #0xC] \n"
840 " STRH R1, [SP, #0x18] \n"
841 " BL sub_FF8BA1AC \n"
842 " B loc_FF8B90FC \n"
843
844 "loc_FF8B90D8:\n"
845 " BL sub_FF8B6A04 \n"
846 " B loc_FF8B90FC \n"
847
848 "loc_FF8B90E0:\n"
849 " BL sub_FF8B7040 \n"
850 " B loc_FF8B90FC \n"
851
852 "loc_FF8B90E8:\n"
853 " BL sub_FF8B7274 \n"
854 " B loc_FF8B90FC \n"
855
856 "loc_FF8B90F0:\n"
857 " BL sub_FF8B73EC \n"
858 " B loc_FF8B90FC \n"
859
860 "loc_FF8B90F8:\n"
861 " BL sub_FF8B7584 \n"
862
863 "loc_FF8B90FC:\n"
864 " LDR R0, [SP, #0x1C] \n"
865 " LDR R1, [R0, #0x7C] \n"
866 " LDR R3, [R0, #0x88] \n"
867 " LDR R2, [R0, #0x8C] \n"
868 " ADD R0, R0, #4 \n"
869 " BLX R3 \n"
870 " CMP R4, #1 \n"
871 " BNE loc_FF8B9164 \n"
872
873 "loc_FF8B911C:\n"
874 " LDR R0, [SP, #0x1C] \n"
875 " MOV R2, #0xC \n"
876 " LDR R1, [R0, #0x7C] \n"
877 " ADD R1, R1, R1, LSL#1 \n"
878 " ADD R0, R0, R1, LSL#2 \n"
879 " SUB R4, R0, #8 \n"
880 " LDR R0, =0x462E8 \n"
881 " ADD R1, SP, #0x10 \n"
882 " BL sub_FFABD19C \n"
883 " LDR R0, =0x462F4 \n"
884 " MOV R2, #0xC \n"
885 " ADD R1, SP, #0x10 \n"
886 " BL sub_FFABD19C \n"
887 " LDR R0, =0x46300 \n"
888 " MOV R2, #0xC \n"
889 " MOV R1, R4 \n"
890 " BL sub_FFABD19C \n"
891 " B loc_FF8B91DC \n"
892
893 "loc_FF8B9164:\n"
894 " LDR R0, [SP, #0x1C] \n"
895 " LDR R0, [R0] \n"
896 " CMP R0, #0xB \n"
897 " BNE loc_FF8B91AC \n"
898 " MOV R3, #0 \n"
899 " STR R3, [SP] \n"
900 " MOV R3, #1 \n"
901 " MOV R2, #1 \n"
902 " MOV R1, #1 \n"
903 " MOV R0, #0 \n"
904 " BL sub_FF8B592C \n"
905 " MOV R3, #0 \n"
906 " STR R3, [SP] \n"
907 " MOV R3, #1 \n"
908 " MOV R2, #1 \n"
909 " MOV R1, #1 \n"
910 " MOV R0, #0 \n"
911 " B loc_FF8B91D8 \n"
912
913 "loc_FF8B91AC:\n"
914 " MOV R3, #1 \n"
915 " MOV R2, #1 \n"
916 " MOV R1, #1 \n"
917 " MOV R0, #1 \n"
918 " STR R3, [SP] \n"
919 " BL sub_FF8B592C \n"
920 " MOV R3, #1 \n"
921 " MOV R2, #1 \n"
922 " MOV R1, #1 \n"
923 " MOV R0, #1 \n"
924 " STR R3, [SP] \n"
925
926 "loc_FF8B91D8:\n"
927 " BL sub_FF8B5A6C \n"
928
929 "loc_FF8B91DC:\n"
930 " LDR R0, [SP, #0x1C] \n"
931 " BL sub_FF8B9E70 \n"
932 " B loc_FF8B8BB0 \n"
933 );
934 }
935
936
937
938 void __attribute__((naked,noinline)) sub_FF8B6670_my() {
939 asm volatile (
940 " STMFD SP!, {R4-R8,LR} \n"
941 " LDR R7, =0x7270 \n"
942 " MOV R4, R0 \n"
943 " LDR R0, [R7, #0x1C] \n"
944 " MOV R1, #0x3E \n"
945 " BL sub_FF829D60 /*_ClearEventFlag*/ \n"
946 " LDRSH R0, [R4, #4] \n"
947 " MOV R2, #0 \n"
948 " MOV R1, #0 \n"
949 " BL sub_FF8B56C0 \n"
950 " MOV R6, R0 \n"
951 " LDRSH R0, [R4, #6] \n"
952 " BL sub_FF8B57CC \n"
953 " LDRSH R0, [R4, #8] \n"
954 " BL sub_FF8B5824 \n"
955 " LDRSH R0, [R4, #0xA] \n"
956 " BL sub_FF8B587C \n"
957 " LDRSH R0, [R4, #0xC] \n"
958 " BL sub_FF8B58D4 \n"
959 " MOV R5, R0 \n"
960 " LDR R0, [R4] \n"
961 " LDR R8, =0x46300 \n"
962 " CMP R0, #0xB \n"
963 " MOVEQ R6, #0 \n"
964 " MOVEQ R5, #0 \n"
965 " BEQ loc_FF8B6700 \n"
966 " CMP R6, #1 \n"
967 " BNE loc_FF8B6700 \n"
968 " LDRSH R0, [R4, #4] \n"
969 " LDR R1, =0xFF8B561C \n"
970 " MOV R2, #2 \n"
971 " BL sub_FF936550 \n"
972 " STRH R0, [R4, #4] \n"
973 " MOV R0, #0 \n"
974 " STR R0, [R7, #0x28] \n"
975 " B loc_FF8B6708 \n"
976
977 "loc_FF8B6700:\n"
978 " LDRH R0, [R8] \n"
979 " STRH R0, [R4, #4] \n"
980
981 "loc_FF8B6708:\n"
982 " CMP R5, #1 \n"
983 " LDRNEH R0, [R8, #8] \n"
984 " BNE loc_FF8B6724 \n"
985 " LDRSH R0, [R4, #0xC] \n"
986 " LDR R1, =0xFF8B56B0 \n"
987 " MOV R2, #0x20 \n"
988 " BL sub_FF8B9EA0 \n"
989
990 "loc_FF8B6724:\n"
991 " STRH R0, [R4, #0xC] \n"
992 " LDRSH R0, [R4, #6] \n"
993 " BL sub_FF897408_my \n"
994 " LDR PC, =0xFF8B6730 \n"
995 );
996 }
997
998
999
1000 void __attribute__((naked,noinline)) sub_FF897408_my() {
1001 asm volatile (
1002 " STMFD SP!, {R4-R6,LR} \n"
1003 " LDR R5, =0x6C38 \n"
1004 " MOV R4, R0 \n"
1005 " LDR R0, [R5, #4] \n"
1006 " CMP R0, #1 \n"
1007 " MOVNE R1, #0x16C \n"
1008 " LDRNE R0, =0xFF8971A0 /*'Shutter.c'*/ \n"
1009 " BLNE _DebugAssert \n"
1010 " CMN R4, #0xC00 \n"
1011 " LDREQSH R4, [R5, #2] \n"
1012 " CMN R4, #0xC00 \n"
1013 " LDREQ R1, =0x172 \n"
1014 " LDREQ R0, =0xFF8971A0 /*'Shutter.c'*/ \n"
1015 " STRH R4, [R5, #2] \n"
1016 " BLEQ _DebugAssert \n"
1017 " MOV R0, R4 \n"
1018 " BL apex2us \n"
1019 " MOV R4, R0 \n"
1020
1021 " MOV R0, R4 \n"
1022 " BL sub_FF8CF8C0 \n"
1023 " TST R0, #1 \n"
1024 " LDRNE R1, =0x177 \n"
1025 " LDMNEFD SP!, {R4-R6,LR} \n"
1026 " LDRNE R0, =0xFF8971A0 /*'Shutter.c'*/ \n"
1027 " BNE _DebugAssert \n"
1028 " LDMFD SP!, {R4-R6,PC} \n"
1029 );
1030 }