This source file includes following definitions.
- capt_seq_task
- sub_FF1BEFE4_my
- exp_drv_task
- sub_FF0B86F8_my
- sub_FF0A7068_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 150
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 R4, =0x41C48 \n"
20 " LDR R7, =0x3114 \n"
21 " MOV R6, #0 \n"
22
23 "loc_FF06D6CC:\n"
24 " LDR R0, [R7, #4] \n"
25 " MOV R2, #0 \n"
26 " MOV R1, SP \n"
27 " BL sub_0068BBE4 /*_ReceiveMessageQueue*/ \n"
28 " TST R0, #1 \n"
29 " BEQ loc_FF06D6F8 \n"
30 " LDR R1, =0x493 \n"
31 " LDR R0, =0xFF06D060 /*'SsShootTask.c'*/ \n"
32 " BL _DebugAssert \n"
33 " BL _ExitTask \n"
34 " LDMFD SP!, {R3-R9,PC} \n"
35
36 "loc_FF06D6F8:\n"
37 " LDR R0, [SP] \n"
38 " LDR R1, [R0] \n"
39 " CMP R1, #0x27 \n"
40 " ADDCC PC, PC, R1, LSL#2 \n"
41 " B loc_FF06D9DC \n"
42 " B loc_FF06D7A8 \n"
43 " B loc_FF06D7C0 \n"
44 " B loc_FF06D844 \n"
45 " B loc_FF06D858 \n"
46 " B loc_FF06D850 \n"
47 " B loc_FF06D864 \n"
48 " B loc_FF06D86C \n"
49 " B loc_FF06D874 \n"
50 " B loc_FF06D890 \n"
51 " B loc_FF06D8E4 \n"
52 " B loc_FF06D89C \n"
53 " B loc_FF06D8A8 \n"
54 " B loc_FF06D8B0 \n"
55 " B loc_FF06D8CC \n"
56 " B loc_FF06D8D4 \n"
57 " B loc_FF06D8DC \n"
58 " B loc_FF06D8EC \n"
59 " B loc_FF06D8F4 \n"
60 " B loc_FF06D8FC \n"
61 " B loc_FF06D904 \n"
62 " B loc_FF06D90C \n"
63 " B loc_FF06D914 \n"
64 " B loc_FF06D91C \n"
65 " B loc_FF06D924 \n"
66 " B loc_FF06D92C \n"
67 " B loc_FF06D934 \n"
68 " B loc_FF06D940 \n"
69 " B loc_FF06D948 \n"
70 " B loc_FF06D954 \n"
71 " B loc_FF06D95C \n"
72 " B loc_FF06D964 \n"
73 " B loc_FF06D96C \n"
74 " B loc_FF06D974 \n"
75 " B loc_FF06D97C \n"
76 " B loc_FF06D984 \n"
77 " B loc_FF06D990 \n"
78 " B loc_FF06D998 \n"
79 " B loc_FF06D9A4 \n"
80 " B loc_FF06D9E8 \n"
81
82 "loc_FF06D7A8:\n"
83 " BL shooting_expo_iso_override\n"
84 " BL sub_FF06DF5C \n"
85 " BL shooting_expo_param_override\n"
86 " BL sub_FF06AA24 \n"
87 " MOV R0, #0\n"
88 " STR R0, [R4,#0x28]\n"
89
90
91
92 " B loc_FF06D9E8 \n"
93
94 "loc_FF06D7C0:\n"
95 " LDR R5, [R0, #0x10] \n"
96 " LDR R0, [R4, #0x28] \n"
97 " CMP R0, #0 \n"
98 " BNE loc_FF06D808 \n"
99 " LDR R0, [R4, #0x94] \n"
100 " TST R0, #0x30 \n"
101 " BLNE sub_FF071910 \n"
102 " BL sub_FF0715A4 \n"
103 " MOV R1, R5 \n"
104 " BL sub_FF0715FC \n"
105 " LDR R0, =0x10F \n"
106 " MOV R2, #4 \n"
107 " ADD R1, R5, #0x78 \n"
108 " BL _SetPropertyCase \n"
109 " MOV R2, #4 \n"
110 " ADD R1, R5, #0x7C \n"
111 " MOV R0, #0x2C \n"
112 " BL _SetPropertyCase \n"
113
114 "loc_FF06D808:\n"
115 " MOV R0, R5 \n"
116 " BL sub_FF1BEFE4_my \n"
117 " BL capt_seq_hook_raw_here\n"
118 " MOV R8, R0 \n"
119 " MOV R2, R5 \n"
120 " MOV R1, #1 \n"
121 " BL sub_FF06B590 \n"
122 " TST R8, #1 \n"
123 " BNE loc_FF06D9E8 \n"
124 " MOV R0, R5 \n"
125 " BL sub_FF1BE00C \n"
126 " LDR R0, [R4, #0x94] \n"
127 " TST R0, #2 \n"
128 " MOVNE R0, R5 \n"
129 " BLNE sub_FF06B730 \n"
130 " B loc_FF06D9E8 \n"
131
132 "loc_FF06D844:\n"
133 " MOV R0, #1 \n"
134 " BL sub_FF06E264 \n"
135 " B loc_FF06D9E8 \n"
136
137 "loc_FF06D850:\n"
138 " BL sub_FF06DBD8 \n"
139 " B loc_FF06D85C \n"
140
141 "loc_FF06D858:\n"
142 " BL sub_FF06DF3C \n"
143
144 "loc_FF06D85C:\n"
145 " STR R6, [R4, #0x28] \n"
146 " B loc_FF06D9E8 \n"
147
148 "loc_FF06D864:\n"
149 " BL sub_FF06DF44 \n"
150 " B loc_FF06D9E8 \n"
151
152 "loc_FF06D86C:\n"
153 " BL sub_FF06E138 \n"
154 " B loc_FF06D894 \n"
155
156 "loc_FF06D874:\n"
157 " LDR R5, [R0, #0x10] \n"
158 " MOV R0, R5 \n"
159 " BL sub_FF1BF31C \n"
160 " MOV R2, R5 \n"
161 " MOV R1, #9 \n"
162 " BL sub_FF06B590 \n"
163 " B loc_FF06D9E8 \n"
164
165 "loc_FF06D890:\n"
166 " BL sub_FF06E1C8 \n"
167
168 "loc_FF06D894:\n"
169 " BL sub_FF06AA24 \n"
170 " B loc_FF06D9E8 \n"
171
172 "loc_FF06D89C:\n"
173 " LDR R0, [R4, #0x58] \n"
174 " BL sub_FF06EDC4 \n"
175 " B loc_FF06D9E8 \n"
176
177 "loc_FF06D8A8:\n"
178 " BL sub_FF06F0B8 \n"
179 " B loc_FF06D9E8 \n"
180
181 "loc_FF06D8B0:\n"
182 " LDRH R1, [R4] \n"
183 " SUB R0, R1, #0x8200 \n"
184 " SUBS R0, R0, #0x39 \n"
185 " MOVNE R0, #0 \n"
186 " MOVEQ R0, #1 \n"
187 " BL sub_FF06F11C \n"
188 " B loc_FF06D9E8 \n"
189
190 "loc_FF06D8CC:\n"
191 " BL sub_FF06F308 \n"
192 " B loc_FF06D9E8 \n"
193
194 "loc_FF06D8D4:\n"
195 " BL sub_FF06F784 \n"
196 " B loc_FF06D9E8 \n"
197
198 "loc_FF06D8DC:\n"
199 " BL sub_FF06F838 \n"
200 " B loc_FF06D9E8 \n"
201
202 "loc_FF06D8E4:\n"
203 " BL sub_FF06DF3C \n"
204 " B loc_FF06D9E8 \n"
205
206 "loc_FF06D8EC:\n"
207 " BL sub_FF1BD384 \n"
208 " B loc_FF06D9E8 \n"
209
210 "loc_FF06D8F4:\n"
211 " BL sub_FF1BD5EC \n"
212 " B loc_FF06D9E8 \n"
213
214 "loc_FF06D8FC:\n"
215 " BL sub_FF1BD6A4 \n"
216 " B loc_FF06D9E8 \n"
217
218 "loc_FF06D904:\n"
219 " BL sub_FF1BD78C \n"
220 " B loc_FF06D9E8 \n"
221
222 "loc_FF06D90C:\n"
223 " BL sub_FF1BD860 \n"
224 " B loc_FF06D9E8 \n"
225
226 "loc_FF06D914:\n"
227 " MOV R0, #0 \n"
228 " B loc_FF06D938 \n"
229
230 "loc_FF06D91C:\n"
231 " BL sub_FF1BDAA0 \n"
232 " B loc_FF06D9E8 \n"
233
234 "loc_FF06D924:\n"
235 " BL sub_FF1BDB34 \n"
236 " B loc_FF06D9E8 \n"
237
238 "loc_FF06D92C:\n"
239 " BL sub_FF1BDBF0 \n"
240 " B loc_FF06D9E8 \n"
241
242 "loc_FF06D934:\n"
243 " MOV R0, #1 \n"
244
245 "loc_FF06D938:\n"
246 " BL sub_FF1BD930 \n"
247 " B loc_FF06D9E8 \n"
248
249 "loc_FF06D940:\n"
250 " BL sub_FF06E474 \n"
251 " B loc_FF06D9E8 \n"
252
253 "loc_FF06D948:\n"
254 " BL sub_FF06E508 \n"
255 " BL sub_FF1BFFC4 \n"
256 " B loc_FF06D9E8 \n"
257
258 "loc_FF06D954:\n"
259 " BL sub_FF06E8D4 \n"
260 " B loc_FF06D9E8 \n"
261
262 "loc_FF06D95C:\n"
263 " BL sub_FF06EA0C \n"
264 " B loc_FF06D9E8 \n"
265
266 "loc_FF06D964:\n"
267 " BL sub_FF1C0078 \n"
268 " B loc_FF06D9E8 \n"
269
270 "loc_FF06D96C:\n"
271 " BL sub_FF022B54 \n"
272 " B loc_FF06D9E8 \n"
273
274 "loc_FF06D974:\n"
275 " BL sub_FF072C64 \n"
276 " B loc_FF06D9E8 \n"
277
278 "loc_FF06D97C:\n"
279 " BL sub_FF072CEC \n"
280 " B loc_FF06D9E8 \n"
281
282 "loc_FF06D984:\n"
283 " LDR R0, [R0, #0xC] \n"
284 " BL sub_FF1BDD18 \n"
285 " B loc_FF06D9E8 \n"
286
287 "loc_FF06D990:\n"
288 " BL sub_FF1BDD88 \n"
289 " B loc_FF06D9E8 \n"
290
291 "loc_FF06D998:\n"
292 " BL sub_FF072D54 \n"
293 " BL sub_FF072D0C \n"
294 " B loc_FF06D9E8 \n"
295
296 "loc_FF06D9A4:\n"
297 " MOV R0, #1 \n"
298 " BL sub_FF1BFACC \n"
299 " MOV R0, #1 \n"
300 " BL sub_FF1BFC00 \n"
301 " LDRH R0, [R4, #0xA4] \n"
302 " CMP R0, #4 \n"
303 " LDRNEH R0, [R4] \n"
304 " SUBNE R1, R0, #0x4200 \n"
305 " SUBNES R1, R1, #0x2E \n"
306 " BNE loc_FF06D9E8 \n"
307 " BL sub_FF072CEC \n"
308 " BL sub_FF073468 \n"
309 " BL sub_FF07317C \n"
310 " B loc_FF06D9E8 \n"
311
312 "loc_FF06D9DC:\n"
313 " LDR R1, =0x5F4 \n"
314 " LDR R0, =0xFF06D060 /*'SsShootTask.c'*/ \n"
315 " BL _DebugAssert \n"
316
317 "loc_FF06D9E8:\n"
318 " LDR R0, [SP] \n"
319 " LDR R1, [R0, #4] \n"
320 " LDR R0, [R7] \n"
321 " BL sub_0068B954 /*_SetEventFlag*/ \n"
322 " LDR R5, [SP] \n"
323 " LDR R0, [R5, #8] \n"
324 " CMP R0, #0 \n"
325 " LDREQ R1, =0x117 \n"
326 " LDREQ R0, =0xFF06D060 /*'SsShootTask.c'*/ \n"
327 " BLEQ _DebugAssert \n"
328 " STR R6, [R5, #8] \n"
329 " B loc_FF06D6CC \n"
330 );
331 }
332
333
334
335 void __attribute__((naked,noinline)) sub_FF1BEFE4_my() {
336 asm volatile (
337 " STMFD SP!, {R3-R7,LR} \n"
338 " LDR R6, =0x41C48 \n"
339 " MOV R4, R0 \n"
340 " LDR R0, [R6, #0x28] \n"
341 " LDR R5, =0x420D \n"
342 " CMP R0, #0 \n"
343 " MOV R7, #0 \n"
344 " BNE loc_FF1BF088 \n"
345 " LDR R1, [R6, #0x94] \n"
346 " TST R1, #6 \n"
347 " BNE loc_FF1BF024 \n"
348 " MOV R0, #0xC \n"
349 " BL sub_FF074DF0 \n"
350 " TST R0, #1 \n"
351 " BEQ loc_FF1BF088 \n"
352 " B loc_FF1BF080 \n"
353
354 "loc_FF1BF024:\n"
355 " LDRH R0, [R6] \n"
356 " CMP R0, R5 \n"
357 " LDRNEH R0, [R6, #0xA2] \n"
358 " CMPNE R0, #3 \n"
359 " LDRNE R0, [R4, #8] \n"
360 " CMPNE R0, #1 \n"
361 " BLS loc_FF1BF068 \n"
362 " LDRH R0, [R6, #0x9E] \n"
363 " CMP R0, #3 \n"
364 " BNE loc_FF1BF054 \n"
365 " TST R1, #2 \n"
366 " BNE loc_FF1BF088 \n"
367
368 "loc_FF1BF054:\n"
369 " BL sub_FF01CE0C \n"
370 " TST R0, #1 \n"
371 " BEQ loc_FF1BF088 \n"
372 " BL sub_FF074E50 \n"
373 " B loc_FF1BF080 \n"
374
375 "loc_FF1BF068:\n"
376 " MOV R0, #0xC \n"
377 " BL sub_FF074DF0 \n"
378 " TST R0, #1 \n"
379 " BEQ loc_FF1BF088 \n"
380 " BL sub_FF1BF94C \n"
381 " BL sub_FF06B1D8 \n"
382
383 "loc_FF1BF080:\n"
384 " MOV R0, #1 \n"
385 " LDMFD SP!, {R3-R7,PC} \n"
386
387 "loc_FF1BF088:\n"
388 " LDRH R0, [R6] \n"
389 " CMP R0, R5 \n"
390 " LDRNEH R0, [R6, #0xA2] \n"
391 " CMPNE R0, #3 \n"
392 " LDRNE R0, [R4, #8] \n"
393 " CMPNE R0, #1 \n"
394 " BLS loc_FF1BF0B0 \n"
395 " LDR R0, [R6, #0x98] \n"
396 " CMP R0, #2 \n"
397 " BLEQ sub_FF06E5D0 \n"
398
399 "loc_FF1BF0B0:\n"
400 " LDRH R1, [R6] \n"
401 " CMP R1, R5 \n"
402 " LDRNEH R0, [R6, #0xA2] \n"
403 " CMPNE R0, #3 \n"
404 " LDRNE R0, [R4, #8] \n"
405 " CMPNE R0, #1 \n"
406 " BLS loc_FF1BF0D8 \n"
407 " LDR R0, [R6, #0x98] \n"
408 " CMP R0, #2 \n"
409 " BEQ loc_FF1BF114 \n"
410
411 "loc_FF1BF0D8:\n"
412 " LDR R0, [R6, #0x98] \n"
413 " CMP R0, #1 \n"
414 " BNE loc_FF1BF118 \n"
415 " CMP R1, R5 \n"
416 " LDRNEH R0, [R6, #0xA2] \n"
417 " CMPNE R0, #3 \n"
418 " LDRNE R0, [R4, #8] \n"
419 " CMPNE R0, #1 \n"
420 " BLS loc_FF1BF118 \n"
421 " LDR R0, [R6, #0x94] \n"
422 " TST R0, #0x80 \n"
423 " BEQ loc_FF1BF118 \n"
424 " LDR R0, [R4, #0x10] \n"
425 " CMP R0, #1 \n"
426 " BNE loc_FF1BF118 \n"
427
428 "loc_FF1BF114:\n"
429 " BL sub_FF1C00B0 \n"
430
431 "loc_FF1BF118:\n"
432 " BL sub_FF1C0078 \n"
433 " BL sub_FF06DF4C \n"
434 " LDR R0, [R6, #0x28] \n"
435 " CMP R0, #0 \n"
436 " BNE loc_FF1BF26C \n"
437 " MOV R0, R4 \n"
438 " BL sub_FF1BDF48 \n"
439 " TST R0, #1 \n"
440 " LDMNEFD SP!, {R3-R7,PC} \n"
441 " LDR R0, [R6, #0x94] \n"
442 " AND R0, R0, #0x40 \n"
443 " CMP R0, #0 \n"
444 " LDRNEH R0, [R6] \n"
445 " CMPNE R0, R5 \n"
446 " LDRNEH R0, [R6, #0xA2] \n"
447 " CMPNE R0, #3 \n"
448 " LDRNE R0, [R4, #8] \n"
449 " CMPNE R0, #1 \n"
450 " BLS loc_FF1BF180 \n"
451 " BL sub_FF1BFDC0 \n"
452 " MOV R3, #0xC0 \n"
453 " STR R3, [SP] \n"
454 " LDR R2, =0x3A98 \n"
455 " LDR R3, =0xFF1BF3AC /*'SsCaptureSeq.c'*/ \n"
456 " MOV R1, #0x8000 \n"
457 " BL sub_FF075060 \n"
458
459 "loc_FF1BF180:\n"
460 " LDR R0, [R6, #0x94] \n"
461 " AND R0, R0, #6 \n"
462 " CMP R0, #0 \n"
463 " LDRNEH R0, [R6] \n"
464 " CMPNE R0, R5 \n"
465 " LDRNEH R0, [R6, #0xA2] \n"
466 " CMPNE R0, #3 \n"
467 " LDRNE R0, [R4, #8] \n"
468 " CMPNE R0, #1 \n"
469 " BHI loc_FF1BF1B4 \n"
470 " MOV R0, R4 \n"
471 " BL sub_FF1BE37C \n"
472 " BL sub_FF1BF890 \n"
473 " BL wait_until_remote_button_is_released\n"
474 " BL capt_seq_hook_set_nr\n"
475
476 "loc_FF1BF1B4:\n"
477 " LDR R0, [R6, #0x94] \n"
478 " TST R0, #0x40 \n"
479 " BEQ loc_FF1BF21C \n"
480 " LDR R0, =0x181 \n"
481 " MOV R2, #4 \n"
482 " MOV R1, SP \n"
483 " BL _GetPropertyCase \n"
484 " TST R0, #1 \n"
485 " MOVNE R1, #0xD4 \n"
486 " LDRNE R0, =0xFF1BF3AC /*'SsCaptureSeq.c'*/ \n"
487 " BLNE _DebugAssert \n"
488 " LDR R0, [SP] \n"
489 " CMP R0, #0 \n"
490 " BNE loc_FF1BF1FC \n"
491 " BL sub_FF1BFDC0 \n"
492 " MOV R1, #0x8000 \n"
493 " BL sub_0068B954 /*_SetEventFlag*/ \n"
494 " B loc_FF1BF21C \n"
495
496 "loc_FF1BF1FC:\n"
497 " BL sub_FF1BFDC0 \n"
498 " MOV R1, #0x8000 \n"
499 " BL sub_0068B988 /*_ClearEventFlag*/ \n"
500 " LDR R2, =0xFF1BEFD0 \n"
501 " LDR R0, [SP] \n"
502 " MOV R3, #0x8000 \n"
503 " MOV R1, R2 \n"
504 " BL sub_FF025AE0 /*_SetTimerAfter*/ \n"
505
506 "loc_FF1BF21C:\n"
507 " LDR R0, [R6, #0x94] \n"
508 " AND R0, R0, #6 \n"
509 " CMP R0, #0 \n"
510 " LDRNEH R0, [R6] \n"
511 " CMPNE R0, R5 \n"
512 " LDRNEH R0, [R6, #0xA2] \n"
513 " CMPNE R0, #3 \n"
514 " LDRNE R0, [R4, #8] \n"
515 " CMPNE R0, #1 \n"
516 " MOVLS R0, #2 \n"
517 " BLLS sub_FF07654C \n"
518 " LDR R0, [R6, #0x94] \n"
519 " TST R0, #0x10 \n"
520 " MOV R0, R4 \n"
521 " BEQ loc_FF1BF260 \n"
522 " BL sub_FF356F60 \n"
523 " B loc_FF1BF264 \n"
524
525 "loc_FF1BF260:\n"
526 " BL sub_FF1BEA9C \n"
527
528 "loc_FF1BF264:\n"
529 " MOV R7, R0 \n"
530 " B loc_FF1BF27C \n"
531
532 "loc_FF1BF26C:\n"
533 " LDR R0, =0xAFD8 \n"
534 " LDR R0, [R0] \n"
535 " CMP R0, #0 \n"
536 " MOVNE R7, #0x1D \n"
537
538 "loc_FF1BF27C:\n"
539 " MOV R0, R7 \n"
540 " LDMFD SP!, {R3-R7,PC} \n"
541 );
542 }
543
544
545
546 void __attribute__((naked,noinline)) exp_drv_task() {
547 asm volatile (
548 " STMFD SP!, {R4-R9,LR} \n"
549 " SUB SP, SP, #0x2C \n"
550 " LDR R6, =0x4AB4 \n"
551 " LDR R7, =0xBB8 \n"
552 " LDR R4, =0x5F160 \n"
553 " MOV R0, #0 \n"
554 " ADD R5, SP, #0x1C \n"
555 " STR R0, [SP, #0xC] \n"
556
557 "loc_FF0BC1D0:\n"
558 " LDR R0, [R6, #0x20] \n"
559 " MOV R2, #0 \n"
560 " ADD R1, SP, #0x28 \n"
561 " BL sub_0068BBE4 /*_ReceiveMessageQueue*/ \n"
562 " LDR R0, [SP, #0xC] \n"
563 " CMP R0, #1 \n"
564 " BNE loc_FF0BC21C \n"
565 " LDR R0, [SP, #0x28] \n"
566 " LDR R0, [R0] \n"
567 " CMP R0, #0x14 \n"
568 " CMPNE R0, #0x15 \n"
569 " CMPNE R0, #0x16 \n"
570 " CMPNE R0, #0x17 \n"
571 " BEQ loc_FF0BC37C \n"
572 " CMP R0, #0x2A \n"
573 " BEQ loc_FF0BC304 \n"
574 " ADD R1, SP, #0xC \n"
575 " MOV R0, #0 \n"
576 " BL sub_FF0BC160 \n"
577
578 "loc_FF0BC21C:\n"
579 " LDR R0, [SP, #0x28] \n"
580 " LDR R1, [R0] \n"
581 " CMP R1, #0x30 \n"
582 " BNE loc_FF0BC248 \n"
583 " BL sub_FF0BD5B8 \n"
584 " LDR R0, [R6, #0x1C] \n"
585 " MOV R1, #1 \n"
586 " BL sub_0068B954 /*_SetEventFlag*/ \n"
587 " BL _ExitTask \n"
588 " ADD SP, SP, #0x2C \n"
589 " LDMFD SP!, {R4-R9,PC} \n"
590
591 "loc_FF0BC248:\n"
592 " CMP R1, #0x2F \n"
593 " BNE loc_FF0BC264 \n"
594 " LDR R2, [R0, #0x8C]! \n"
595 " LDR R1, [R0, #4] \n"
596 " MOV R0, R1 \n"
597 " BLX R2 \n"
598 " B loc_FF0BC838 \n"
599
600 "loc_FF0BC264:\n"
601 " CMP R1, #0x28 \n"
602 " BNE loc_FF0BC2B4 \n"
603 " LDR R0, [R6, #0x1C] \n"
604 " MOV R1, #0x80 \n"
605 " BL sub_0068B988 /*_ClearEventFlag*/ \n"
606 " LDR R0, =0xFF0B71A8 \n"
607 " MOV R1, #0x80 \n"
608 " BL sub_FF1AC048 \n"
609 " LDR R0, [R6, #0x1C] \n"
610 " MOV R2, R7 \n"
611 " MOV R1, #0x80 \n"
612 " BL sub_0068B894 /*_WaitForAllEventFlag*/ \n"
613 " TST R0, #1 \n"
614 " LDRNE R1, =0x1599 \n"
615 " BNE loc_FF0BC370 \n"
616
617 "loc_FF0BC2A0:\n"
618 " LDR R1, [SP, #0x28] \n"
619 " LDR R0, [R1, #0x90] \n"
620 " LDR R1, [R1, #0x8C] \n"
621 " BLX R1 \n"
622 " B loc_FF0BC838 \n"
623
624 "loc_FF0BC2B4:\n"
625 " CMP R1, #0x29 \n"
626 " BNE loc_FF0BC2FC \n"
627 " ADD R1, SP, #0xC \n"
628 " BL sub_FF0BC160 \n"
629 " LDR R0, [R6, #0x1C] \n"
630 " MOV R1, #0x100 \n"
631 " BL sub_0068B988 /*_ClearEventFlag*/ \n"
632 " LDR R0, =0xFF0B71B8 \n"
633 " MOV R1, #0x100 \n"
634 " BL sub_FF1ACDFC \n"
635 " LDR R0, [R6, #0x1C] \n"
636 " MOV R2, R7 \n"
637 " MOV R1, #0x100 \n"
638 " BL sub_0068B894 /*_WaitForAllEventFlag*/ \n"
639 " TST R0, #1 \n"
640 " BEQ loc_FF0BC2A0 \n"
641 " LDR R1, =0x15A3 \n"
642 " B loc_FF0BC370 \n"
643
644 "loc_FF0BC2FC:\n"
645 " CMP R1, #0x2A \n"
646 " BNE loc_FF0BC314 \n"
647
648 "loc_FF0BC304:\n"
649 " LDR R0, [SP, #0x28] \n"
650 " ADD R1, SP, #0xC \n"
651 " BL sub_FF0BC160 \n"
652 " B loc_FF0BC2A0 \n"
653
654 "loc_FF0BC314:\n"
655 " CMP R1, #0x2D \n"
656 " BNE loc_FF0BC32C \n"
657 " BL sub_FF0A731C \n"
658 " BL sub_FF0A8008 \n"
659 " BL sub_FF0A7B70 \n"
660 " B loc_FF0BC2A0 \n"
661
662 "loc_FF0BC32C:\n"
663 " CMP R1, #0x2E \n"
664 " BNE loc_FF0BC37C \n"
665 " LDR R0, [R6, #0x1C] \n"
666 " MOV R1, #4 \n"
667 " BL sub_0068B988 /*_ClearEventFlag*/ \n"
668 " LDR R1, =0xFF0B71D8 \n"
669 " LDR R0, =0xFFFFF400 \n"
670 " MOV R2, #4 \n"
671 " BL sub_FF0A6D6C \n"
672 " BL sub_FF0A6FFC \n"
673 " LDR R0, [R6, #0x1C] \n"
674 " MOV R2, R7 \n"
675 " MOV R1, #4 \n"
676 " BL sub_0068B7B0 /*_WaitForAnyEventFlag*/ \n"
677 " TST R0, #1 \n"
678 " BEQ loc_FF0BC2A0 \n"
679 " LDR R1, =0x15CB \n"
680
681 "loc_FF0BC370:\n"
682 " LDR R0, =0xFF0B7968 /*'ExpDrv.c'*/ \n"
683 " BL _DebugAssert \n"
684 " B loc_FF0BC2A0 \n"
685
686 "loc_FF0BC37C:\n"
687 " LDR R0, [SP, #0x28] \n"
688 " MOV R8, #1 \n"
689 " LDR R1, [R0] \n"
690 " CMP R1, #0x12 \n"
691 " CMPNE R1, #0x13 \n"
692 " BNE loc_FF0BC3E4 \n"
693 " LDR R1, [R0, #0x7C] \n"
694 " ADD R1, R1, R1, LSL#1 \n"
695 " ADD R1, R0, R1, LSL#2 \n"
696 " SUB R1, R1, #8 \n"
697 " LDMIA R1, {R2,R3,R9} \n"
698 " STMIA R5, {R2,R3,R9} \n"
699 " BL sub_FF0BA3A4 \n"
700 " LDR R0, [SP, #0x28] \n"
701 " LDR R1, [R0, #0x7C] \n"
702 " LDR R3, [R0, #0x8C] \n"
703 " LDR R2, [R0, #0x90] \n"
704 " ADD R0, R0, #4 \n"
705 " BLX R3 \n"
706 " LDR R0, [SP, #0x28] \n"
707 " BL sub_FF0BD9C8 \n"
708 " LDR R0, [SP, #0x28] \n"
709 " LDR R1, [R0, #0x7C] \n"
710 " LDR R2, [R0, #0x98] \n"
711 " LDR R3, [R0, #0x94] \n"
712 " B loc_FF0BC6FC \n"
713
714 "loc_FF0BC3E4:\n"
715 " CMP R1, #0x14 \n"
716 " CMPNE R1, #0x15 \n"
717 " CMPNE R1, #0x16 \n"
718 " CMPNE R1, #0x17 \n"
719 " BNE loc_FF0BC49C \n"
720 " ADD R3, SP, #0xC \n"
721 " MOV R2, SP \n"
722 " ADD R1, SP, #0x1C \n"
723 " BL sub_FF0BA604 \n"
724 " CMP R0, #1 \n"
725 " MOV R9, R0 \n"
726 " CMPNE R9, #5 \n"
727 " BNE loc_FF0BC438 \n"
728 " LDR R0, [SP, #0x28] \n"
729 " MOV R2, R9 \n"
730 " LDR R1, [R0, #0x7C]! \n"
731 " LDR R12, [R0, #0x10]! \n"
732 " LDR R3, [R0, #4] \n"
733 " MOV R0, SP \n"
734 " BLX R12 \n"
735 " B loc_FF0BC470 \n"
736
737 "loc_FF0BC438:\n"
738 " LDR R0, [SP, #0x28] \n"
739 " CMP R9, #2 \n"
740 " LDR R3, [R0, #0x90] \n"
741 " CMPNE R9, #6 \n"
742 " BNE loc_FF0BC484 \n"
743 " LDR R12, [R0, #0x8C] \n"
744 " MOV R2, R9 \n"
745 " MOV R1, #1 \n"
746 " MOV R0, SP \n"
747 " BLX R12 \n"
748 " LDR R0, [SP, #0x28] \n"
749 " MOV R2, SP \n"
750 " ADD R1, SP, #0x1C \n"
751 " BL sub_FF0BBEB0 \n"
752
753 "loc_FF0BC470:\n"
754 " LDR R0, [SP, #0x28] \n"
755 " LDR R2, [SP, #0xC] \n"
756 " MOV R1, R9 \n"
757 " BL sub_FF0BC100 \n"
758 " B loc_FF0BC704 \n"
759
760 "loc_FF0BC484:\n"
761 " LDR R1, [R0, #0x7C] \n"
762 " LDR R12, [R0, #0x8C] \n"
763 " MOV R2, R9 \n"
764 " ADD R0, R0, #4 \n"
765 " BLX R12 \n"
766 " B loc_FF0BC704 \n"
767
768 "loc_FF0BC49C:\n"
769 " CMP R1, #0x24 \n"
770 " CMPNE R1, #0x25 \n"
771 " BNE loc_FF0BC4E8 \n"
772 " LDR R1, [R0, #0x7C] \n"
773 " ADD R1, R1, R1, LSL#1 \n"
774 " ADD R1, R0, R1, LSL#2 \n"
775 " SUB R1, R1, #8 \n"
776 " LDMIA R1, {R2,R3,R9} \n"
777 " STMIA R5, {R2,R3,R9} \n"
778 " BL sub_FF0B9104 \n"
779 " LDR R0, [SP, #0x28] \n"
780 " LDR R1, [R0, #0x7C] \n"
781 " LDR R3, [R0, #0x8C] \n"
782 " LDR R2, [R0, #0x90] \n"
783 " ADD R0, R0, #4 \n"
784 " BLX R3 \n"
785 " LDR R0, [SP, #0x28] \n"
786 " BL sub_FF0B95F8 \n"
787 " B loc_FF0BC704 \n"
788
789 "loc_FF0BC4E8:\n"
790 " ADD R1, R0, #4 \n"
791 " LDMIA R1, {R2,R3,R9} \n"
792 " STMIA R5, {R2,R3,R9} \n"
793 " LDR R1, [R0] \n"
794 " CMP R1, #0x28 \n"
795 " ADDCC PC, PC, R1, LSL#2 \n"
796 " B loc_FF0BC6EC \n"
797 " B loc_FF0BC5A4 \n"
798 " B loc_FF0BC5A4 \n"
799 " B loc_FF0BC5AC \n"
800 " B loc_FF0BC5B4 \n"
801 " B loc_FF0BC5B4 \n"
802 " B loc_FF0BC5B4 \n"
803 " B loc_FF0BC5A4 \n"
804 " B loc_FF0BC5AC \n"
805 " B loc_FF0BC5B4 \n"
806 " B loc_FF0BC5B4 \n"
807 " B loc_FF0BC5CC \n"
808 " B loc_FF0BC5CC \n"
809 " B loc_FF0BC6D8 \n"
810 " B loc_FF0BC6E0 \n"
811 " B loc_FF0BC6E0 \n"
812 " B loc_FF0BC6E0 \n"
813 " B loc_FF0BC6E0 \n"
814 " B loc_FF0BC6E8 \n"
815 " B loc_FF0BC6EC \n"
816 " B loc_FF0BC6EC \n"
817 " B loc_FF0BC6EC \n"
818 " B loc_FF0BC6EC \n"
819 " B loc_FF0BC6EC \n"
820 " B loc_FF0BC6EC \n"
821 " B loc_FF0BC5BC \n"
822 " B loc_FF0BC5C4 \n"
823 " B loc_FF0BC5C4 \n"
824 " B loc_FF0BC5C4 \n"
825 " B loc_FF0BC5D8 \n"
826 " B loc_FF0BC5D8 \n"
827 " B loc_FF0BC5E0 \n"
828 " B loc_FF0BC618 \n"
829 " B loc_FF0BC650 \n"
830 " B loc_FF0BC688 \n"
831 " B loc_FF0BC6C0 \n"
832 " B loc_FF0BC6C0 \n"
833 " B loc_FF0BC6EC \n"
834 " B loc_FF0BC6EC \n"
835 " B loc_FF0BC6C8 \n"
836 " B loc_FF0BC6D0 \n"
837
838 "loc_FF0BC5A4:\n"
839 " BL sub_FF0B779C \n"
840 " B loc_FF0BC6EC \n"
841
842 "loc_FF0BC5AC:\n"
843 " BL sub_FF0B7A94 \n"
844 " B loc_FF0BC6EC \n"
845
846 "loc_FF0BC5B4:\n"
847 " BL sub_FF0B7CFC \n"
848 " B loc_FF0BC6EC \n"
849
850 "loc_FF0BC5BC:\n"
851 " BL sub_FF0B7FF0 \n"
852 " B loc_FF0BC6EC \n"
853
854 "loc_FF0BC5C4:\n"
855 " BL sub_FF0B8208 \n"
856 " B loc_FF0BC6EC \n"
857
858 "loc_FF0BC5CC:\n"
859 " BL sub_FF0B86F8_my \n"
860 " MOV R8, #0 \n"
861 " B loc_FF0BC6EC \n"
862
863 "loc_FF0BC5D8:\n"
864 " BL sub_FF0B88D4 \n"
865 " B loc_FF0BC6EC \n"
866
867 "loc_FF0BC5E0:\n"
868 " LDRH R1, [R0, #4] \n"
869 " STRH R1, [SP, #0x1C] \n"
870 " LDRH R1, [R4, #2] \n"
871 " STRH R1, [SP, #0x1E] \n"
872 " LDRH R1, [R4, #4] \n"
873 " STRH R1, [SP, #0x20] \n"
874 " LDRH R1, [R4, #6] \n"
875 " STRH R1, [SP, #0x22] \n"
876 " LDRH R1, [R0, #0xC] \n"
877 " STRH R1, [SP, #0x24] \n"
878 " LDRH R1, [R4, #0xA] \n"
879 " STRH R1, [SP, #0x26] \n"
880 " BL sub_FF0BD64C \n"
881 " B loc_FF0BC6EC \n"
882
883 "loc_FF0BC618:\n"
884 " LDRH R1, [R0, #4] \n"
885 " STRH R1, [SP, #0x1C] \n"
886 " LDRH R1, [R4, #2] \n"
887 " STRH R1, [SP, #0x1E] \n"
888 " LDRH R1, [R4, #4] \n"
889 " STRH R1, [SP, #0x20] \n"
890 " LDRH R1, [R4, #6] \n"
891 " STRH R1, [SP, #0x22] \n"
892 " LDRH R1, [R4, #8] \n"
893 " STRH R1, [SP, #0x24] \n"
894 " LDRH R1, [R4, #0xA] \n"
895 " STRH R1, [SP, #0x26] \n"
896 " BL sub_FF0BD7C8 \n"
897 " B loc_FF0BC6EC \n"
898
899 "loc_FF0BC650:\n"
900 " LDRH R1, [R4] \n"
901 " STRH R1, [SP, #0x1C] \n"
902 " LDRH R1, [R0, #6] \n"
903 " STRH R1, [SP, #0x1E] \n"
904 " LDRH R1, [R4, #4] \n"
905 " STRH R1, [SP, #0x20] \n"
906 " LDRH R1, [R4, #6] \n"
907 " STRH R1, [SP, #0x22] \n"
908 " LDRH R1, [R4, #8] \n"
909 " STRH R1, [SP, #0x24] \n"
910 " LDRH R1, [R4, #0xA] \n"
911 " STRH R1, [SP, #0x26] \n"
912 " BL sub_FF0BD87C \n"
913 " B loc_FF0BC6EC \n"
914
915 "loc_FF0BC688:\n"
916 " LDRH R1, [R4] \n"
917 " STRH R1, [SP, #0x1C] \n"
918 " LDRH R1, [R4, #2] \n"
919 " STRH R1, [SP, #0x1E] \n"
920 " LDRH R1, [R4, #4] \n"
921 " STRH R1, [SP, #0x20] \n"
922 " LDRH R1, [R4, #6] \n"
923 " STRH R1, [SP, #0x22] \n"
924 " LDRH R1, [R0, #0xC] \n"
925 " STRH R1, [SP, #0x24] \n"
926 " LDRH R1, [R4, #0xA] \n"
927 " STRH R1, [SP, #0x26] \n"
928 " BL sub_FF0BD924 \n"
929 " B loc_FF0BC6EC \n"
930
931 "loc_FF0BC6C0:\n"
932 " BL sub_FF0B8E9C \n"
933 " B loc_FF0BC6EC \n"
934
935 "loc_FF0BC6C8:\n"
936 " BL sub_FF0B96FC \n"
937 " B loc_FF0BC6EC \n"
938
939 "loc_FF0BC6D0:\n"
940 " BL sub_FF0B9C54 \n"
941 " B loc_FF0BC6EC \n"
942
943 "loc_FF0BC6D8:\n"
944 " BL sub_FF0B9E78 \n"
945 " B loc_FF0BC6EC \n"
946
947 "loc_FF0BC6E0:\n"
948 " BL sub_FF0BA034 \n"
949 " B loc_FF0BC6EC \n"
950
951 "loc_FF0BC6E8:\n"
952 " BL sub_FF0BA19C \n"
953
954 "loc_FF0BC6EC:\n"
955 " LDR R0, [SP, #0x28] \n"
956 " LDR R1, [R0, #0x7C] \n"
957 " LDR R2, [R0, #0x90] \n"
958 " LDR R3, [R0, #0x8C] \n"
959
960 "loc_FF0BC6FC:\n"
961 " ADD R0, R0, #4 \n"
962 " BLX R3 \n"
963
964 "loc_FF0BC704:\n"
965 " LDR R0, [SP, #0x28] \n"
966 " LDR R0, [R0] \n"
967 " CMP R0, #0x10 \n"
968 " BEQ loc_FF0BC73C \n"
969 " BGT loc_FF0BC72C \n"
970 " CMP R0, #1 \n"
971 " CMPNE R0, #4 \n"
972 " CMPNE R0, #0xE \n"
973 " BNE loc_FF0BC770 \n"
974 " B loc_FF0BC73C \n"
975
976 "loc_FF0BC72C:\n"
977 " CMP R0, #0x13 \n"
978 " CMPNE R0, #0x17 \n"
979 " CMPNE R0, #0x1A \n"
980 " BNE loc_FF0BC770 \n"
981
982 "loc_FF0BC73C:\n"
983 " LDRSH R0, [R4] \n"
984 " CMN R0, #0xC00 \n"
985 " LDRNESH R1, [R4, #8] \n"
986 " CMNNE R1, #0xC00 \n"
987 " STRNEH R0, [SP, #0x1C] \n"
988 " STRNEH R1, [SP, #0x24] \n"
989 " BNE loc_FF0BC770 \n"
990 " ADD R0, SP, #0x10 \n"
991 " BL sub_FF0BDBC8 /*_get_current_exp*/ \n"
992 " LDRH R0, [SP, #0x10] \n"
993 " STRH R0, [SP, #0x1C] \n"
994 " LDRH R0, [SP, #0x18] \n"
995 " STRH R0, [SP, #0x24] \n"
996
997 "loc_FF0BC770:\n"
998 " LDR R0, [SP, #0x28] \n"
999 " CMP R8, #1 \n"
1000 " BNE loc_FF0BC7C0 \n"
1001 " LDR R1, [R0, #0x7C] \n"
1002 " MOV R2, #0xC \n"
1003 " ADD R1, R1, R1, LSL#1 \n"
1004 " ADD R0, R0, R1, LSL#2 \n"
1005 " SUB R8, R0, #8 \n"
1006 " LDR R0, =0x5F160 \n"
1007 " ADD R1, SP, #0x1C \n"
1008 " BL sub_0069017C \n"
1009 " LDR R0, =0x5F16C \n"
1010 " MOV R2, #0xC \n"
1011 " ADD R1, SP, #0x1C \n"
1012 " BL sub_0069017C \n"
1013 " LDR R0, =0x5F178 \n"
1014 " MOV R2, #0xC \n"
1015 " MOV R1, R8 \n"
1016 " BL sub_0069017C \n"
1017 " B loc_FF0BC838 \n"
1018
1019 "loc_FF0BC7C0:\n"
1020 " LDR R0, [R0] \n"
1021 " MOV R3, #1 \n"
1022 " CMP R0, #0xB \n"
1023 " BNE loc_FF0BC804 \n"
1024 " MOV R2, #0 \n"
1025 " STRD R2, [SP] \n"
1026 " MOV R2, R3 \n"
1027 " MOV R1, R3 \n"
1028 " MOV R0, #0 \n"
1029 " BL sub_FF0B7570 \n"
1030 " MOV R3, #1 \n"
1031 " MOV R2, #0 \n"
1032 " STRD R2, [SP] \n"
1033 " MOV R2, R3 \n"
1034 " MOV R1, R3 \n"
1035 " MOV R0, #0 \n"
1036 " B loc_FF0BC834 \n"
1037
1038 "loc_FF0BC804:\n"
1039 " MOV R2, #1 \n"
1040 " STRD R2, [SP] \n"
1041 " MOV R3, R2 \n"
1042 " MOV R1, R2 \n"
1043 " MOV R0, R2 \n"
1044 " BL sub_FF0B7570 \n"
1045 " MOV R3, #1 \n"
1046 " MOV R2, R3 \n"
1047 " MOV R1, R3 \n"
1048 " MOV R0, R3 \n"
1049 " STR R3, [SP] \n"
1050 " STR R3, [SP, #4] \n"
1051
1052 "loc_FF0BC834:\n"
1053 " BL sub_FF0B76E8 \n"
1054
1055 "loc_FF0BC838:\n"
1056 " LDR R0, [SP, #0x28] \n"
1057 " BL sub_FF0BD5B8 \n"
1058 " B loc_FF0BC1D0 \n"
1059 );
1060 }
1061
1062
1063
1064 void __attribute__((naked,noinline)) sub_FF0B86F8_my() {
1065 asm volatile (
1066 " STMFD SP!, {R4-R8,LR} \n"
1067 " LDR R7, =0x4AB4 \n"
1068 " MOV R4, R0 \n"
1069 " LDR R0, [R7, #0x1C] \n"
1070 " MOV R1, #0x3E \n"
1071 " BL sub_0068B988 /*_ClearEventFlag*/ \n"
1072 " MOV R2, #0 \n"
1073 " LDRSH R0, [R4, #4] \n"
1074 " MOV R1, R2 \n"
1075 " BL sub_FF0B7238 \n"
1076 " MOV R6, R0 \n"
1077 " LDRSH R0, [R4, #6] \n"
1078 " BL sub_FF0B7388 \n"
1079 " LDRSH R0, [R4, #8] \n"
1080 " BL sub_FF0B73E0 \n"
1081 " LDRSH R0, [R4, #0xA] \n"
1082 " BL sub_FF0B7438 \n"
1083 " LDRSH R0, [R4, #0xC] \n"
1084 " MOV R1, #0 \n"
1085 " BL sub_FF0B7490 \n"
1086 " MOV R5, R0 \n"
1087 " LDR R0, [R4] \n"
1088 " LDR R8, =0x5F178 \n"
1089 " CMP R0, #0xB \n"
1090 " MOVEQ R6, #0 \n"
1091 " MOVEQ R5, R6 \n"
1092 " BEQ loc_FF0B878C \n"
1093 " CMP R6, #1 \n"
1094 " BNE loc_FF0B878C \n"
1095 " LDRSH R0, [R4, #4] \n"
1096 " LDR R1, =0xFF0B7198 \n"
1097 " MOV R2, #2 \n"
1098 " BL sub_FF1AC368 \n"
1099 " STRH R0, [R4, #4] \n"
1100 " MOV R0, #0 \n"
1101 " STR R0, [R7, #0x28] \n"
1102 " B loc_FF0B8794 \n"
1103
1104 "loc_FF0B878C:\n"
1105 " LDRH R0, [R8] \n"
1106 " STRH R0, [R4, #4] \n"
1107
1108 "loc_FF0B8794:\n"
1109 " CMP R5, #1 \n"
1110 " LDRNEH R0, [R8, #8] \n"
1111 " BNE loc_FF0B87B0 \n"
1112 " LDRSH R0, [R4, #0xC] \n"
1113 " LDR R1, =0xFF0B721C \n"
1114 " MOV R2, #0x20 \n"
1115 " BL sub_FF0BD608 \n"
1116
1117 "loc_FF0B87B0:\n"
1118 " STRH R0, [R4, #0xC] \n"
1119 " LDRSH R0, [R4, #6] \n"
1120 " BL sub_FF0A7068_my \n"
1121 " LDR PC, =0xFF0B87BC \n"
1122 );
1123 }
1124
1125
1126
1127 void __attribute__((naked,noinline)) sub_FF0A7068_my() {
1128 asm volatile (
1129 " STMFD SP!, {R4-R6,LR} \n"
1130 " LDR R5, =0x4704 \n"
1131 " MOV R4, R0 \n"
1132 " LDR R0, [R5, #4] \n"
1133 " CMP R0, #1 \n"
1134 " LDRNE R1, =0x14D \n"
1135 " LDRNE R0, =0xFF0A6EA0 /*'Shutter.c'*/ \n"
1136 " BLNE _DebugAssert \n"
1137 " CMN R4, #0xC00 \n"
1138 " LDREQSH R4, [R5, #2] \n"
1139 " CMN R4, #0xC00 \n"
1140 " LDREQ R1, =0x153 \n"
1141 " LDREQ R0, =0xFF0A6EA0 /*'Shutter.c'*/ \n"
1142 " STRH R4, [R5, #2] \n"
1143 " BLEQ _DebugAssert \n"
1144 " MOV R0, R4 \n"
1145 " BL apex2us \n"
1146 " LDR PC, =0xFF0A70AC \n"
1147 );
1148 }