This source file includes following definitions.
- dvlp_seq_task
- capt_seq_task
- sub_FF184DA8_my
- exp_drv_task
- sub_FF0BA488_my
- sub_FF0AA65C_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
11 #include "../../../generic/capt_seq.c"
12
13
14
15 void __attribute__((naked,noinline)) dvlp_seq_task() {
16 asm volatile (
17 " STMFD SP!, {R2-R6,LR} \n"
18 " LDR R6, =0x2F68 \n"
19
20 "loc_FF076CDC:\n"
21 " MOV R2, #0 \n"
22 " LDR R0, [R6, #8] \n"
23 " LDR R1, [R6, #0x10] \n"
24 " BL sub_FF02AF24 /*_PostMessageQueue*/ \n"
25 " LDR R0, [R6, #4] \n"
26 " MOV R2, #0 \n"
27 " ADD R1, SP, #4 \n"
28 " BL sub_FF02ADD8 /*_ReceiveMessageQueue*/ \n"
29 " TST R0, #1 \n"
30 " LDRNE R1, =0x18A \n"
31 " BNE loc_FF076D24 \n"
32 " LDR R0, [R6, #8] \n"
33 " MOV R1, SP \n"
34 " BL sub_FF02AEA0 /*_TryReceiveMessageQueue*/ \n"
35 " TST R0, #1 \n"
36 " MOVEQ R5, #0 \n"
37 " BEQ loc_FF076D34 \n"
38 " MOV R1, #0x190 \n"
39
40 "loc_FF076D24:\n"
41 " LDR R0, =0xFF076E8C /*'SsDvlpSeq.c'*/ \n"
42 " BL _DebugAssert \n"
43 " BL _ExitTask \n"
44 " LDMFD SP!, {R2-R6,PC} \n"
45
46 "loc_FF076D34:\n"
47 " LDR R1, [SP, #4] \n"
48 " LDR R0, [R1] \n"
49 " CMP R0, #0 \n"
50 " BEQ loc_FF076D58 \n"
51 " CMP R0, #1 \n"
52 " BEQ loc_FF076D64 \n"
53 " CMP R0, #2 \n"
54 " BLEQ sub_FF076808 \n"
55 " B loc_FF076D78 \n"
56
57 "loc_FF076D58:\n"
58 " BL capt_seq_hook_raw_here\n"
59 " LDR R0, [R1, #8] \n"
60 " BL sub_FF186A1C \n"
61 " B loc_FF076D78 \n"
62
63 "loc_FF076D64:\n"
64 " LDR R0, [R1, #8] \n"
65 " BL sub_FF186D94 \n"
66 " LDR R0, [SP, #4] \n"
67 " LDR R0, [R0, #8] \n"
68 " BL sub_FF185DA4 \n"
69
70 "loc_FF076D78:\n"
71 " LDR R4, [SP, #4] \n"
72 " LDR R0, [R4, #4] \n"
73 " CMP R0, #0 \n"
74 " MOVEQ R1, #0x76 \n"
75 " LDREQ R0, =0xFF076E8C /*'SsDvlpSeq.c'*/ \n"
76 " BLEQ _DebugAssert \n"
77 " STR R5, [R4, #4] \n"
78 " LDR R0, [R6, #4] \n"
79 " ADD R1, SP, #4 \n"
80 " BL sub_FF02AEA0 /*_TryReceiveMessageQueue*/ \n"
81 " TST R0, #1 \n"
82 " BEQ loc_FF076D34 \n"
83 " B loc_FF076CDC \n"
84 );
85 }
86
87
88
89 void __attribute__((naked,noinline)) capt_seq_task() {
90 asm volatile (
91 " STMFD SP!, {R3-R9,LR} \n"
92 " LDR R5, =0x3E1F4 \n"
93 " LDR R7, =0x2F1C \n"
94 " MOV R6, #0 \n"
95
96 "loc_FF074F2C:\n"
97 " LDR R0, [R7, #4] \n"
98 " MOV R2, #0 \n"
99 " MOV R1, SP \n"
100 " BL sub_FF02ADD8 /*_ReceiveMessageQueue*/ \n"
101 " TST R0, #1 \n"
102 " BEQ loc_FF074F58 \n"
103 " LDR R1, =0x47A \n"
104 " LDR R0, =0xFF074A44 /*'SsShootTask.c'*/ \n"
105 " BL _DebugAssert \n"
106 " BL _ExitTask \n"
107 " LDMFD SP!, {R3-R9,PC} \n"
108
109 "loc_FF074F58:\n"
110 " LDR R0, [SP] \n"
111 " LDR R1, [R0] \n"
112 " CMP R1, #0x23 \n"
113 " ADDCC PC, PC, R1, LSL#2 \n"
114 " B loc_FF0751A8 \n"
115 " B loc_FF074FF8 \n"
116 " B loc_FF075010 \n"
117 " B loc_FF075048 \n"
118 " B loc_FF07505C \n"
119 " B loc_FF075054 \n"
120 " B loc_FF075068 \n"
121 " B loc_FF075070 \n"
122 " B loc_FF075078 \n"
123 " B loc_FF075094 \n"
124 " B loc_FF0750D4 \n"
125 " B loc_FF0750A0 \n"
126 " B loc_FF0750AC \n"
127 " B loc_FF0750B4 \n"
128 " B loc_FF0750BC \n"
129 " B loc_FF0750C4 \n"
130 " B loc_FF0750CC \n"
131 " B loc_FF0750DC \n"
132 " B loc_FF0750E4 \n"
133 " B loc_FF0750EC \n"
134 " B loc_FF0750F4 \n"
135 " B loc_FF0750FC \n"
136 " B loc_FF075108 \n"
137 " B loc_FF075110 \n"
138 " B loc_FF075118 \n"
139 " B loc_FF075120 \n"
140 " B loc_FF075128 \n"
141 " B loc_FF075134 \n"
142 " B loc_FF07513C \n"
143 " B loc_FF075144 \n"
144 " B loc_FF07514C \n"
145 " B loc_FF075154 \n"
146 " B loc_FF07515C \n"
147 " B loc_FF075164 \n"
148 " B loc_FF075170 \n"
149 " B loc_FF0751B4 \n"
150
151 "loc_FF074FF8:\n"
152 " BL shooting_expo_iso_override\n"
153 " BL sub_FF0756E8 \n"
154 " BL shooting_expo_param_override\n"
155 " BL sub_FF072758 \n"
156 " MOV R0, #0\n"
157 " STR R0, [R5,#0x28]\n"
158
159
160
161 " B loc_FF0751B4 \n"
162
163 "loc_FF075010:\n"
164 " LDR R8, [R0, #0xC] \n"
165 " MOV R0, R8 \n"
166 " BL sub_FF184DA8_my \n"
167 " MOV R4, R0 \n"
168 " MOV R2, R8 \n"
169 " MOV R1, #1 \n"
170 " BL sub_FF0730E8 \n"
171 " TST R4, #1 \n"
172 " BNE loc_FF075040 \n"
173 " MOV R0, R8 \n"
174 " BL sub_FF1847F0 \n"
175 " B loc_FF0751B4 \n"
176
177 "loc_FF075040:\n"
178 " BL sub_FF1847C0 \n"
179 " B loc_FF0751B4 \n"
180
181 "loc_FF075048:\n"
182 " MOV R0, #1 \n"
183 " BL sub_FF0759C8 \n"
184 " B loc_FF0751B4 \n"
185
186 "loc_FF075054:\n"
187 " BL sub_FF075368 \n"
188 " B loc_FF075060 \n"
189
190 "loc_FF07505C:\n"
191 " BL sub_FF0756C8 \n"
192
193 "loc_FF075060:\n"
194 " STR R6, [R5, #0x28] \n"
195 " B loc_FF0751B4 \n"
196
197 "loc_FF075068:\n"
198 " BL sub_FF0756D0 \n"
199 " B loc_FF0751B4 \n"
200
201 "loc_FF075070:\n"
202 " BL sub_FF0758BC \n"
203 " B loc_FF075098 \n"
204
205 "loc_FF075078:\n"
206 " LDR R4, [R0, #0xC] \n"
207 " MOV R0, R4 \n"
208 " BL sub_FF184F6C \n"
209 " MOV R2, R4 \n"
210 " MOV R1, #9 \n"
211 " BL sub_FF0730E8 \n"
212 " B loc_FF0751B4 \n"
213
214 "loc_FF075094:\n"
215 " BL sub_FF075930 \n"
216
217 "loc_FF075098:\n"
218 " BL sub_FF072758 \n"
219 " B loc_FF0751B4 \n"
220
221 "loc_FF0750A0:\n"
222 " LDR R0, [R5, #0x58] \n"
223 " BL sub_FF0760B0 \n"
224 " B loc_FF0751B4 \n"
225
226 "loc_FF0750AC:\n"
227 " BL sub_FF076384 \n"
228 " B loc_FF0751B4 \n"
229
230 "loc_FF0750B4:\n"
231 " BL sub_FF0763E8 \n"
232 " B loc_FF0751B4 \n"
233
234 "loc_FF0750BC:\n"
235 " BL sub_FF0765E4 \n"
236 " B loc_FF0751B4 \n"
237
238 "loc_FF0750C4:\n"
239 " BL sub_FF076A34 \n"
240 " B loc_FF0751B4 \n"
241
242 "loc_FF0750CC:\n"
243 " BL sub_FF076AE4 \n"
244 " B loc_FF0751B4 \n"
245
246 "loc_FF0750D4:\n"
247 " BL sub_FF0756C8 \n"
248 " B loc_FF0751B4 \n"
249
250 "loc_FF0750DC:\n"
251 " BL sub_FF183B04 \n"
252 " B loc_FF0751B4 \n"
253
254 "loc_FF0750E4:\n"
255 " BL sub_FF183D18 \n"
256 " B loc_FF0751B4 \n"
257
258 "loc_FF0750EC:\n"
259 " BL sub_FF183DBC \n"
260 " B loc_FF0751B4 \n"
261
262 "loc_FF0750F4:\n"
263 " BL sub_FF183E8C \n"
264 " B loc_FF0751B4 \n"
265
266 "loc_FF0750FC:\n"
267 " MOV R0, #0 \n"
268 " BL sub_FF18409C \n"
269 " B loc_FF0751B4 \n"
270
271 "loc_FF075108:\n"
272 " BL sub_FF184204 \n"
273 " B loc_FF0751B4 \n"
274
275 "loc_FF075110:\n"
276 " BL sub_FF18429C \n"
277 " B loc_FF0751B4 \n"
278
279 "loc_FF075118:\n"
280 " BL sub_FF18437C \n"
281 " B loc_FF0751B4 \n"
282
283 "loc_FF075120:\n"
284 " BL sub_FF075B38 \n"
285 " B loc_FF0751B4 \n"
286
287 "loc_FF075128:\n"
288 " BL sub_FF075BCC \n"
289 " BL sub_FF028484 \n"
290 " B loc_FF0751B4 \n"
291
292 "loc_FF075134:\n"
293 " BL sub_FF183F58 \n"
294 " B loc_FF0751B4 \n"
295
296 "loc_FF07513C:\n"
297 " BL sub_FF183F98 \n"
298 " B loc_FF0751B4 \n"
299
300 "loc_FF075144:\n"
301 " BL sub_FF078EF0 \n"
302 " B loc_FF0751B4 \n"
303
304 "loc_FF07514C:\n"
305 " BL sub_FF078F6C \n"
306 " B loc_FF0751B4 \n"
307
308 "loc_FF075154:\n"
309 " BL sub_FF1844B4 \n"
310 " B loc_FF0751B4 \n"
311
312 "loc_FF07515C:\n"
313 " BL sub_FF184518 \n"
314 " B loc_FF0751B4 \n"
315
316 "loc_FF075164:\n"
317 " BL sub_FF078FC8 \n"
318 " BL sub_FF078F88 \n"
319 " B loc_FF0751B4 \n"
320
321 "loc_FF075170:\n"
322 " MOV R0, #1 \n"
323 " BL sub_FF185744 \n"
324 " MOV R0, #1 \n"
325 " BL sub_FF18586C \n"
326 " LDRH R0, [R5, #0x98] \n"
327 " CMP R0, #4 \n"
328 " LDRNEH R0, [R5] \n"
329 " SUBNE R1, R0, #0x8200 \n"
330 " SUBNES R1, R1, #0x2A \n"
331 " BNE loc_FF0751B4 \n"
332 " BL sub_FF078F6C \n"
333 " BL sub_FF079584 \n"
334 " BL sub_FF0793EC \n"
335 " B loc_FF0751B4 \n"
336
337 "loc_FF0751A8:\n"
338 " LDR R1, =0x5DB \n"
339 " LDR R0, =0xFF074A44 /*'SsShootTask.c'*/ \n"
340 " BL _DebugAssert \n"
341
342 "loc_FF0751B4:\n"
343 " LDR R0, [SP] \n"
344 " LDR R1, [R0, #4] \n"
345 " LDR R0, [R7] \n"
346 " BL sub_FF07FAC8 /*_SetEventFlag*/ \n"
347 " LDR R4, [SP] \n"
348 " LDR R0, [R4, #8] \n"
349 " CMP R0, #0 \n"
350 " LDREQ R0, =0xFF074A44 /*'SsShootTask.c'*/ \n"
351 " MOVEQ R1, #0x118 \n"
352 " BLEQ _DebugAssert \n"
353 " STR R6, [R4, #8] \n"
354 " B loc_FF074F2C \n"
355 );
356 }
357
358
359
360 void __attribute__((naked,noinline)) sub_FF184DA8_my() {
361 asm volatile (
362 " STMFD SP!, {R3-R7,LR} \n"
363 " LDR R5, =0x3E1F4 \n"
364 " MOV R4, R0 \n"
365 " LDR R0, [R5, #0x28] \n"
366 " MOV R6, #0 \n"
367 " CMP R0, #0 \n"
368 " BNE loc_FF184E2C \n"
369 " LDR R0, [R5, #0xBC] \n"
370 " CMP R0, #1 \n"
371 " BNE loc_FF184E14 \n"
372 " LDRH R0, [R5, #0x96] \n"
373 " CMP R0, #3 \n"
374 " LDRNE R0, [R4, #8] \n"
375 " CMPNE R0, #1 \n"
376 " BLS loc_FF184DF8 \n"
377 " BL sub_FF022D20 \n"
378 " TST R0, #1 \n"
379 " BEQ loc_FF184E2C \n"
380 " BL sub_FF07AB88 \n"
381 " B loc_FF184E24 \n"
382
383 "loc_FF184DF8:\n"
384 " MOV R0, #0xC \n"
385 " BL sub_FF07AB20 \n"
386 " TST R0, #1 \n"
387 " BEQ loc_FF184E2C \n"
388 " BL sub_FF1855D8 \n"
389 " BL sub_FF072DFC \n"
390 " B loc_FF184E24 \n"
391
392 "loc_FF184E14:\n"
393 " MOV R0, #0xC \n"
394 " BL sub_FF07AB20 \n"
395 " TST R0, #1 \n"
396 " BEQ loc_FF184E2C \n"
397
398 "loc_FF184E24:\n"
399 " MOV R0, #1 \n"
400 " LDMFD SP!, {R3-R7,PC} \n"
401
402 "loc_FF184E2C:\n"
403 " BL sub_FF0756D8 \n"
404 " LDR R0, [R5, #0x28] \n"
405 " CMP R0, #0 \n"
406 " BNE loc_FF184F00 \n"
407 " MOV R0, R4 \n"
408 " BL sub_FF184678 \n"
409 " TST R0, #1 \n"
410 " LDMNEFD SP!, {R3-R7,PC} \n"
411 " MOV R0, R4 \n"
412 " BL sub_FF184AB0 \n"
413 " BL sub_FF18551C \n"
414 " LDR R0, [R5, #0xBC] \n"
415 " CMP R0, #1 \n"
416 " BNE loc_FF184E78 \n"
417 " LDRH R0, [R5, #0x96] \n"
418 " CMP R0, #3 \n"
419 " LDRNE R0, [R4, #8] \n"
420 " CMPNE R0, #1 \n"
421 " BHI loc_FF184E80 \n"
422
423 "loc_FF184E78:\n"
424 " MOV R0, #2 \n"
425 " BL sub_FF07C4B4 \n"
426 " BL wait_until_remote_button_is_released\n"
427 " BL capt_seq_hook_set_nr\n"
428
429 "loc_FF184E80:\n"
430 " LDRH R0, [R5] \n"
431 " SUB R1, R0, #0x8200 \n"
432 " SUBS R1, R1, #0x11 \n"
433 " LDREQ R0, [R4, #0x14] \n"
434 " BLEQ sub_FF0704BC \n"
435 " LDRH R0, [R5] \n"
436 " SUB R1, R0, #0x8200 \n"
437 " SUBS R1, R1, #0x2D \n"
438 " BNE loc_FF184EF0 \n"
439 " MOV R5, #1 \n"
440 " MOV R2, #2 \n"
441 " MOV R1, SP \n"
442 " ADD R0, R2, #0x15C \n"
443 " STR R5, [SP] \n"
444 " BL _GetPropertyCase \n"
445 " TST R0, #1 \n"
446 " MOVNE R1, #0xBC \n"
447 " LDRNE R0, =0xFF185018 /*'SsCaptureSeq.c'*/ \n"
448 " BLNE _DebugAssert \n"
449 " LDRH R0, [SP] \n"
450 " CMP R0, #1 \n"
451 " BLS loc_FF184EE8 \n"
452 " MOV R0, R4 \n"
453 " STR R5, [R4, #0xE4] \n"
454 " BL sub_FF30E164 \n"
455 " B loc_FF184EF8 \n"
456
457 "loc_FF184EE8:\n"
458 " MOV R0, #0 \n"
459 " STR R0, [R4, #0xE4] \n"
460
461 "loc_FF184EF0:\n"
462 " MOV R0, R4 \n"
463 " BL sub_FF30DE14 \n"
464
465 "loc_FF184EF8:\n"
466 " MOV R6, R0 \n"
467 " B loc_FF184F10 \n"
468
469 "loc_FF184F00:\n"
470 " LDR R0, =0x74C0 \n"
471 " LDR R0, [R0] \n"
472 " CMP R0, #0 \n"
473 " MOVNE R6, #0x1D \n"
474
475 "loc_FF184F10:\n"
476 " MOV R0, R6 \n"
477 " LDMFD SP!, {R3-R7,PC} \n"
478 );
479 }
480
481
482
483 void __attribute__((naked,noinline)) exp_drv_task() {
484 asm volatile (
485 " STMFD SP!, {R4-R9,LR} \n"
486 " SUB SP, SP, #0x24 \n"
487 " LDR R6, =0x4348 \n"
488 " LDR R7, =0xBB8 \n"
489 " LDR R4, =0x59ADC \n"
490 " MOV R0, #0 \n"
491 " ADD R5, SP, #0x14 \n"
492 " STR R0, [SP, #0x10] \n"
493
494 "loc_FF0BDD38:\n"
495 " LDR R0, [R6, #0x20] \n"
496 " MOV R2, #0 \n"
497 " ADD R1, SP, #0x20 \n"
498 " BL sub_FF02ADD8 /*_ReceiveMessageQueue*/ \n"
499 " LDR R0, [SP, #0x10] \n"
500 " CMP R0, #1 \n"
501 " BNE loc_FF0BDD84 \n"
502 " LDR R0, [SP, #0x20] \n"
503 " LDR R0, [R0] \n"
504 " CMP R0, #0x14 \n"
505 " CMPNE R0, #0x15 \n"
506 " CMPNE R0, #0x16 \n"
507 " CMPNE R0, #0x17 \n"
508 " BEQ loc_FF0BDEE4 \n"
509 " CMP R0, #0x29 \n"
510 " BEQ loc_FF0BDE6C \n"
511 " ADD R1, SP, #0x10 \n"
512 " MOV R0, #0 \n"
513 " BL sub_FF0BDCC8 \n"
514
515 "loc_FF0BDD84:\n"
516 " LDR R0, [SP, #0x20] \n"
517 " LDR R1, [R0] \n"
518 " CMP R1, #0x2F \n"
519 " BNE loc_FF0BDDB0 \n"
520 " BL sub_FF0BF144 \n"
521 " LDR R0, [R6, #0x1C] \n"
522 " MOV R1, #1 \n"
523 " BL sub_FF07FAC8 /*_SetEventFlag*/ \n"
524 " BL _ExitTask \n"
525 " ADD SP, SP, #0x24 \n"
526 " LDMFD SP!, {R4-R9,PC} \n"
527
528 "loc_FF0BDDB0:\n"
529 " CMP R1, #0x2E \n"
530 " BNE loc_FF0BDDCC \n"
531 " LDR R2, [R0, #0x8C]! \n"
532 " LDR R1, [R0, #4] \n"
533 " MOV R0, R1 \n"
534 " BLX R2 \n"
535 " B loc_FF0BE374 \n"
536
537 "loc_FF0BDDCC:\n"
538 " CMP R1, #0x27 \n"
539 " BNE loc_FF0BDE1C \n"
540 " LDR R0, [R6, #0x1C] \n"
541 " MOV R1, #0x80 \n"
542 " BL sub_FF07FAFC /*_ClearEventFlag*/ \n"
543 " LDR R0, =0xFF0B8FAC \n"
544 " MOV R1, #0x80 \n"
545 " BL sub_FF17581C \n"
546 " LDR R0, [R6, #0x1C] \n"
547 " MOV R2, R7 \n"
548 " MOV R1, #0x80 \n"
549 " BL sub_FF07FA08 /*_WaitForAllEventFlag*/ \n"
550 " TST R0, #1 \n"
551 " LDRNE R1, =0x1756 \n"
552 " BNE loc_FF0BDED8 \n"
553
554 "loc_FF0BDE08:\n"
555 " LDR R1, [SP, #0x20] \n"
556 " LDR R0, [R1, #0x90] \n"
557 " LDR R1, [R1, #0x8C] \n"
558 " BLX R1 \n"
559 " B loc_FF0BE374 \n"
560
561 "loc_FF0BDE1C:\n"
562 " CMP R1, #0x28 \n"
563 " BNE loc_FF0BDE64 \n"
564 " ADD R1, SP, #0x10 \n"
565 " BL sub_FF0BDCC8 \n"
566 " LDR R0, [R6, #0x1C] \n"
567 " MOV R1, #0x100 \n"
568 " BL sub_FF07FAFC /*_ClearEventFlag*/ \n"
569 " LDR R0, =0xFF0B8FBC \n"
570 " MOV R1, #0x100 \n"
571 " BL sub_FF176224 \n"
572 " LDR R0, [R6, #0x1C] \n"
573 " MOV R2, R7 \n"
574 " MOV R1, #0x100 \n"
575 " BL sub_FF07FA08 /*_WaitForAllEventFlag*/ \n"
576 " TST R0, #1 \n"
577 " BEQ loc_FF0BDE08 \n"
578 " LDR R1, =0x1760 \n"
579 " B loc_FF0BDED8 \n"
580
581 "loc_FF0BDE64:\n"
582 " CMP R1, #0x29 \n"
583 " BNE loc_FF0BDE7C \n"
584
585 "loc_FF0BDE6C:\n"
586 " LDR R0, [SP, #0x20] \n"
587 " ADD R1, SP, #0x10 \n"
588 " BL sub_FF0BDCC8 \n"
589 " B loc_FF0BDE08 \n"
590
591 "loc_FF0BDE7C:\n"
592 " CMP R1, #0x2C \n"
593 " BNE loc_FF0BDE94 \n"
594 " BL sub_FF0AA8EC \n"
595 " BL sub_FF0AB55C \n"
596 " BL sub_FF0AB0D4 \n"
597 " B loc_FF0BDE08 \n"
598
599 "loc_FF0BDE94:\n"
600 " CMP R1, #0x2D \n"
601 " BNE loc_FF0BDEE4 \n"
602 " LDR R0, [R6, #0x1C] \n"
603 " MOV R1, #4 \n"
604 " BL sub_FF07FAFC /*_ClearEventFlag*/ \n"
605 " LDR R1, =0xFF0B8FDC \n"
606 " LDR R0, =0xFFFFF400 \n"
607 " MOV R2, #4 \n"
608 " BL sub_FF0AA360 \n"
609 " BL sub_FF0AA5F0 \n"
610 " LDR R0, [R6, #0x1C] \n"
611 " MOV R2, R7 \n"
612 " MOV R1, #4 \n"
613 " BL sub_FF07F924 /*_WaitForAnyEventFlag*/ \n"
614 " TST R0, #1 \n"
615 " BEQ loc_FF0BDE08 \n"
616 " LDR R1, =0x1788 \n"
617
618 "loc_FF0BDED8:\n"
619 " LDR R0, =0xFF0B976C /*'ExpDrv.c'*/ \n"
620 " BL _DebugAssert \n"
621 " B loc_FF0BDE08 \n"
622
623 "loc_FF0BDEE4:\n"
624 " LDR R0, [SP, #0x20] \n"
625 " MOV R8, #1 \n"
626 " LDR R1, [R0] \n"
627 " CMP R1, #0x12 \n"
628 " CMPNE R1, #0x13 \n"
629 " BNE loc_FF0BDF4C \n"
630 " LDR R1, [R0, #0x7C] \n"
631 " ADD R1, R1, R1, LSL#1 \n"
632 " ADD R1, R0, R1, LSL#2 \n"
633 " SUB R1, R1, #8 \n"
634 " LDMIA R1, {R2,R3,R9} \n"
635 " STMIA R5, {R2,R3,R9} \n"
636 " BL sub_FF0BC020 \n"
637 " LDR R0, [SP, #0x20] \n"
638 " LDR R1, [R0, #0x7C] \n"
639 " LDR R3, [R0, #0x8C] \n"
640 " LDR R2, [R0, #0x90] \n"
641 " ADD R0, R0, #4 \n"
642 " BLX R3 \n"
643 " LDR R0, [SP, #0x20] \n"
644 " BL sub_FF0BF558 \n"
645 " LDR R0, [SP, #0x20] \n"
646 " LDR R1, [R0, #0x7C] \n"
647 " LDR R2, [R0, #0x98] \n"
648 " LDR R3, [R0, #0x94] \n"
649 " B loc_FF0BE260 \n"
650
651 "loc_FF0BDF4C:\n"
652 " CMP R1, #0x14 \n"
653 " CMPNE R1, #0x15 \n"
654 " CMPNE R1, #0x16 \n"
655 " CMPNE R1, #0x17 \n"
656 " BNE loc_FF0BE004 \n"
657 " ADD R3, SP, #0x10 \n"
658 " ADD R2, SP, #4 \n"
659 " ADD R1, SP, #0x14 \n"
660 " BL sub_FF0BC288 \n"
661 " CMP R0, #1 \n"
662 " MOV R9, R0 \n"
663 " CMPNE R9, #5 \n"
664 " BNE loc_FF0BDFA0 \n"
665 " LDR R0, [SP, #0x20] \n"
666 " MOV R2, R9 \n"
667 " LDR R1, [R0, #0x7C]! \n"
668 " LDR R12, [R0, #0x10]! \n"
669 " LDR R3, [R0, #4] \n"
670 " ADD R0, SP, #4 \n"
671 " BLX R12 \n"
672 " B loc_FF0BDFD8 \n"
673
674 "loc_FF0BDFA0:\n"
675 " LDR R0, [SP, #0x20] \n"
676 " CMP R9, #2 \n"
677 " LDR R3, [R0, #0x90] \n"
678 " CMPNE R9, #6 \n"
679 " BNE loc_FF0BDFEC \n"
680 " LDR R12, [R0, #0x8C] \n"
681 " MOV R2, R9 \n"
682 " MOV R1, #1 \n"
683 " ADD R0, SP, #4 \n"
684 " BLX R12 \n"
685 " LDR R0, [SP, #0x20] \n"
686 " ADD R2, SP, #4 \n"
687 " ADD R1, SP, #0x14 \n"
688 " BL sub_FF0BDA14 \n"
689
690 "loc_FF0BDFD8:\n"
691 " LDR R0, [SP, #0x20] \n"
692 " LDR R2, [SP, #0x10] \n"
693 " MOV R1, R9 \n"
694 " BL sub_FF0BDC68 \n"
695 " B loc_FF0BE268 \n"
696
697 "loc_FF0BDFEC:\n"
698 " LDR R1, [R0, #0x7C] \n"
699 " LDR R12, [R0, #0x8C] \n"
700 " MOV R2, R9 \n"
701 " ADD R0, R0, #4 \n"
702 " BLX R12 \n"
703 " B loc_FF0BE268 \n"
704
705 "loc_FF0BE004:\n"
706 " CMP R1, #0x23 \n"
707 " CMPNE R1, #0x24 \n"
708 " BNE loc_FF0BE050 \n"
709 " LDR R1, [R0, #0x7C] \n"
710 " ADD R1, R1, R1, LSL#1 \n"
711 " ADD R1, R0, R1, LSL#2 \n"
712 " SUB R1, R1, #8 \n"
713 " LDMIA R1, {R2,R3,R9} \n"
714 " STMIA R5, {R2,R3,R9} \n"
715 " BL sub_FF0BAE10 \n"
716 " LDR R0, [SP, #0x20] \n"
717 " LDR R1, [R0, #0x7C] \n"
718 " LDR R3, [R0, #0x8C] \n"
719 " LDR R2, [R0, #0x90] \n"
720 " ADD R0, R0, #4 \n"
721 " BLX R3 \n"
722 " LDR R0, [SP, #0x20] \n"
723 " BL sub_FF0BB2FC \n"
724 " B loc_FF0BE268 \n"
725
726 "loc_FF0BE050:\n"
727 " ADD R1, R0, #4 \n"
728 " LDMIA R1, {R2,R3,R9} \n"
729 " STMIA R5, {R2,R3,R9} \n"
730 " LDR R1, [R0] \n"
731 " CMP R1, #0x27 \n"
732 " ADDCC PC, PC, R1, LSL#2 \n"
733 " B loc_FF0BE250 \n"
734 " B loc_FF0BE108 \n"
735 " B loc_FF0BE108 \n"
736 " B loc_FF0BE110 \n"
737 " B loc_FF0BE118 \n"
738 " B loc_FF0BE118 \n"
739 " B loc_FF0BE118 \n"
740 " B loc_FF0BE108 \n"
741 " B loc_FF0BE110 \n"
742 " B loc_FF0BE118 \n"
743 " B loc_FF0BE118 \n"
744 " B loc_FF0BE130 \n"
745 " B loc_FF0BE130 \n"
746 " B loc_FF0BE23C \n"
747 " B loc_FF0BE244 \n"
748 " B loc_FF0BE244 \n"
749 " B loc_FF0BE244 \n"
750 " B loc_FF0BE244 \n"
751 " B loc_FF0BE24C \n"
752 " B loc_FF0BE250 \n"
753 " B loc_FF0BE250 \n"
754 " B loc_FF0BE250 \n"
755 " B loc_FF0BE250 \n"
756 " B loc_FF0BE250 \n"
757 " B loc_FF0BE250 \n"
758 " B loc_FF0BE120 \n"
759 " B loc_FF0BE128 \n"
760 " B loc_FF0BE128 \n"
761 " B loc_FF0BE13C \n"
762 " B loc_FF0BE13C \n"
763 " B loc_FF0BE144 \n"
764 " B loc_FF0BE17C \n"
765 " B loc_FF0BE1B4 \n"
766 " B loc_FF0BE1EC \n"
767 " B loc_FF0BE224 \n"
768 " B loc_FF0BE224 \n"
769 " B loc_FF0BE250 \n"
770 " B loc_FF0BE250 \n"
771 " B loc_FF0BE22C \n"
772 " B loc_FF0BE234 \n"
773
774 "loc_FF0BE108:\n"
775 " BL sub_FF0B95A0 \n"
776 " B loc_FF0BE250 \n"
777
778 "loc_FF0BE110:\n"
779 " BL sub_FF0B9898 \n"
780 " B loc_FF0BE250 \n"
781
782 "loc_FF0BE118:\n"
783 " BL sub_FF0B9B00 \n"
784 " B loc_FF0BE250 \n"
785
786 "loc_FF0BE120:\n"
787 " BL sub_FF0B9DB4 \n"
788 " B loc_FF0BE250 \n"
789
790 "loc_FF0BE128:\n"
791 " BL sub_FF0B9FCC \n"
792 " B loc_FF0BE250 \n"
793
794 "loc_FF0BE130:\n"
795 " BL sub_FF0BA488_my \n"
796 " MOV R8, #0 \n"
797 " B loc_FF0BE250 \n"
798
799 "loc_FF0BE13C:\n"
800 " BL sub_FF0BA66C \n"
801 " B loc_FF0BE250 \n"
802
803 "loc_FF0BE144:\n"
804 " LDRH R1, [R0, #4] \n"
805 " STRH R1, [SP, #0x14] \n"
806 " LDRH R1, [R4, #2] \n"
807 " STRH R1, [SP, #0x16] \n"
808 " LDRH R1, [R4, #4] \n"
809 " STRH R1, [SP, #0x18] \n"
810 " LDRH R1, [R4, #6] \n"
811 " STRH R1, [SP, #0x1A] \n"
812 " LDRH R1, [R0, #0xC] \n"
813 " STRH R1, [SP, #0x1C] \n"
814 " LDRH R1, [R4, #0xA] \n"
815 " STRH R1, [SP, #0x1E] \n"
816 " BL sub_FF0BF1D8 \n"
817 " B loc_FF0BE250 \n"
818
819 "loc_FF0BE17C:\n"
820 " LDRH R1, [R0, #4] \n"
821 " STRH R1, [SP, #0x14] \n"
822 " LDRH R1, [R4, #2] \n"
823 " STRH R1, [SP, #0x16] \n"
824 " LDRH R1, [R4, #4] \n"
825 " STRH R1, [SP, #0x18] \n"
826 " LDRH R1, [R4, #6] \n"
827 " STRH R1, [SP, #0x1A] \n"
828 " LDRH R1, [R4, #8] \n"
829 " STRH R1, [SP, #0x1C] \n"
830 " LDRH R1, [R4, #0xA] \n"
831 " STRH R1, [SP, #0x1E] \n"
832 " BL sub_FF0BF358 \n"
833 " B loc_FF0BE250 \n"
834
835 "loc_FF0BE1B4:\n"
836 " LDRH R1, [R4] \n"
837 " STRH R1, [SP, #0x14] \n"
838 " LDRH R1, [R0, #6] \n"
839 " STRH R1, [SP, #0x16] \n"
840 " LDRH R1, [R4, #4] \n"
841 " STRH R1, [SP, #0x18] \n"
842 " LDRH R1, [R4, #6] \n"
843 " STRH R1, [SP, #0x1A] \n"
844 " LDRH R1, [R4, #8] \n"
845 " STRH R1, [SP, #0x1C] \n"
846 " LDRH R1, [R4, #0xA] \n"
847 " STRH R1, [SP, #0x1E] \n"
848 " BL sub_FF0BF40C \n"
849 " B loc_FF0BE250 \n"
850
851 "loc_FF0BE1EC:\n"
852 " LDRH R1, [R4] \n"
853 " STRH R1, [SP, #0x14] \n"
854 " LDRH R1, [R4, #2] \n"
855 " STRH R1, [SP, #0x16] \n"
856 " LDRH R1, [R4, #4] \n"
857 " STRH R1, [SP, #0x18] \n"
858 " LDRH R1, [R4, #6] \n"
859 " STRH R1, [SP, #0x1A] \n"
860 " LDRH R1, [R0, #0xC] \n"
861 " STRH R1, [SP, #0x1C] \n"
862 " LDRH R1, [R4, #0xA] \n"
863 " STRH R1, [SP, #0x1E] \n"
864 " BL sub_FF0BF4B4 \n"
865 " B loc_FF0BE250 \n"
866
867 "loc_FF0BE224:\n"
868 " BL sub_FF0BABE8 \n"
869 " B loc_FF0BE250 \n"
870
871 "loc_FF0BE22C:\n"
872 " BL sub_FF0BB400 \n"
873 " B loc_FF0BE250 \n"
874
875 "loc_FF0BE234:\n"
876 " BL sub_FF0BB90C \n"
877 " B loc_FF0BE250 \n"
878
879 "loc_FF0BE23C:\n"
880 " BL sub_FF0BBAEC \n"
881 " B loc_FF0BE250 \n"
882
883 "loc_FF0BE244:\n"
884 " BL sub_FF0BBCA8 \n"
885 " B loc_FF0BE250 \n"
886
887 "loc_FF0BE24C:\n"
888 " BL sub_FF0BBE18 \n"
889
890 "loc_FF0BE250:\n"
891 " LDR R0, [SP, #0x20] \n"
892 " LDR R1, [R0, #0x7C] \n"
893 " LDR R2, [R0, #0x90] \n"
894 " LDR R3, [R0, #0x8C] \n"
895
896 "loc_FF0BE260:\n"
897 " ADD R0, R0, #4 \n"
898 " BLX R3 \n"
899
900 "loc_FF0BE268:\n"
901 " LDR R1, [SP, #0x20] \n"
902 " LDR R0, [R1] \n"
903 " CMP R0, #0x10 \n"
904 " BEQ loc_FF0BE2A0 \n"
905 " BGT loc_FF0BE290 \n"
906 " CMP R0, #1 \n"
907 " CMPNE R0, #4 \n"
908 " CMPNE R0, #0xE \n"
909 " BNE loc_FF0BE2B0 \n"
910 " B loc_FF0BE2A0 \n"
911
912 "loc_FF0BE290:\n"
913 " CMP R0, #0x13 \n"
914 " CMPNE R0, #0x17 \n"
915 " CMPNE R0, #0x1A \n"
916 " BNE loc_FF0BE2B0 \n"
917
918 "loc_FF0BE2A0:\n"
919 " LDRH R0, [R4] \n"
920 " STRH R0, [SP, #0x14] \n"
921 " LDRH R0, [R4, #8] \n"
922 " STRH R0, [SP, #0x1C] \n"
923
924 "loc_FF0BE2B0:\n"
925 " CMP R8, #1 \n"
926 " BNE loc_FF0BE2FC \n"
927 " LDR R0, [R1, #0x7C] \n"
928 " MOV R2, #0xC \n"
929 " ADD R0, R0, R0, LSL#1 \n"
930 " ADD R0, R1, R0, LSL#2 \n"
931 " SUB R8, R0, #8 \n"
932 " LDR R0, =0x59ADC \n"
933 " ADD R1, SP, #0x14 \n"
934 " BL sub_FF3CA078 \n"
935 " LDR R0, =0x59AE8 \n"
936 " MOV R2, #0xC \n"
937 " ADD R1, SP, #0x14 \n"
938 " BL sub_FF3CA078 \n"
939 " LDR R0, =0x59AF4 \n"
940 " MOV R2, #0xC \n"
941 " MOV R1, R8 \n"
942 " BL sub_FF3CA078 \n"
943 " B loc_FF0BE374 \n"
944
945 "loc_FF0BE2FC:\n"
946 " LDR R0, [R1] \n"
947 " MOV R3, #1 \n"
948 " CMP R0, #0xB \n"
949 " BNE loc_FF0BE340 \n"
950 " MOV R2, #0 \n"
951 " STRD R2, [SP] \n"
952 " MOV R2, R3 \n"
953 " MOV R1, R3 \n"
954 " MOV R0, #0 \n"
955 " BL sub_FF0B9374 \n"
956 " MOV R3, #1 \n"
957 " MOV R2, #0 \n"
958 " STRD R2, [SP] \n"
959 " MOV R2, R3 \n"
960 " MOV R1, R3 \n"
961 " MOV R0, #0 \n"
962 " B loc_FF0BE370 \n"
963
964 "loc_FF0BE340:\n"
965 " MOV R2, #1 \n"
966 " STRD R2, [SP] \n"
967 " MOV R3, R2 \n"
968 " MOV R1, R2 \n"
969 " MOV R0, R2 \n"
970 " BL sub_FF0B9374 \n"
971 " MOV R3, #1 \n"
972 " MOV R2, R3 \n"
973 " MOV R1, R3 \n"
974 " MOV R0, R3 \n"
975 " STR R3, [SP] \n"
976 " STR R3, [SP, #4] \n"
977
978 "loc_FF0BE370:\n"
979 " BL sub_FF0B94EC \n"
980
981 "loc_FF0BE374:\n"
982 " LDR R0, [SP, #0x20] \n"
983 " BL sub_FF0BF144 \n"
984 " B loc_FF0BDD38 \n"
985 );
986 }
987
988
989
990 void __attribute__((naked,noinline)) sub_FF0BA488_my() {
991 asm volatile (
992 " STMFD SP!, {R4-R8,LR} \n"
993 " LDR R7, =0x4348 \n"
994 " MOV R4, R0 \n"
995 " LDR R0, [R7, #0x1C] \n"
996 " MOV R1, #0x3E \n"
997 " BL sub_FF07FAFC /*_ClearEventFlag*/ \n"
998 " MOV R2, #0 \n"
999 " LDRSH R0, [R4, #4] \n"
1000 " MOV R1, R2 \n"
1001 " BL sub_FF0B903C \n"
1002 " MOV R5, R0 \n"
1003 " LDRSH R0, [R4, #6] \n"
1004 " BL sub_FF0B918C \n"
1005 " LDRSH R0, [R4, #8] \n"
1006 " BL sub_FF0B91E4 \n"
1007 " LDRSH R0, [R4, #0xA] \n"
1008 " BL sub_FF0B923C \n"
1009 " LDRSH R0, [R4, #0xC] \n"
1010 " MOV R1, #0 \n"
1011 " BL sub_FF0B9294 \n"
1012 " MOV R6, R0 \n"
1013 " LDRSH R0, [R4, #0xE] \n"
1014 " BL sub_FF0BF174 \n"
1015 " LDR R0, [R4] \n"
1016 " LDR R8, =0x59AF4 \n"
1017 " CMP R0, #0xB \n"
1018 " MOVEQ R5, #0 \n"
1019 " MOVEQ R6, R5 \n"
1020 " BEQ loc_FF0BA524 \n"
1021 " CMP R5, #1 \n"
1022 " BNE loc_FF0BA524 \n"
1023 " LDRSH R0, [R4, #4] \n"
1024 " LDR R1, =0xFF0B8F9C \n"
1025 " MOV R2, #2 \n"
1026 " BL sub_FF175B40 \n"
1027 " STRH R0, [R4, #4] \n"
1028 " MOV R0, #0 \n"
1029 " STR R0, [R7, #0x28] \n"
1030 " B loc_FF0BA52C \n"
1031
1032 "loc_FF0BA524:\n"
1033 " LDRH R0, [R8] \n"
1034 " STRH R0, [R4, #4] \n"
1035
1036 "loc_FF0BA52C:\n"
1037 " CMP R6, #1 \n"
1038 " LDRNEH R0, [R8, #8] \n"
1039 " BNE loc_FF0BA548 \n"
1040 " LDRSH R0, [R4, #0xC] \n"
1041 " LDR R1, =0xFF0B9020 \n"
1042 " MOV R2, #0x20 \n"
1043 " BL sub_FF0BF194 \n"
1044
1045 "loc_FF0BA548:\n"
1046 " STRH R0, [R4, #0xC] \n"
1047 " LDRSH R0, [R4, #6] \n"
1048 " BL sub_FF0AA65C_my \n"
1049 " LDR PC, =0xFF0BA554 \n"
1050 );
1051 }
1052
1053
1054
1055 void __attribute__((naked,noinline)) sub_FF0AA65C_my() {
1056 asm volatile (
1057 " STMFD SP!, {R4-R6,LR} \n"
1058 " LDR R5, =0x3FF0 \n"
1059 " MOV R4, R0 \n"
1060 " LDR R0, [R5, #4] \n"
1061 " CMP R0, #1 \n"
1062 " LDRNE R1, =0x146 \n"
1063 " LDRNE R0, =0xFF0AA494 /*'Shutter.c'*/ \n"
1064 " BLNE _DebugAssert \n"
1065 " CMN R4, #0xC00 \n"
1066 " LDREQSH R4, [R5, #2] \n"
1067 " CMN R4, #0xC00 \n"
1068 " MOVEQ R1, #0x14C \n"
1069 " LDREQ R0, =0xFF0AA494 /*'Shutter.c'*/ \n"
1070 " STRH R4, [R5, #2] \n"
1071 " BLEQ _DebugAssert \n"
1072 " MOV R0, R4 \n"
1073 " BL apex2us \n"
1074 " LDR PC, =0xFF0AA6A0 \n"
1075 );
1076 }