This source file includes following definitions.
- capt_seq_task
- exp_drv_task
- sub_FF8C8310_my
- sub_FF8B84D0_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, =0x3D48C \n"
20 " LDR R7, =0x2E28 \n"
21 " MOV R6, #0 \n"
22
23 "loc_FF882930:\n"
24 " LDR R0, [R7, #4] \n"
25 " MOV R2, #0 \n"
26 " MOV R1, SP \n"
27 " BL sub_FF83B5B4 /*_ReceiveMessageQueue*/ \n"
28 " TST R0, #1 \n"
29 " BEQ loc_FF88295C \n"
30 " LDR R1, =0x476 \n"
31 " LDR R0, =0xFF882448 /*'SsShootTask.c'*/ \n"
32 " BL _DebugAssert \n"
33 " BL _ExitTask \n"
34 " LDMFD SP!, {R3-R9,PC} \n"
35
36 "loc_FF88295C:\n"
37 " LDR R0, [SP] \n"
38 " LDR R1, [R0] \n"
39 " CMP R1, #0x23 \n"
40 " ADDCC PC, PC, R1, LSL#2 \n"
41 " B loc_FF882BA0 \n"
42 " B loc_FF8829FC \n"
43 " B loc_FF882A14 \n"
44 " B loc_FF882A40 \n"
45 " B loc_FF882A54 \n"
46 " B loc_FF882A4C \n"
47 " B loc_FF882A60 \n"
48 " B loc_FF882A68 \n"
49 " B loc_FF882A70 \n"
50 " B loc_FF882A8C \n"
51 " B loc_FF882ACC \n"
52 " B loc_FF882A98 \n"
53 " B loc_FF882AA4 \n"
54 " B loc_FF882AAC \n"
55 " B loc_FF882AB4 \n"
56 " B loc_FF882ABC \n"
57 " B loc_FF882AC4 \n"
58 " B loc_FF882AD4 \n"
59 " B loc_FF882ADC \n"
60 " B loc_FF882AE4 \n"
61 " B loc_FF882AEC \n"
62 " B loc_FF882AF4 \n"
63 " B loc_FF882B00 \n"
64 " B loc_FF882B08 \n"
65 " B loc_FF882B10 \n"
66 " B loc_FF882B18 \n"
67 " B loc_FF882B20 \n"
68 " B loc_FF882B2C \n"
69 " B loc_FF882B34 \n"
70 " B loc_FF882B3C \n"
71 " B loc_FF882B44 \n"
72 " B loc_FF882B4C \n"
73 " B loc_FF882B54 \n"
74 " B loc_FF882B5C \n"
75 " B loc_FF882B68 \n"
76 " B loc_FF882BAC \n"
77
78 "loc_FF8829FC:\n"
79 " BL shooting_expo_iso_override\n"
80 " BL sub_FF88319C \n"
81 " BL shooting_expo_param_override\n"
82 " BL sub_FF8800A8 \n"
83 " MOV R0, #0\n"
84 " STR R0, [R5,#0x28]\n"
85
86
87
88 " B loc_FF882BAC \n"
89
90 "loc_FF882A14:\n"
91 " BL wait_until_remote_button_is_released\n"
92 " BL capt_seq_hook_set_nr\n"
93 " LDR R8, [R0, #0xC] \n"
94 " MOV R0, R8 \n"
95 " BL sub_FF98B018 \n"
96 " BL capt_seq_hook_raw_here\n"
97 " MOV R4, R0 \n"
98 " MOV R2, R8 \n"
99 " MOV R1, #1 \n"
100 " BL sub_FF880A98 \n"
101 " TST R4, #1 \n"
102 " MOVEQ R0, R8 \n"
103 " BLEQ sub_FF98AA38 \n"
104 " B loc_FF882BAC \n"
105
106 "loc_FF882A40:\n"
107 " MOV R0, #1 \n"
108 " BL sub_FF88347C \n"
109 " B loc_FF882BAC \n"
110
111 "loc_FF882A4C:\n"
112 " BL sub_FF882DD8 \n"
113 " B loc_FF882A58 \n"
114
115 "loc_FF882A54:\n"
116 " BL sub_FF88317C \n"
117
118 "loc_FF882A58:\n"
119 " STR R6, [R5, #0x28] \n"
120 " B loc_FF882BAC \n"
121
122 "loc_FF882A60:\n"
123 " BL sub_FF883184 \n"
124 " B loc_FF882BAC \n"
125
126 "loc_FF882A68:\n"
127 " BL sub_FF883370 \n"
128 " B loc_FF882A90 \n"
129
130 "loc_FF882A70:\n"
131 " LDR R4, [R0, #0xC] \n"
132 " MOV R0, R4 \n"
133 " BL sub_FF98B1DC \n"
134 " MOV R2, R4 \n"
135 " MOV R1, #9 \n"
136 " BL sub_FF880A98 \n"
137 " B loc_FF882BAC \n"
138
139 "loc_FF882A8C:\n"
140 " BL sub_FF8833E4 \n"
141
142 "loc_FF882A90:\n"
143 " BL sub_FF8800A8 \n"
144 " B loc_FF882BAC \n"
145
146 "loc_FF882A98:\n"
147 " LDR R0, [R5, #0x58] \n"
148 " BL sub_FF883B70 \n"
149 " B loc_FF882BAC \n"
150
151 "loc_FF882AA4:\n"
152 " BL sub_FF883E44 \n"
153 " B loc_FF882BAC \n"
154
155 "loc_FF882AAC:\n"
156 " BL sub_FF883EA8 \n"
157 " B loc_FF882BAC \n"
158
159 "loc_FF882AB4:\n"
160 " BL sub_FF8840A4 \n"
161 " B loc_FF882BAC \n"
162
163 "loc_FF882ABC:\n"
164 " BL sub_FF8844F4 \n"
165 " B loc_FF882BAC \n"
166
167 "loc_FF882AC4:\n"
168 " BL sub_FF8845A4 \n"
169 " B loc_FF882BAC \n"
170
171 "loc_FF882ACC:\n"
172 " BL sub_FF88317C \n"
173 " B loc_FF882BAC \n"
174
175 "loc_FF882AD4:\n"
176 " BL sub_FF989D5C \n"
177 " B loc_FF882BAC \n"
178
179 "loc_FF882ADC:\n"
180 " BL sub_FF989F70 \n"
181 " B loc_FF882BAC \n"
182
183 "loc_FF882AE4:\n"
184 " BL sub_FF98A014 \n"
185 " B loc_FF882BAC \n"
186
187 "loc_FF882AEC:\n"
188 " BL sub_FF98A0E4 \n"
189 " B loc_FF882BAC \n"
190
191 "loc_FF882AF4:\n"
192 " MOV R0, #0 \n"
193 " BL sub_FF98A354 \n"
194 " B loc_FF882BAC \n"
195
196 "loc_FF882B00:\n"
197 " BL sub_FF98A4BC \n"
198 " B loc_FF882BAC \n"
199
200 "loc_FF882B08:\n"
201 " BL sub_FF98A554 \n"
202 " B loc_FF882BAC \n"
203
204 "loc_FF882B10:\n"
205 " BL sub_FF98A634 \n"
206 " B loc_FF882BAC \n"
207
208 "loc_FF882B18:\n"
209 " BL sub_FF883648 \n"
210 " B loc_FF882BAC \n"
211
212 "loc_FF882B20:\n"
213 " BL sub_FF883688 \n"
214 " BL sub_FF8391DC \n"
215 " B loc_FF882BAC \n"
216
217 "loc_FF882B2C:\n"
218 " BL sub_FF98A1B0 \n"
219 " B loc_FF882BAC \n"
220
221 "loc_FF882B34:\n"
222 " BL sub_FF98A218 \n"
223 " B loc_FF882BAC \n"
224
225 "loc_FF882B3C:\n"
226 " BL sub_FF8869FC \n"
227 " B loc_FF882BAC \n"
228
229 "loc_FF882B44:\n"
230 " BL sub_FF886A80 \n"
231 " B loc_FF882BAC \n"
232
233 "loc_FF882B4C:\n"
234 " BL sub_FF98A76C \n"
235 " B loc_FF882BAC \n"
236
237 "loc_FF882B54:\n"
238 " BL sub_FF98A7D0 \n"
239 " B loc_FF882BAC \n"
240
241 "loc_FF882B5C:\n"
242 " BL sub_FF886ADC \n"
243 " BL sub_FF886A9C \n"
244 " B loc_FF882BAC \n"
245
246 "loc_FF882B68:\n"
247 " MOV R0, #1 \n"
248 " BL sub_FF98B9D0 \n"
249 " MOV R0, #1 \n"
250 " BL sub_FF98BB04 \n"
251 " LDRH R0, [R5, #0x98] \n"
252 " CMP R0, #4 \n"
253 " LDRNEH R0, [R5] \n"
254 " SUBNE R1, R0, #0x8200 \n"
255 " SUBNES R1, R1, #0x2A \n"
256 " BNE loc_FF882BAC \n"
257 " BL sub_FF886A80 \n"
258 " BL sub_FF8870A8 \n"
259 " BL sub_FF886F00 \n"
260 " B loc_FF882BAC \n"
261
262 "loc_FF882BA0:\n"
263 " LDR R1, =0x5D7 \n"
264 " LDR R0, =0xFF882448 /*'SsShootTask.c'*/ \n"
265 " BL _DebugAssert \n"
266
267 "loc_FF882BAC:\n"
268 " LDR R0, [SP] \n"
269 " LDR R1, [R0, #4] \n"
270 " LDR R0, [R7] \n"
271 " BL sub_FF88DBD8 /*_SetEventFlag*/ \n"
272 " LDR R4, [SP] \n"
273 " LDR R0, [R4, #8] \n"
274 " CMP R0, #0 \n"
275 " LDREQ R0, =0xFF882448 /*'SsShootTask.c'*/ \n"
276 " MOVEQ R1, #0x118 \n"
277 " BLEQ _DebugAssert \n"
278 " STR R6, [R4, #8] \n"
279 " B loc_FF882930 \n"
280 );
281 }
282
283
284
285 void __attribute__((naked,noinline)) exp_drv_task() {
286 asm volatile (
287 " STMFD SP!, {R4-R9,LR} \n"
288 " SUB SP, SP, #0x24 \n"
289 " LDR R6, =0x4238 \n"
290 " LDR R7, =0xBB8 \n"
291 " LDR R4, =0x58A54 \n"
292 " MOV R0, #0 \n"
293 " ADD R5, SP, #0x14 \n"
294 " STR R0, [SP, #0x10] \n"
295
296 "loc_FF8CBCDC:\n"
297 " LDR R0, [R6, #0x20] \n"
298 " MOV R2, #0 \n"
299 " ADD R1, SP, #0x20 \n"
300 " BL sub_FF83B5B4 /*_ReceiveMessageQueue*/ \n"
301 " LDR R0, [SP, #0x10] \n"
302 " CMP R0, #1 \n"
303 " BNE loc_FF8CBD28 \n"
304 " LDR R0, [SP, #0x20] \n"
305 " LDR R0, [R0] \n"
306 " CMP R0, #0x14 \n"
307 " CMPNE R0, #0x15 \n"
308 " CMPNE R0, #0x16 \n"
309 " CMPNE R0, #0x17 \n"
310 " BEQ loc_FF8CBE88 \n"
311 " CMP R0, #0x29 \n"
312 " BEQ loc_FF8CBE10 \n"
313 " ADD R1, SP, #0x10 \n"
314 " MOV R0, #0 \n"
315 " BL sub_FF8CBC6C \n"
316
317 "loc_FF8CBD28:\n"
318 " LDR R0, [SP, #0x20] \n"
319 " LDR R1, [R0] \n"
320 " CMP R1, #0x2F \n"
321 " BNE loc_FF8CBD54 \n"
322 " BL sub_FF8CD0F8 \n"
323 " LDR R0, [R6, #0x1C] \n"
324 " MOV R1, #1 \n"
325 " BL sub_FF88DBD8 /*_SetEventFlag*/ \n"
326 " BL _ExitTask \n"
327 " ADD SP, SP, #0x24 \n"
328 " LDMFD SP!, {R4-R9,PC} \n"
329
330 "loc_FF8CBD54:\n"
331 " CMP R1, #0x2E \n"
332 " BNE loc_FF8CBD70 \n"
333 " LDR R2, [R0, #0x8C]! \n"
334 " LDR R1, [R0, #4] \n"
335 " MOV R0, R1 \n"
336 " BLX R2 \n"
337 " B loc_FF8CC318 \n"
338
339 "loc_FF8CBD70:\n"
340 " CMP R1, #0x27 \n"
341 " BNE loc_FF8CBDC0 \n"
342 " LDR R0, [R6, #0x1C] \n"
343 " MOV R1, #0x80 \n"
344 " BL sub_FF88DC0C /*_ClearEventFlag*/ \n"
345 " LDR R0, =0xFF8C6E20 \n"
346 " MOV R1, #0x80 \n"
347 " BL sub_FF97C814 \n"
348 " LDR R0, [R6, #0x1C] \n"
349 " MOV R2, R7 \n"
350 " MOV R1, #0x80 \n"
351 " BL sub_FF88DB18 /*_WaitForAllEventFlag*/ \n"
352 " TST R0, #1 \n"
353 " LDRNE R1, =0x174F \n"
354 " BNE loc_FF8CBE7C \n"
355
356 "loc_FF8CBDAC:\n"
357 " LDR R1, [SP, #0x20] \n"
358 " LDR R0, [R1, #0x90] \n"
359 " LDR R1, [R1, #0x8C] \n"
360 " BLX R1 \n"
361 " B loc_FF8CC318 \n"
362
363 "loc_FF8CBDC0:\n"
364 " CMP R1, #0x28 \n"
365 " BNE loc_FF8CBE08 \n"
366 " ADD R1, SP, #0x10 \n"
367 " BL sub_FF8CBC6C \n"
368 " LDR R0, [R6, #0x1C] \n"
369 " MOV R1, #0x100 \n"
370 " BL sub_FF88DC0C /*_ClearEventFlag*/ \n"
371 " LDR R0, =0xFF8C6E30 \n"
372 " MOV R1, #0x100 \n"
373 " BL sub_FF97CACC \n"
374 " LDR R0, [R6, #0x1C] \n"
375 " MOV R2, R7 \n"
376 " MOV R1, #0x100 \n"
377 " BL sub_FF88DB18 /*_WaitForAllEventFlag*/ \n"
378 " TST R0, #1 \n"
379 " BEQ loc_FF8CBDAC \n"
380 " LDR R1, =0x1759 \n"
381 " B loc_FF8CBE7C \n"
382
383 "loc_FF8CBE08:\n"
384 " CMP R1, #0x29 \n"
385 " BNE loc_FF8CBE20 \n"
386
387 "loc_FF8CBE10:\n"
388 " LDR R0, [SP, #0x20] \n"
389 " ADD R1, SP, #0x10 \n"
390 " BL sub_FF8CBC6C \n"
391 " B loc_FF8CBDAC \n"
392
393 "loc_FF8CBE20:\n"
394 " CMP R1, #0x2C \n"
395 " BNE loc_FF8CBE38 \n"
396 " BL sub_FF8B8760 \n"
397 " BL sub_FF8B93D0 \n"
398 " BL sub_FF8B8F48 \n"
399 " B loc_FF8CBDAC \n"
400
401 "loc_FF8CBE38:\n"
402 " CMP R1, #0x2D \n"
403 " BNE loc_FF8CBE88 \n"
404 " LDR R0, [R6, #0x1C] \n"
405 " MOV R1, #4 \n"
406 " BL sub_FF88DC0C /*_ClearEventFlag*/ \n"
407 " LDR R1, =0xFF8C6E50 \n"
408 " LDR R0, =0xFFFFF400 \n"
409 " MOV R2, #4 \n"
410 " BL sub_FF8B81D4 \n"
411 " BL sub_FF8B8464 \n"
412 " LDR R0, [R6, #0x1C] \n"
413 " MOV R2, R7 \n"
414 " MOV R1, #4 \n"
415 " BL sub_FF88DA34 /*_WaitForAnyEventFlag*/ \n"
416 " TST R0, #1 \n"
417 " BEQ loc_FF8CBDAC \n"
418 " LDR R1, =0x1781 \n"
419
420 "loc_FF8CBE7C:\n"
421 " LDR R0, =0xFF8C75F4 /*'ExpDrv.c'*/ \n"
422 " BL _DebugAssert \n"
423 " B loc_FF8CBDAC \n"
424
425 "loc_FF8CBE88:\n"
426 " LDR R0, [SP, #0x20] \n"
427 " MOV R8, #1 \n"
428 " LDR R1, [R0] \n"
429 " CMP R1, #0x12 \n"
430 " CMPNE R1, #0x13 \n"
431 " BNE loc_FF8CBEF0 \n"
432 " LDR R1, [R0, #0x7C] \n"
433 " ADD R1, R1, R1, LSL#1 \n"
434 " ADD R1, R0, R1, LSL#2 \n"
435 " SUB R1, R1, #8 \n"
436 " LDMIA R1, {R2,R3,R9} \n"
437 " STMIA R5, {R2,R3,R9} \n"
438 " BL sub_FF8C9F20 \n"
439 " LDR R0, [SP, #0x20] \n"
440 " LDR R1, [R0, #0x7C] \n"
441 " LDR R3, [R0, #0x8C] \n"
442 " LDR R2, [R0, #0x90] \n"
443 " ADD R0, R0, #4 \n"
444 " BLX R3 \n"
445 " LDR R0, [SP, #0x20] \n"
446 " BL sub_FF8CD504 \n"
447 " LDR R0, [SP, #0x20] \n"
448 " LDR R1, [R0, #0x7C] \n"
449 " LDR R2, [R0, #0x98] \n"
450 " LDR R3, [R0, #0x94] \n"
451 " B loc_FF8CC204 \n"
452
453 "loc_FF8CBEF0:\n"
454 " CMP R1, #0x14 \n"
455 " CMPNE R1, #0x15 \n"
456 " CMPNE R1, #0x16 \n"
457 " CMPNE R1, #0x17 \n"
458 " BNE loc_FF8CBFA8 \n"
459 " ADD R3, SP, #0x10 \n"
460 " ADD R2, SP, #4 \n"
461 " ADD R1, SP, #0x14 \n"
462 " BL sub_FF8CA188 \n"
463 " CMP R0, #1 \n"
464 " MOV R9, R0 \n"
465 " CMPNE R9, #5 \n"
466 " BNE loc_FF8CBF44 \n"
467 " LDR R0, [SP, #0x20] \n"
468 " MOV R2, R9 \n"
469 " LDR R1, [R0, #0x7C]! \n"
470 " LDR R12, [R0, #0x10]! \n"
471 " LDR R3, [R0, #4] \n"
472 " ADD R0, SP, #4 \n"
473 " BLX R12 \n"
474 " B loc_FF8CBF7C \n"
475
476 "loc_FF8CBF44:\n"
477 " LDR R0, [SP, #0x20] \n"
478 " CMP R9, #2 \n"
479 " LDR R3, [R0, #0x90] \n"
480 " CMPNE R9, #6 \n"
481 " BNE loc_FF8CBF90 \n"
482 " LDR R12, [R0, #0x8C] \n"
483 " MOV R2, R9 \n"
484 " MOV R1, #1 \n"
485 " ADD R0, SP, #4 \n"
486 " BLX R12 \n"
487 " LDR R0, [SP, #0x20] \n"
488 " ADD R2, SP, #4 \n"
489 " ADD R1, SP, #0x14 \n"
490 " BL sub_FF8CB95C \n"
491
492 "loc_FF8CBF7C:\n"
493 " LDR R0, [SP, #0x20] \n"
494 " LDR R2, [SP, #0x10] \n"
495 " MOV R1, R9 \n"
496 " BL sub_FF8CBC0C \n"
497 " B loc_FF8CC20C \n"
498
499 "loc_FF8CBF90:\n"
500 " LDR R1, [R0, #0x7C] \n"
501 " LDR R12, [R0, #0x8C] \n"
502 " MOV R2, R9 \n"
503 " ADD R0, R0, #4 \n"
504 " BLX R12 \n"
505 " B loc_FF8CC20C \n"
506
507 "loc_FF8CBFA8:\n"
508 " CMP R1, #0x23 \n"
509 " CMPNE R1, #0x24 \n"
510 " BNE loc_FF8CBFF4 \n"
511 " LDR R1, [R0, #0x7C] \n"
512 " ADD R1, R1, R1, LSL#1 \n"
513 " ADD R1, R0, R1, LSL#2 \n"
514 " SUB R1, R1, #8 \n"
515 " LDMIA R1, {R2,R3,R9} \n"
516 " STMIA R5, {R2,R3,R9} \n"
517 " BL sub_FF8C8D28 \n"
518 " LDR R0, [SP, #0x20] \n"
519 " LDR R1, [R0, #0x7C] \n"
520 " LDR R3, [R0, #0x8C] \n"
521 " LDR R2, [R0, #0x90] \n"
522 " ADD R0, R0, #4 \n"
523 " BLX R3 \n"
524 " LDR R0, [SP, #0x20] \n"
525 " BL sub_FF8C91FC \n"
526 " B loc_FF8CC20C \n"
527
528 "loc_FF8CBFF4:\n"
529 " ADD R1, R0, #4 \n"
530 " LDMIA R1, {R2,R3,R9} \n"
531 " STMIA R5, {R2,R3,R9} \n"
532 " LDR R1, [R0] \n"
533 " CMP R1, #0x27 \n"
534 " ADDCC PC, PC, R1, LSL#2 \n"
535 " B loc_FF8CC1F4 \n"
536 " B loc_FF8CC0AC \n"
537 " B loc_FF8CC0AC \n"
538 " B loc_FF8CC0B4 \n"
539 " B loc_FF8CC0BC \n"
540 " B loc_FF8CC0BC \n"
541 " B loc_FF8CC0BC \n"
542 " B loc_FF8CC0AC \n"
543 " B loc_FF8CC0B4 \n"
544 " B loc_FF8CC0BC \n"
545 " B loc_FF8CC0BC \n"
546 " B loc_FF8CC0D4 \n"
547 " B loc_FF8CC0D4 \n"
548 " B loc_FF8CC1E0 \n"
549 " B loc_FF8CC1E8 \n"
550 " B loc_FF8CC1E8 \n"
551 " B loc_FF8CC1E8 \n"
552 " B loc_FF8CC1E8 \n"
553 " B loc_FF8CC1F0 \n"
554 " B loc_FF8CC1F4 \n"
555 " B loc_FF8CC1F4 \n"
556 " B loc_FF8CC1F4 \n"
557 " B loc_FF8CC1F4 \n"
558 " B loc_FF8CC1F4 \n"
559 " B loc_FF8CC1F4 \n"
560 " B loc_FF8CC0C4 \n"
561 " B loc_FF8CC0CC \n"
562 " B loc_FF8CC0CC \n"
563 " B loc_FF8CC0E0 \n"
564 " B loc_FF8CC0E0 \n"
565 " B loc_FF8CC0E8 \n"
566 " B loc_FF8CC120 \n"
567 " B loc_FF8CC158 \n"
568 " B loc_FF8CC190 \n"
569 " B loc_FF8CC1C8 \n"
570 " B loc_FF8CC1C8 \n"
571 " B loc_FF8CC1F4 \n"
572 " B loc_FF8CC1F4 \n"
573 " B loc_FF8CC1D0 \n"
574 " B loc_FF8CC1D8 \n"
575
576 "loc_FF8CC0AC:\n"
577 " BL sub_FF8C7424 \n"
578 " B loc_FF8CC1F4 \n"
579
580 "loc_FF8CC0B4:\n"
581 " BL sub_FF8C7720 \n"
582 " B loc_FF8CC1F4 \n"
583
584 "loc_FF8CC0BC:\n"
585 " BL sub_FF8C7988 \n"
586 " B loc_FF8CC1F4 \n"
587
588 "loc_FF8CC0C4:\n"
589 " BL sub_FF8C7C3C \n"
590 " B loc_FF8CC1F4 \n"
591
592 "loc_FF8CC0CC:\n"
593 " BL sub_FF8C7E54 \n"
594 " B loc_FF8CC1F4 \n"
595
596 "loc_FF8CC0D4:\n"
597 " BL sub_FF8C8310_my \n"
598 " MOV R8, #0 \n"
599 " B loc_FF8CC1F4 \n"
600
601 "loc_FF8CC0E0:\n"
602 " BL sub_FF8C84DC \n"
603 " B loc_FF8CC1F4 \n"
604
605 "loc_FF8CC0E8:\n"
606 " LDRH R1, [R0, #4] \n"
607 " STRH R1, [SP, #0x14] \n"
608 " LDRH R1, [R4, #2] \n"
609 " STRH R1, [SP, #0x16] \n"
610 " LDRH R1, [R4, #4] \n"
611 " STRH R1, [SP, #0x18] \n"
612 " LDRH R1, [R4, #6] \n"
613 " STRH R1, [SP, #0x1A] \n"
614 " LDRH R1, [R0, #0xC] \n"
615 " STRH R1, [SP, #0x1C] \n"
616 " LDRH R1, [R4, #0xA] \n"
617 " STRH R1, [SP, #0x1E] \n"
618 " BL sub_FF8CD18C \n"
619 " B loc_FF8CC1F4 \n"
620
621 "loc_FF8CC120:\n"
622 " LDRH R1, [R0, #4] \n"
623 " STRH R1, [SP, #0x14] \n"
624 " LDRH R1, [R4, #2] \n"
625 " STRH R1, [SP, #0x16] \n"
626 " LDRH R1, [R4, #4] \n"
627 " STRH R1, [SP, #0x18] \n"
628 " LDRH R1, [R4, #6] \n"
629 " STRH R1, [SP, #0x1A] \n"
630 " LDRH R1, [R4, #8] \n"
631 " STRH R1, [SP, #0x1C] \n"
632 " LDRH R1, [R4, #0xA] \n"
633 " STRH R1, [SP, #0x1E] \n"
634 " BL sub_FF8CD304 \n"
635 " B loc_FF8CC1F4 \n"
636
637 "loc_FF8CC158:\n"
638 " LDRH R1, [R4] \n"
639 " STRH R1, [SP, #0x14] \n"
640 " LDRH R1, [R0, #6] \n"
641 " STRH R1, [SP, #0x16] \n"
642 " LDRH R1, [R4, #4] \n"
643 " STRH R1, [SP, #0x18] \n"
644 " LDRH R1, [R4, #6] \n"
645 " STRH R1, [SP, #0x1A] \n"
646 " LDRH R1, [R4, #8] \n"
647 " STRH R1, [SP, #0x1C] \n"
648 " LDRH R1, [R4, #0xA] \n"
649 " STRH R1, [SP, #0x1E] \n"
650 " BL sub_FF8CD3B8 \n"
651 " B loc_FF8CC1F4 \n"
652
653 "loc_FF8CC190:\n"
654 " LDRH R1, [R4] \n"
655 " STRH R1, [SP, #0x14] \n"
656 " LDRH R1, [R4, #2] \n"
657 " STRH R1, [SP, #0x16] \n"
658 " LDRH R1, [R4, #4] \n"
659 " STRH R1, [SP, #0x18] \n"
660 " LDRH R1, [R4, #6] \n"
661 " STRH R1, [SP, #0x1A] \n"
662 " LDRH R1, [R0, #0xC] \n"
663 " STRH R1, [SP, #0x1C] \n"
664 " LDRH R1, [R4, #0xA] \n"
665 " STRH R1, [SP, #0x1E] \n"
666 " BL sub_FF8CD460 \n"
667 " B loc_FF8CC1F4 \n"
668
669 "loc_FF8CC1C8:\n"
670 " BL sub_FF8C8B1C \n"
671 " B loc_FF8CC1F4 \n"
672
673 "loc_FF8CC1D0:\n"
674 " BL sub_FF8C9300 \n"
675 " B loc_FF8CC1F4 \n"
676
677 "loc_FF8CC1D8:\n"
678 " BL sub_FF8C980C \n"
679 " B loc_FF8CC1F4 \n"
680
681 "loc_FF8CC1E0:\n"
682 " BL sub_FF8C99EC \n"
683 " B loc_FF8CC1F4 \n"
684
685 "loc_FF8CC1E8:\n"
686 " BL sub_FF8C9BA8 \n"
687 " B loc_FF8CC1F4 \n"
688
689 "loc_FF8CC1F0:\n"
690 " BL sub_FF8C9D18 \n"
691
692 "loc_FF8CC1F4:\n"
693 " LDR R0, [SP, #0x20] \n"
694 " LDR R1, [R0, #0x7C] \n"
695 " LDR R2, [R0, #0x90] \n"
696 " LDR R3, [R0, #0x8C] \n"
697
698 "loc_FF8CC204:\n"
699 " ADD R0, R0, #4 \n"
700 " BLX R3 \n"
701
702 "loc_FF8CC20C:\n"
703 " LDR R1, [SP, #0x20] \n"
704 " LDR R0, [R1] \n"
705 " CMP R0, #0x10 \n"
706 " BEQ loc_FF8CC244 \n"
707 " BGT loc_FF8CC234 \n"
708 " CMP R0, #1 \n"
709 " CMPNE R0, #4 \n"
710 " CMPNE R0, #0xE \n"
711 " BNE loc_FF8CC254 \n"
712 " B loc_FF8CC244 \n"
713
714 "loc_FF8CC234:\n"
715 " CMP R0, #0x13 \n"
716 " CMPNE R0, #0x17 \n"
717 " CMPNE R0, #0x1A \n"
718 " BNE loc_FF8CC254 \n"
719
720 "loc_FF8CC244:\n"
721 " LDRH R0, [R4] \n"
722 " STRH R0, [SP, #0x14] \n"
723 " LDRH R0, [R4, #8] \n"
724 " STRH R0, [SP, #0x1C] \n"
725
726 "loc_FF8CC254:\n"
727 " CMP R8, #1 \n"
728 " BNE loc_FF8CC2A0 \n"
729 " LDR R0, [R1, #0x7C] \n"
730 " MOV R2, #0xC \n"
731 " ADD R0, R0, R0, LSL#1 \n"
732 " ADD R0, R1, R0, LSL#2 \n"
733 " SUB R8, R0, #8 \n"
734 " LDR R0, =0x58A54 \n"
735 " ADD R1, SP, #0x14 \n"
736 " BL sub_FFB9C378 \n"
737 " LDR R0, =0x58A60 \n"
738 " MOV R2, #0xC \n"
739 " ADD R1, SP, #0x14 \n"
740 " BL sub_FFB9C378 \n"
741 " LDR R0, =0x58A6C \n"
742 " MOV R2, #0xC \n"
743 " MOV R1, R8 \n"
744 " BL sub_FFB9C378 \n"
745 " B loc_FF8CC318 \n"
746
747 "loc_FF8CC2A0:\n"
748 " LDR R0, [R1] \n"
749 " MOV R3, #1 \n"
750 " CMP R0, #0xB \n"
751 " BNE loc_FF8CC2E4 \n"
752 " MOV R2, #0 \n"
753 " STRD R2, [SP] \n"
754 " MOV R2, R3 \n"
755 " MOV R1, R3 \n"
756 " MOV R0, #0 \n"
757 " BL sub_FF8C7204 \n"
758 " MOV R3, #1 \n"
759 " MOV R2, #0 \n"
760 " STRD R2, [SP] \n"
761 " MOV R2, R3 \n"
762 " MOV R1, R3 \n"
763 " MOV R0, #0 \n"
764 " B loc_FF8CC314 \n"
765
766 "loc_FF8CC2E4:\n"
767 " MOV R2, #1 \n"
768 " STRD R2, [SP] \n"
769 " MOV R3, R2 \n"
770 " MOV R1, R2 \n"
771 " MOV R0, R2 \n"
772 " BL sub_FF8C7204 \n"
773 " MOV R3, #1 \n"
774 " MOV R2, R3 \n"
775 " MOV R1, R3 \n"
776 " MOV R0, R3 \n"
777 " STR R3, [SP] \n"
778 " STR R3, [SP, #4] \n"
779
780 "loc_FF8CC314:\n"
781 " BL sub_FF8C7370 \n"
782
783 "loc_FF8CC318:\n"
784 " LDR R0, [SP, #0x20] \n"
785 " BL sub_FF8CD0F8 \n"
786 " B loc_FF8CBCDC \n"
787 );
788 }
789
790
791
792 void __attribute__((naked,noinline)) sub_FF8C8310_my() {
793 asm volatile (
794 " STMFD SP!, {R4-R8,LR} \n"
795 " LDR R7, =0x4238 \n"
796 " MOV R4, R0 \n"
797 " LDR R0, [R7, #0x1C] \n"
798 " MOV R1, #0x3E \n"
799 " BL sub_FF88DC0C /*_ClearEventFlag*/ \n"
800 " MOV R2, #0 \n"
801 " LDRSH R0, [R4, #4] \n"
802 " MOV R1, R2 \n"
803 " BL sub_FF8C6EB0 \n"
804 " MOV R5, R0 \n"
805 " LDRSH R0, [R4, #6] \n"
806 " BL sub_FF8C7000 \n"
807 " LDRSH R0, [R4, #8] \n"
808 " BL sub_FF8C7058 \n"
809 " LDRSH R0, [R4, #0xA] \n"
810 " BL sub_FF8C70B0 \n"
811 " LDRSH R0, [R4, #0xC] \n"
812 " MOV R1, #0 \n"
813 " BL sub_FF8C7108 \n"
814 " MOV R6, R0 \n"
815 " LDRSH R0, [R4, #0xE] \n"
816 " BL sub_FF8CD128 \n"
817 " LDR R0, [R4] \n"
818 " LDR R8, =0x58A6C \n"
819 " CMP R0, #0xB \n"
820 " MOVEQ R5, #0 \n"
821 " MOVEQ R6, R5 \n"
822 " BEQ loc_FF8C83AC \n"
823 " CMP R5, #1 \n"
824 " BNE loc_FF8C83AC \n"
825 " LDRSH R0, [R4, #4] \n"
826 " LDR R1, =0xFF8C6E10 \n"
827 " MOV R2, #2 \n"
828 " BL sub_FF97C968 \n"
829 " STRH R0, [R4, #4] \n"
830 " MOV R0, #0 \n"
831 " STR R0, [R7, #0x28] \n"
832 " B loc_FF8C83B4 \n"
833
834 "loc_FF8C83AC:\n"
835 " LDRH R0, [R8] \n"
836 " STRH R0, [R4, #4] \n"
837
838 "loc_FF8C83B4:\n"
839 " CMP R6, #1 \n"
840 " LDRNEH R0, [R8, #8] \n"
841 " BNE loc_FF8C83D0 \n"
842 " LDRSH R0, [R4, #0xC] \n"
843 " LDR R1, =0xFF8C6E94 \n"
844 " MOV R2, #0x20 \n"
845 " BL sub_FF8CD148 \n"
846
847 "loc_FF8C83D0:\n"
848 " STRH R0, [R4, #0xC] \n"
849 " LDRSH R0, [R4, #6] \n"
850 " BL sub_FF8B84D0_my \n"
851 " LDR PC, =0xFF8C83DC \n"
852 );
853 }
854
855
856
857 void __attribute__((naked,noinline)) sub_FF8B84D0_my() {
858 asm volatile (
859 " STMFD SP!, {R4-R6,LR} \n"
860 " LDR R5, =0x3EE0 \n"
861 " MOV R4, R0 \n"
862 " LDR R0, [R5, #4] \n"
863 " CMP R0, #1 \n"
864 " LDRNE R1, =0x146 \n"
865 " LDRNE R0, =0xFF8B8308 /*'Shutter.c'*/ \n"
866 " BLNE _DebugAssert \n"
867 " CMN R4, #0xC00 \n"
868 " LDREQSH R4, [R5, #2] \n"
869 " CMN R4, #0xC00 \n"
870 " MOVEQ R1, #0x14C \n"
871 " LDREQ R0, =0xFF8B8308 /*'Shutter.c'*/ \n"
872 " STRH R4, [R5, #2] \n"
873 " BLEQ _DebugAssert \n"
874 " MOV R0, R4 \n"
875 " BL apex2us \n"
876 " LDR PC, =0xFF8B8514 \n"
877 );
878 }