This source file includes following definitions.
- capt_seq_task
- sub_FF07D0C4_my
- sub_FF1D2C18_my
- exp_drv_task
- sub_FF0CC664_my
- sub_FF0BB4A8_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-R7,LR} \n"
19 " LDR R5, =0x403D8 \n"
20 " LDR R7, =0x4078 \n"
21 " MOV R6, #0 \n"
22
23 "loc_FF07CCEC:\n"
24 " LDR R0, [R7, #4] \n"
25 " MOV R2, #0 \n"
26 " MOV R1, SP \n"
27 " BL sub_FF02AFD0 /*_ReceiveMessageQueue*/ \n"
28 " TST R0, #1 \n"
29 " BEQ loc_FF07CD18 \n"
30 " LDR R1, =0x491 \n"
31 " LDR R0, =0xFF07C654 /*'SsShootTask.c'*/ \n"
32 " BL _DebugAssert \n"
33 " BL _ExitTask \n"
34 " LDMFD SP!, {R3-R7,PC} \n"
35
36 "loc_FF07CD18:\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_FF07CF70 \n"
42 " B loc_FF07CDC8 \n"
43 " B loc_FF07CDE0 \n"
44 " B loc_FF07CDEC \n"
45 " B loc_FF07CE00 \n"
46 " B loc_FF07CDF8 \n"
47 " B loc_FF07CE0C \n"
48 " B loc_FF07CE14 \n"
49 " B loc_FF07CE1C \n"
50 " B loc_FF07CE38 \n"
51 " B loc_FF07CE78 \n"
52 " B loc_FF07CE44 \n"
53 " B loc_FF07CE50 \n"
54 " B loc_FF07CE58 \n"
55 " B loc_FF07CE60 \n"
56 " B loc_FF07CE68 \n"
57 " B loc_FF07CE70 \n"
58 " B loc_FF07CE80 \n"
59 " B loc_FF07CE88 \n"
60 " B loc_FF07CE90 \n"
61 " B loc_FF07CE98 \n"
62 " B loc_FF07CEA0 \n"
63 " B loc_FF07CEA8 \n"
64 " B loc_FF07CEB0 \n"
65 " B loc_FF07CEB8 \n"
66 " B loc_FF07CEC0 \n"
67 " B loc_FF07CEC8 \n"
68 " B loc_FF07CED4 \n"
69 " B loc_FF07CEDC \n"
70 " B loc_FF07CEE8 \n"
71 " B loc_FF07CEF0 \n"
72 " B loc_FF07CEF8 \n"
73 " B loc_FF07CF00 \n"
74 " B loc_FF07CF08 \n"
75 " B loc_FF07CF10 \n"
76 " B loc_FF07CF18 \n"
77 " B loc_FF07CF24 \n"
78 " B loc_FF07CF2C \n"
79 " B loc_FF07CF38 \n"
80 " B loc_FF07CF7C \n"
81
82 "loc_FF07CDC8:\n"
83 " BL shooting_expo_iso_override\n"
84 " BL sub_FF07D5B0 \n"
85 " BL shooting_expo_param_override\n"
86 " BL sub_FF079F94 \n"
87 " MOV R0, #0\n"
88 " STR R0, [R5,#0x28]\n"
89
90
91
92 " B loc_FF07CF7C \n"
93
94 "loc_FF07CDE0:\n"
95 " LDR R0, [R0, #0x10] \n"
96 " BL sub_FF07D0C4_my \n"
97 " B loc_FF07CF7C \n"
98
99 "loc_FF07CDEC:\n"
100 " MOV R0, #1 \n"
101 " BL sub_FF07D8D4 \n"
102 " B loc_FF07CF7C \n"
103
104 "loc_FF07CDF8:\n"
105 " BL sub_FF07D21C \n"
106 " B loc_FF07CE04 \n"
107
108 "loc_FF07CE00:\n"
109 " BL sub_FF07D590 \n"
110
111 "loc_FF07CE04:\n"
112 " STR R6, [R5, #0x28] \n"
113 " B loc_FF07CF7C \n"
114
115 "loc_FF07CE0C:\n"
116 " BL sub_FF07D598 \n"
117 " B loc_FF07CF7C \n"
118
119 "loc_FF07CE14:\n"
120 " BL sub_FF07D7A8 \n"
121 " B loc_FF07CE3C \n"
122
123 "loc_FF07CE1C:\n"
124 " LDR R4, [R0, #0x10] \n"
125 " MOV R0, R4 \n"
126 " BL sub_FF1D2EF0 \n"
127 " MOV R2, R4 \n"
128 " MOV R1, #9 \n"
129 " BL sub_FF07AA30 \n"
130 " B loc_FF07CF7C \n"
131
132 "loc_FF07CE38:\n"
133 " BL sub_FF07D838 \n"
134
135 "loc_FF07CE3C:\n"
136 " BL sub_FF079F94 \n"
137 " B loc_FF07CF7C \n"
138
139 "loc_FF07CE44:\n"
140 " LDR R0, [R5, #0x58] \n"
141 " BL sub_FF07E4B8 \n"
142 " B loc_FF07CF7C \n"
143
144 "loc_FF07CE50:\n"
145 " BL sub_FF07E7B4 \n"
146 " B loc_FF07CF7C \n"
147
148 "loc_FF07CE58:\n"
149 " BL sub_FF07E818 \n"
150 " B loc_FF07CF7C \n"
151
152 "loc_FF07CE60:\n"
153 " BL sub_FF07EA14 \n"
154 " B loc_FF07CF7C \n"
155
156 "loc_FF07CE68:\n"
157 " BL sub_FF07EE64 \n"
158 " B loc_FF07CF7C \n"
159
160 "loc_FF07CE70:\n"
161 " BL sub_FF07EF14 \n"
162 " B loc_FF07CF7C \n"
163
164 "loc_FF07CE78:\n"
165 " BL sub_FF07D590 \n"
166 " B loc_FF07CF7C \n"
167
168 "loc_FF07CE80:\n"
169 " BL sub_FF1D0E34 \n"
170 " B loc_FF07CF7C \n"
171
172 "loc_FF07CE88:\n"
173 " BL sub_FF1D10A0 \n"
174 " B loc_FF07CF7C \n"
175
176 "loc_FF07CE90:\n"
177 " BL sub_FF1D115C \n"
178 " B loc_FF07CF7C \n"
179
180 "loc_FF07CE98:\n"
181 " BL sub_FF1D1244 \n"
182 " B loc_FF07CF7C \n"
183
184 "loc_FF07CEA0:\n"
185 " BL sub_FF1D1340 \n"
186 " B loc_FF07CF7C \n"
187
188 "loc_FF07CEA8:\n"
189 " MOV R0, #0 \n"
190 " B loc_FF07CECC \n"
191
192 "loc_FF07CEB0:\n"
193 " BL sub_FF1D1580 \n"
194 " B loc_FF07CF7C \n"
195
196 "loc_FF07CEB8:\n"
197 " BL sub_FF1D1614 \n"
198 " B loc_FF07CF7C \n"
199
200 "loc_FF07CEC0:\n"
201 " BL sub_FF1D16D0 \n"
202 " B loc_FF07CF7C \n"
203
204 "loc_FF07CEC8:\n"
205 " MOV R0, #1 \n"
206
207 "loc_FF07CECC:\n"
208 " BL sub_FF1D1410 \n"
209 " B loc_FF07CF7C \n"
210
211 "loc_FF07CED4:\n"
212 " BL sub_FF07DB10 \n"
213 " B loc_FF07CF7C \n"
214
215 "loc_FF07CEDC:\n"
216 " BL sub_FF07DBA4 \n"
217 " BL sub_FF1D41FC \n"
218 " B loc_FF07CF7C \n"
219
220 "loc_FF07CEE8:\n"
221 " BL sub_FF07DFB4 \n"
222 " B loc_FF07CF7C \n"
223
224 "loc_FF07CEF0:\n"
225 " BL sub_FF07E100 \n"
226 " B loc_FF07CF7C \n"
227
228 "loc_FF07CEF8:\n"
229 " BL sub_FF1D42C8 \n"
230 " B loc_FF07CF7C \n"
231
232 "loc_FF07CF00:\n"
233 " BL sub_FF028430 \n"
234 " B loc_FF07CF7C \n"
235
236 "loc_FF07CF08:\n"
237 " BL sub_FF0818DC \n"
238 " B loc_FF07CF7C \n"
239
240 "loc_FF07CF10:\n"
241 " BL sub_FF081964 \n"
242 " B loc_FF07CF7C \n"
243
244 "loc_FF07CF18:\n"
245 " LDR R0, [R0, #0xC] \n"
246 " BL sub_FF1D17F8 \n"
247 " B loc_FF07CF7C \n"
248
249 "loc_FF07CF24:\n"
250 " BL sub_FF1D1868 \n"
251 " B loc_FF07CF7C \n"
252
253 "loc_FF07CF2C:\n"
254 " BL sub_FF0819CC \n"
255 " BL sub_FF081984 \n"
256 " B loc_FF07CF7C \n"
257
258 "loc_FF07CF38:\n"
259 " MOV R0, #1 \n"
260 " BL sub_FF1D3600 \n"
261 " MOV R0, #1 \n"
262 " BL sub_FF1D3734 \n"
263 " LDRH R0, [R5, #0xA0] \n"
264 " CMP R0, #4 \n"
265 " LDRNEH R0, [R5] \n"
266 " SUBNE R1, R0, #0x4200 \n"
267 " SUBNES R1, R1, #0x2B \n"
268 " BNE loc_FF07CF7C \n"
269 " BL sub_FF081964 \n"
270 " BL sub_FF0820E0 \n"
271 " BL sub_FF081DF4 \n"
272 " B loc_FF07CF7C \n"
273
274 "loc_FF07CF70:\n"
275 " LDR R1, =0x5F2 \n"
276 " LDR R0, =0xFF07C654 /*'SsShootTask.c'*/ \n"
277 " BL _DebugAssert \n"
278
279 "loc_FF07CF7C:\n"
280 " LDR R0, [SP] \n"
281 " LDR R1, [R0, #4] \n"
282 " LDR R0, [R7] \n"
283 " BL sub_FF0893D8 /*_SetEventFlag*/ \n"
284 " LDR R4, [SP] \n"
285 " LDR R0, [R4, #8] \n"
286 " CMP R0, #0 \n"
287 " LDREQ R1, =0x117 \n"
288 " LDREQ R0, =0xFF07C654 /*'SsShootTask.c'*/ \n"
289 " BLEQ _DebugAssert \n"
290 " STR R6, [R4, #8] \n"
291 " B loc_FF07CCEC \n"
292 );
293 }
294
295
296
297 void __attribute__((naked,noinline)) sub_FF07D0C4_my() {
298 asm volatile (
299 " STMFD SP!, {R4-R6,LR} \n"
300 " LDR R5, =0x403D8 \n"
301 " MOV R6, R0 \n"
302 " LDR R0, [R5, #0x28] \n"
303 " LDR R4, =0x222F \n"
304 " CMP R0, #0 \n"
305 " BNE loc_FF07D120 \n"
306 " LDRH R0, [R5] \n"
307 " CMP R0, R4 \n"
308 " SUBNE R1, R0, #0x4200 \n"
309 " SUBNES R1, R1, #0x2E \n"
310 " BLEQ sub_FF07FA08 \n"
311 " BL sub_FF07F6A4 \n"
312 " MOV R1, R6 \n"
313 " BL sub_FF07F6FC \n"
314 " LDR R0, =0x10F \n"
315 " MOV R2, #4 \n"
316 " ADD R1, R6, #0x68 \n"
317 " BL _SetPropertyCase \n"
318 " MOV R2, #4 \n"
319 " ADD R1, R6, #0x6C \n"
320 " MOV R0, #0x2C \n"
321 " BL _SetPropertyCase \n"
322
323 "loc_FF07D120:\n"
324 " LDRH R0, [R5] \n"
325 " CMP R0, R4 \n"
326 " MOV R0, R6 \n"
327 " BNE loc_FF07D138 \n"
328 " BL sub_FF1D3C24 \n"
329 " B loc_FF07D13C \n"
330
331 "loc_FF07D138:\n"
332 " BL sub_FF1D2C18_my \n"
333
334 "loc_FF07D13C:\n"
335 " BL capt_seq_hook_raw_here\n"
336 " MOV R4, R0 \n"
337 " MOV R2, R6 \n"
338 " MOV R1, #1 \n"
339 " BL sub_FF07AA30 \n"
340 " TST R4, #1 \n"
341 " MOVEQ R0, R6 \n"
342 " BLEQ sub_FF1D1DDC \n"
343 " LDR R0, [R5, #0xC4] \n"
344 " CMP R0, #2 \n"
345 " LDMNEFD SP!, {R4-R6,PC} \n"
346 " MOV R0, R6 \n"
347 " LDMFD SP!, {R4-R6,LR} \n"
348 " B sub_FF07AC04 \n"
349 );
350 }
351
352
353
354 void __attribute__((naked,noinline)) sub_FF1D2C18_my() {
355 asm volatile (
356 " STMFD SP!, {R3-R7,LR} \n"
357 " LDR R5, =0x403D8 \n"
358 " MOV R4, R0 \n"
359 " LDR R0, [R5, #0x28] \n"
360 " LDR R6, =0x420D \n"
361 " CMP R0, #0 \n"
362 " MOV R7, #0 \n"
363 " BNE loc_FF1D2CA8 \n"
364 " LDR R0, [R5, #0xC4] \n"
365 " CMP R0, #0 \n"
366 " BNE loc_FF1D2C58 \n"
367 " MOV R0, #0xC \n"
368 " BL sub_FF083BD0 \n"
369 " TST R0, #1 \n"
370 " BEQ loc_FF1D2CA8 \n"
371 " B loc_FF1D2CA0 \n"
372
373 "loc_FF1D2C58:\n"
374 " LDRH R0, [R5] \n"
375 " CMP R0, R6 \n"
376 " LDRNEH R0, [R5, #0x9E] \n"
377 " CMPNE R0, #3 \n"
378 " LDRNE R0, [R4, #8] \n"
379 " CMPNE R0, #1 \n"
380 " BLS loc_FF1D2C88 \n"
381 " BL sub_FF022098 \n"
382 " TST R0, #1 \n"
383 " BEQ loc_FF1D2CA8 \n"
384 " BL sub_FF083C38 \n"
385 " B loc_FF1D2CA0 \n"
386
387 "loc_FF1D2C88:\n"
388 " MOV R0, #0xC \n"
389 " BL sub_FF083BD0 \n"
390 " TST R0, #1 \n"
391 " BEQ loc_FF1D2CA8 \n"
392 " BL sub_FF1D3478 \n"
393 " BL sub_FF07A6FC \n"
394
395 "loc_FF1D2CA0:\n"
396 " MOV R0, #1 \n"
397 " LDMFD SP!, {R3-R7,PC} \n"
398
399 "loc_FF1D2CA8:\n"
400 " LDRH R0, [R5] \n"
401 " CMP R0, R6 \n"
402 " LDRNEH R0, [R5, #0x9E] \n"
403 " CMPNE R0, #3 \n"
404 " LDRNE R0, [R4, #8] \n"
405 " CMPNE R0, #1 \n"
406 " BLS loc_FF1D2CD8 \n"
407 " LDRH R0, [R5, #0x9C] \n"
408 " CMP R0, #0 \n"
409 " LDREQH R0, [R5, #0x98] \n"
410 " CMPEQ R0, #2 \n"
411 " BLEQ sub_FF07DC78 \n"
412
413 "loc_FF1D2CD8:\n"
414 " LDRH R1, [R5] \n"
415 " LDRH R0, [R5, #0x9E] \n"
416 " CMP R1, R6 \n"
417 " BEQ loc_FF1D2D18 \n"
418 " CMP R0, #3 \n"
419 " BEQ loc_FF1D2D58 \n"
420 " LDR R0, [R4, #8] \n"
421 " CMP R0, #1 \n"
422 " BLS loc_FF1D2D20 \n"
423 " LDRH R0, [R5, #0x9C] \n"
424 " CMP R0, #0 \n"
425 " BNE loc_FF1D2D58 \n"
426 " LDRH R0, [R5, #0x98] \n"
427 " CMP R0, #2 \n"
428 " BEQ loc_FF1D2D54 \n"
429 " B loc_FF1D2D2C \n"
430
431 "loc_FF1D2D18:\n"
432 " CMP R0, #3 \n"
433 " BEQ loc_FF1D2D58 \n"
434
435 "loc_FF1D2D20:\n"
436 " LDRH R0, [R5, #0x9C] \n"
437 " CMP R0, #0 \n"
438 " BNE loc_FF1D2D58 \n"
439
440 "loc_FF1D2D2C:\n"
441 " LDRH R0, [R5, #0x98] \n"
442 " CMP R0, #1 \n"
443 " BNE loc_FF1D2D58 \n"
444 " CMP R1, R6 \n"
445 " LDRNE R0, [R4, #8] \n"
446 " CMPNE R0, #1 \n"
447 " BLS loc_FF1D2D58 \n"
448 " LDR R0, [R4, #0x10] \n"
449 " CMP R0, #1 \n"
450 " BNE loc_FF1D2D58 \n"
451
452 "loc_FF1D2D54:\n"
453 " BL sub_FF1D4300 \n"
454
455 "loc_FF1D2D58:\n"
456 " BL sub_FF1D42C8 \n"
457 " BL sub_FF07D5A0 \n"
458 " LDR R0, [R5, #0x28] \n"
459 " CMP R0, #0 \n"
460 " BNE loc_FF1D2E48 \n"
461 " MOV R0, R4 \n"
462 " BL sub_FF1D1CC8 \n"
463 " TST R0, #1 \n"
464 " LDMNEFD SP!, {R3-R7,PC} \n"
465 " LDR R0, [R5, #0xC4] \n"
466 " CMP R0, #0 \n"
467 " LDRNEH R0, [R5] \n"
468 " CMPNE R0, R6 \n"
469 " LDRNEH R0, [R5, #0x9E] \n"
470 " CMPNE R0, #3 \n"
471 " LDRNE R0, [R4, #8] \n"
472 " CMPNE R0, #1 \n"
473 " BHI loc_FF1D2DB8 \n"
474 " MOV R0, R4 \n"
475 " BL sub_FF1D20C8 \n"
476 " BL sub_FF1D33BC \n"
477 " LDR R0, [R5, #0xC4] \n"
478 " CMP R0, #0 \n"
479 " BEQ loc_FF1D2DD4 \n"
480
481 "loc_FF1D2DB8:\n"
482 " LDRH R0, [R5] \n"
483 " CMP R0, R6 \n"
484 " LDRNEH R0, [R5, #0x9E] \n"
485 " CMPNE R0, #3 \n"
486 " LDRNE R0, [R4, #8] \n"
487 " CMPNE R0, #1 \n"
488 " BHI loc_FF1D2DDC \n"
489
490 "loc_FF1D2DD4:\n"
491 " MOV R0, #2 \n"
492 " BL sub_FF085394 \n"
493 " BL wait_until_remote_button_is_released\n"
494 " BL capt_seq_hook_set_nr\n"
495
496 "loc_FF1D2DDC:\n"
497 " LDRH R0, [R5] \n"
498 " SUB R1, R0, #0x4200 \n"
499 " SUBS R1, R1, #0x2E \n"
500 " BNE loc_FF1D2E38 \n"
501 " MOV R5, #1 \n"
502 " MOV R2, #2 \n"
503 " MOV R1, SP \n"
504 " ADD R0, R2, #0x15C \n"
505 " STR R5, [SP] \n"
506 " BL _GetPropertyCase \n"
507 " TST R0, #1 \n"
508 " MOVNE R1, #0xC5 \n"
509 " LDRNE R0, =0xFF1D2F84 /*'SsCaptureSeq.c'*/ \n"
510 " BLNE _DebugAssert \n"
511 " LDRH R0, [SP] \n"
512 " CMP R0, #1 \n"
513 " BLS loc_FF1D2E30 \n"
514 " MOV R0, R4 \n"
515 " STR R5, [R4, #0x11C] \n"
516 " BL sub_FF373080 \n"
517 " B loc_FF1D2E40 \n"
518
519 "loc_FF1D2E30:\n"
520 " MOV R0, #0 \n"
521 " STR R0, [R4, #0x11C] \n"
522
523 "loc_FF1D2E38:\n"
524 " MOV R0, R4 \n"
525 " BL sub_FF1D2848 \n"
526
527 "loc_FF1D2E40:\n"
528 " MOV R7, R0 \n"
529 " B loc_FF1D2E58 \n"
530
531 "loc_FF1D2E48:\n"
532 " LDR R0, =0xA05C \n"
533 " LDR R0, [R0] \n"
534 " CMP R0, #0 \n"
535 " MOVNE R7, #0x1D \n"
536
537 "loc_FF1D2E58:\n"
538 " MOV R0, R7 \n"
539 " LDMFD SP!, {R3-R7,PC} \n"
540 );
541 }
542
543
544
545 void __attribute__((naked,noinline)) exp_drv_task() {
546 asm volatile (
547 " STMFD SP!, {R4-R9,LR} \n"
548 " SUB SP, SP, #0x24 \n"
549 " LDR R6, =0x5A98 \n"
550 " LDR R7, =0xBB8 \n"
551 " LDR R4, =0x5E790 \n"
552 " MOV R0, #0 \n"
553 " ADD R5, SP, #0x14 \n"
554 " STR R0, [SP, #0x10] \n"
555
556 "loc_FF0CFB98:\n"
557 " LDR R0, [R6, #0x24] \n"
558 " MOV R2, #0 \n"
559 " ADD R1, SP, #0x20 \n"
560 " BL sub_FF02AFD0 /*_ReceiveMessageQueue*/ \n"
561 " LDR R0, [SP, #0x10] \n"
562 " CMP R0, #1 \n"
563 " BNE loc_FF0CFBE4 \n"
564 " LDR R0, [SP, #0x20] \n"
565 " LDR R0, [R0] \n"
566 " CMP R0, #0x14 \n"
567 " CMPNE R0, #0x15 \n"
568 " CMPNE R0, #0x16 \n"
569 " CMPNE R0, #0x17 \n"
570 " BEQ loc_FF0CFD44 \n"
571 " CMP R0, #0x2A \n"
572 " BEQ loc_FF0CFCCC \n"
573 " ADD R1, SP, #0x10 \n"
574 " MOV R0, #0 \n"
575 " BL sub_FF0CFB28 \n"
576
577 "loc_FF0CFBE4:\n"
578 " LDR R0, [SP, #0x20] \n"
579 " LDR R1, [R0] \n"
580 " CMP R1, #0x30 \n"
581 " BNE loc_FF0CFC10 \n"
582 " BL sub_FF0D0FE4 \n"
583 " LDR R0, [R6, #0x20] \n"
584 " MOV R1, #1 \n"
585 " BL sub_FF0893D8 /*_SetEventFlag*/ \n"
586 " BL _ExitTask \n"
587 " ADD SP, SP, #0x24 \n"
588 " LDMFD SP!, {R4-R9,PC} \n"
589
590 "loc_FF0CFC10:\n"
591 " CMP R1, #0x2F \n"
592 " BNE loc_FF0CFC2C \n"
593 " LDR R2, [R0, #0x8C]! \n"
594 " LDR R1, [R0, #4] \n"
595 " MOV R0, R1 \n"
596 " BLX R2 \n"
597 " B loc_FF0D01DC \n"
598
599 "loc_FF0CFC2C:\n"
600 " CMP R1, #0x28 \n"
601 " BNE loc_FF0CFC7C \n"
602 " LDR R0, [R6, #0x20] \n"
603 " MOV R1, #0x80 \n"
604 " BL sub_FF08940C /*_ClearEventFlag*/ \n"
605 " LDR R0, =0xFF0CB27C \n"
606 " MOV R1, #0x80 \n"
607 " BL sub_FF1C0A78 \n"
608 " LDR R0, [R6, #0x20] \n"
609 " MOV R2, R7 \n"
610 " MOV R1, #0x80 \n"
611 " BL sub_FF089318 /*_WaitForAllEventFlag*/ \n"
612 " TST R0, #1 \n"
613 " LDRNE R1, =0x1543 \n"
614 " BNE loc_FF0CFD38 \n"
615
616 "loc_FF0CFC68:\n"
617 " LDR R1, [SP, #0x20] \n"
618 " LDR R0, [R1, #0x90] \n"
619 " LDR R1, [R1, #0x8C] \n"
620 " BLX R1 \n"
621 " B loc_FF0D01DC \n"
622
623 "loc_FF0CFC7C:\n"
624 " CMP R1, #0x29 \n"
625 " BNE loc_FF0CFCC4 \n"
626 " ADD R1, SP, #0x10 \n"
627 " BL sub_FF0CFB28 \n"
628 " LDR R0, [R6, #0x20] \n"
629 " MOV R1, #0x100 \n"
630 " BL sub_FF08940C /*_ClearEventFlag*/ \n"
631 " LDR R0, =0xFF0CB28C \n"
632 " MOV R1, #0x100 \n"
633 " BL sub_FF1C1848 \n"
634 " LDR R0, [R6, #0x20] \n"
635 " MOV R2, R7 \n"
636 " MOV R1, #0x100 \n"
637 " BL sub_FF089318 /*_WaitForAllEventFlag*/ \n"
638 " TST R0, #1 \n"
639 " BEQ loc_FF0CFC68 \n"
640 " LDR R1, =0x154D \n"
641 " B loc_FF0CFD38 \n"
642
643 "loc_FF0CFCC4:\n"
644 " CMP R1, #0x2A \n"
645 " BNE loc_FF0CFCDC \n"
646
647 "loc_FF0CFCCC:\n"
648 " LDR R0, [SP, #0x20] \n"
649 " ADD R1, SP, #0x10 \n"
650 " BL sub_FF0CFB28 \n"
651 " B loc_FF0CFC68 \n"
652
653 "loc_FF0CFCDC:\n"
654 " CMP R1, #0x2D \n"
655 " BNE loc_FF0CFCF4 \n"
656 " BL sub_FF0BB75C \n"
657 " BL sub_FF0BC448 \n"
658 " BL sub_FF0BBFAC \n"
659 " B loc_FF0CFC68 \n"
660
661 "loc_FF0CFCF4:\n"
662 " CMP R1, #0x2E \n"
663 " BNE loc_FF0CFD44 \n"
664 " LDR R0, [R6, #0x20] \n"
665 " MOV R1, #4 \n"
666 " BL sub_FF08940C /*_ClearEventFlag*/ \n"
667 " LDR R1, =0xFF0CB2AC \n"
668 " LDR R0, =0xFFFFF400 \n"
669 " MOV R2, #4 \n"
670 " BL sub_FF0BB1AC \n"
671 " BL sub_FF0BB43C \n"
672 " LDR R0, [R6, #0x20] \n"
673 " MOV R2, R7 \n"
674 " MOV R1, #4 \n"
675 " BL sub_FF089234 /*_WaitForAnyEventFlag*/ \n"
676 " TST R0, #1 \n"
677 " BEQ loc_FF0CFC68 \n"
678 " LDR R1, =0x1575 \n"
679
680 "loc_FF0CFD38:\n"
681 " LDR R0, =0xFF0CBA38 /*'ExpDrv.c'*/ \n"
682 " BL _DebugAssert \n"
683 " B loc_FF0CFC68 \n"
684
685 "loc_FF0CFD44:\n"
686 " LDR R0, [SP, #0x20] \n"
687 " MOV R8, #1 \n"
688 " LDR R1, [R0] \n"
689 " CMP R1, #0x12 \n"
690 " CMPNE R1, #0x13 \n"
691 " BNE loc_FF0CFDAC \n"
692 " LDR R1, [R0, #0x7C] \n"
693 " ADD R1, R1, R1, LSL#1 \n"
694 " ADD R1, R0, R1, LSL#2 \n"
695 " SUB R1, R1, #8 \n"
696 " LDMIA R1, {R2,R3,R9} \n"
697 " STMIA R5, {R2,R3,R9} \n"
698 " BL sub_FF0CE028 \n"
699 " LDR R0, [SP, #0x20] \n"
700 " LDR R1, [R0, #0x7C] \n"
701 " LDR R3, [R0, #0x8C] \n"
702 " LDR R2, [R0, #0x90] \n"
703 " ADD R0, R0, #4 \n"
704 " BLX R3 \n"
705 " LDR R0, [SP, #0x20] \n"
706 " BL sub_FF0D13F4 \n"
707 " LDR R0, [SP, #0x20] \n"
708 " LDR R1, [R0, #0x7C] \n"
709 " LDR R2, [R0, #0x98] \n"
710 " LDR R3, [R0, #0x94] \n"
711 " B loc_FF0D00C8 \n"
712
713 "loc_FF0CFDAC:\n"
714 " CMP R1, #0x14 \n"
715 " CMPNE R1, #0x15 \n"
716 " CMPNE R1, #0x16 \n"
717 " CMPNE R1, #0x17 \n"
718 " BNE loc_FF0CFE64 \n"
719 " ADD R3, SP, #0x10 \n"
720 " ADD R2, SP, #4 \n"
721 " ADD R1, SP, #0x14 \n"
722 " BL sub_FF0CE294 \n"
723 " CMP R0, #1 \n"
724 " MOV R9, R0 \n"
725 " CMPNE R9, #5 \n"
726 " BNE loc_FF0CFE00 \n"
727 " LDR R0, [SP, #0x20] \n"
728 " MOV R2, R9 \n"
729 " LDR R1, [R0, #0x7C]! \n"
730 " LDR R12, [R0, #0x10]! \n"
731 " LDR R3, [R0, #4] \n"
732 " ADD R0, SP, #4 \n"
733 " BLX R12 \n"
734 " B loc_FF0CFE38 \n"
735
736 "loc_FF0CFE00:\n"
737 " LDR R0, [SP, #0x20] \n"
738 " CMP R9, #2 \n"
739 " LDR R3, [R0, #0x90] \n"
740 " CMPNE R9, #6 \n"
741 " BNE loc_FF0CFE4C \n"
742 " LDR R12, [R0, #0x8C] \n"
743 " MOV R2, R9 \n"
744 " MOV R1, #1 \n"
745 " ADD R0, SP, #4 \n"
746 " BLX R12 \n"
747 " LDR R0, [SP, #0x20] \n"
748 " ADD R2, SP, #4 \n"
749 " ADD R1, SP, #0x14 \n"
750 " BL sub_FF0CF814 \n"
751
752 "loc_FF0CFE38:\n"
753 " LDR R0, [SP, #0x20] \n"
754 " LDR R2, [SP, #0x10] \n"
755 " MOV R1, R9 \n"
756 " BL sub_FF0CFAC8 \n"
757 " B loc_FF0D00D0 \n"
758
759 "loc_FF0CFE4C:\n"
760 " LDR R1, [R0, #0x7C] \n"
761 " LDR R12, [R0, #0x8C] \n"
762 " MOV R2, R9 \n"
763 " ADD R0, R0, #4 \n"
764 " BLX R12 \n"
765 " B loc_FF0D00D0 \n"
766
767 "loc_FF0CFE64:\n"
768 " CMP R1, #0x23 \n"
769 " CMPNE R1, #0x24 \n"
770 " CMPNE R1, #0x25 \n"
771 " BNE loc_FF0CFEB4 \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_FF0CCFB0 \n"
779 " LDR R0, [SP, #0x20] \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, #0x20] \n"
786 " BL sub_FF0CD43C \n"
787 " B loc_FF0D00D0 \n"
788
789 "loc_FF0CFEB4:\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_FF0D00B8 \n"
797 " B loc_FF0CFF70 \n"
798 " B loc_FF0CFF70 \n"
799 " B loc_FF0CFF78 \n"
800 " B loc_FF0CFF80 \n"
801 " B loc_FF0CFF80 \n"
802 " B loc_FF0CFF80 \n"
803 " B loc_FF0CFF70 \n"
804 " B loc_FF0CFF78 \n"
805 " B loc_FF0CFF80 \n"
806 " B loc_FF0CFF80 \n"
807 " B loc_FF0CFF98 \n"
808 " B loc_FF0CFF98 \n"
809 " B loc_FF0D00A4 \n"
810 " B loc_FF0D00AC \n"
811 " B loc_FF0D00AC \n"
812 " B loc_FF0D00AC \n"
813 " B loc_FF0D00AC \n"
814 " B loc_FF0D00B4 \n"
815 " B loc_FF0D00B8 \n"
816 " B loc_FF0D00B8 \n"
817 " B loc_FF0D00B8 \n"
818 " B loc_FF0D00B8 \n"
819 " B loc_FF0D00B8 \n"
820 " B loc_FF0D00B8 \n"
821 " B loc_FF0CFF88 \n"
822 " B loc_FF0CFF90 \n"
823 " B loc_FF0CFF90 \n"
824 " B loc_FF0CFFA4 \n"
825 " B loc_FF0CFFA4 \n"
826 " B loc_FF0CFFAC \n"
827 " B loc_FF0CFFE4 \n"
828 " B loc_FF0D001C \n"
829 " B loc_FF0D0054 \n"
830 " B loc_FF0D008C \n"
831 " B loc_FF0D008C \n"
832 " B loc_FF0D00B8 \n"
833 " B loc_FF0D00B8 \n"
834 " B loc_FF0D00B8 \n"
835 " B loc_FF0D0094 \n"
836 " B loc_FF0D009C \n"
837
838 "loc_FF0CFF70:\n"
839 " BL sub_FF0CB868 \n"
840 " B loc_FF0D00B8 \n"
841
842 "loc_FF0CFF78:\n"
843 " BL sub_FF0CBB60 \n"
844 " B loc_FF0D00B8 \n"
845
846 "loc_FF0CFF80:\n"
847 " BL sub_FF0CBDCC \n"
848 " B loc_FF0D00B8 \n"
849
850 "loc_FF0CFF88:\n"
851 " BL sub_FF0CC0C4 \n"
852 " B loc_FF0D00B8 \n"
853
854 "loc_FF0CFF90:\n"
855 " BL sub_FF0CC2E0 \n"
856 " B loc_FF0D00B8 \n"
857
858 "loc_FF0CFF98:\n"
859 " BL sub_FF0CC664_my \n"
860 " MOV R8, #0 \n"
861 " B loc_FF0D00B8 \n"
862
863 "loc_FF0CFFA4:\n"
864 " BL sub_FF0CC7AC \n"
865 " B loc_FF0D00B8 \n"
866
867 "loc_FF0CFFAC:\n"
868 " LDRH R1, [R0, #4] \n"
869 " STRH R1, [SP, #0x14] \n"
870 " LDRH R1, [R4, #2] \n"
871 " STRH R1, [SP, #0x16] \n"
872 " LDRH R1, [R4, #4] \n"
873 " STRH R1, [SP, #0x18] \n"
874 " LDRH R1, [R4, #6] \n"
875 " STRH R1, [SP, #0x1A] \n"
876 " LDRH R1, [R0, #0xC] \n"
877 " STRH R1, [SP, #0x1C] \n"
878 " LDRH R1, [R4, #0xA] \n"
879 " STRH R1, [SP, #0x1E] \n"
880 " BL sub_FF0D1078 \n"
881 " B loc_FF0D00B8 \n"
882
883 "loc_FF0CFFE4:\n"
884 " LDRH R1, [R0, #4] \n"
885 " STRH R1, [SP, #0x14] \n"
886 " LDRH R1, [R4, #2] \n"
887 " STRH R1, [SP, #0x16] \n"
888 " LDRH R1, [R4, #4] \n"
889 " STRH R1, [SP, #0x18] \n"
890 " LDRH R1, [R4, #6] \n"
891 " STRH R1, [SP, #0x1A] \n"
892 " LDRH R1, [R4, #8] \n"
893 " STRH R1, [SP, #0x1C] \n"
894 " LDRH R1, [R4, #0xA] \n"
895 " STRH R1, [SP, #0x1E] \n"
896 " BL sub_FF0D11F4 \n"
897 " B loc_FF0D00B8 \n"
898
899 "loc_FF0D001C:\n"
900 " LDRH R1, [R4] \n"
901 " STRH R1, [SP, #0x14] \n"
902 " LDRH R1, [R0, #6] \n"
903 " STRH R1, [SP, #0x16] \n"
904 " LDRH R1, [R4, #4] \n"
905 " STRH R1, [SP, #0x18] \n"
906 " LDRH R1, [R4, #6] \n"
907 " STRH R1, [SP, #0x1A] \n"
908 " LDRH R1, [R4, #8] \n"
909 " STRH R1, [SP, #0x1C] \n"
910 " LDRH R1, [R4, #0xA] \n"
911 " STRH R1, [SP, #0x1E] \n"
912 " BL sub_FF0D12A8 \n"
913 " B loc_FF0D00B8 \n"
914
915 "loc_FF0D0054:\n"
916 " LDRH R1, [R4] \n"
917 " STRH R1, [SP, #0x14] \n"
918 " LDRH R1, [R4, #2] \n"
919 " STRH R1, [SP, #0x16] \n"
920 " LDRH R1, [R4, #4] \n"
921 " STRH R1, [SP, #0x18] \n"
922 " LDRH R1, [R4, #6] \n"
923 " STRH R1, [SP, #0x1A] \n"
924 " LDRH R1, [R0, #0xC] \n"
925 " STRH R1, [SP, #0x1C] \n"
926 " LDRH R1, [R4, #0xA] \n"
927 " STRH R1, [SP, #0x1E] \n"
928 " BL sub_FF0D1350 \n"
929 " B loc_FF0D00B8 \n"
930
931 "loc_FF0D008C:\n"
932 " BL sub_FF0CCD44 \n"
933 " B loc_FF0D00B8 \n"
934
935 "loc_FF0D0094:\n"
936 " BL sub_FF0CD54C \n"
937 " B loc_FF0D00B8 \n"
938
939 "loc_FF0D009C:\n"
940 " BL sub_FF0CD834 \n"
941 " B loc_FF0D00B8 \n"
942
943 "loc_FF0D00A4:\n"
944 " BL sub_FF0CDAEC \n"
945 " B loc_FF0D00B8 \n"
946
947 "loc_FF0D00AC:\n"
948 " BL sub_FF0CDCAC \n"
949 " B loc_FF0D00B8 \n"
950
951 "loc_FF0D00B4:\n"
952 " BL sub_FF0CDE1C \n"
953
954 "loc_FF0D00B8:\n"
955 " LDR R0, [SP, #0x20] \n"
956 " LDR R1, [R0, #0x7C] \n"
957 " LDR R2, [R0, #0x90] \n"
958 " LDR R3, [R0, #0x8C] \n"
959
960 "loc_FF0D00C8:\n"
961 " ADD R0, R0, #4 \n"
962 " BLX R3 \n"
963
964 "loc_FF0D00D0:\n"
965 " LDR R1, [SP, #0x20] \n"
966 " LDR R0, [R1] \n"
967 " CMP R0, #0x10 \n"
968 " BEQ loc_FF0D0108 \n"
969 " BGT loc_FF0D00F8 \n"
970 " CMP R0, #1 \n"
971 " CMPNE R0, #4 \n"
972 " CMPNE R0, #0xE \n"
973 " BNE loc_FF0D0118 \n"
974 " B loc_FF0D0108 \n"
975
976 "loc_FF0D00F8:\n"
977 " CMP R0, #0x13 \n"
978 " CMPNE R0, #0x17 \n"
979 " CMPNE R0, #0x1A \n"
980 " BNE loc_FF0D0118 \n"
981
982 "loc_FF0D0108:\n"
983 " LDRH R0, [R4] \n"
984 " STRH R0, [SP, #0x14] \n"
985 " LDRH R0, [R4, #8] \n"
986 " STRH R0, [SP, #0x1C] \n"
987
988 "loc_FF0D0118:\n"
989 " CMP R8, #1 \n"
990 " BNE loc_FF0D0164 \n"
991 " LDR R0, [R1, #0x7C] \n"
992 " MOV R2, #0xC \n"
993 " ADD R0, R0, R0, LSL#1 \n"
994 " ADD R0, R1, R0, LSL#2 \n"
995 " SUB R8, R0, #8 \n"
996 " LDR R0, =0x5E790 \n"
997 " ADD R1, SP, #0x14 \n"
998 " BL sub_FF44DE24 \n"
999 " LDR R0, =0x5E79C \n"
1000 " MOV R2, #0xC \n"
1001 " ADD R1, SP, #0x14 \n"
1002 " BL sub_FF44DE24 \n"
1003 " LDR R0, =0x5E7A8 \n"
1004 " MOV R2, #0xC \n"
1005 " MOV R1, R8 \n"
1006 " BL sub_FF44DE24 \n"
1007 " B loc_FF0D01DC \n"
1008
1009 "loc_FF0D0164:\n"
1010 " LDR R0, [R1] \n"
1011 " MOV R3, #1 \n"
1012 " CMP R0, #0xB \n"
1013 " BNE loc_FF0D01A8 \n"
1014 " MOV R2, #0 \n"
1015 " STRD R2, [SP] \n"
1016 " MOV R2, R3 \n"
1017 " MOV R1, R3 \n"
1018 " MOV R0, #0 \n"
1019 " BL sub_FF0CB63C \n"
1020 " MOV R3, #1 \n"
1021 " MOV R2, #0 \n"
1022 " STRD R2, [SP] \n"
1023 " MOV R2, R3 \n"
1024 " MOV R1, R3 \n"
1025 " MOV R0, #0 \n"
1026 " B loc_FF0D01D8 \n"
1027
1028 "loc_FF0D01A8:\n"
1029 " MOV R2, #1 \n"
1030 " STRD R2, [SP] \n"
1031 " MOV R3, R2 \n"
1032 " MOV R1, R2 \n"
1033 " MOV R0, R2 \n"
1034 " BL sub_FF0CB63C \n"
1035 " MOV R3, #1 \n"
1036 " MOV R2, R3 \n"
1037 " MOV R1, R3 \n"
1038 " MOV R0, R3 \n"
1039 " STR R3, [SP] \n"
1040 " STR R3, [SP, #4] \n"
1041
1042 "loc_FF0D01D8:\n"
1043 " BL sub_FF0CB7B4 \n"
1044
1045 "loc_FF0D01DC:\n"
1046 " LDR R0, [SP, #0x20] \n"
1047 " BL sub_FF0D0FE4 \n"
1048 " B loc_FF0CFB98 \n"
1049 );
1050 }
1051
1052
1053
1054 void __attribute__((naked,noinline)) sub_FF0CC664_my() {
1055 asm volatile (
1056 " STMFD SP!, {R4-R8,LR} \n"
1057 " LDR R7, =0x5A98 \n"
1058 " MOV R4, R0 \n"
1059 " LDR R0, [R7, #0x20] \n"
1060 " MOV R1, #0x3E \n"
1061 " BL sub_FF08940C /*_ClearEventFlag*/ \n"
1062 " MOV R2, #0 \n"
1063 " LDRSH R0, [R4, #4] \n"
1064 " MOV R1, R2 \n"
1065 " BL sub_FF0CB30C \n"
1066 " MOV R5, R0 \n"
1067 " LDRSH R0, [R4, #6] \n"
1068 " BL sub_FF0CB45C \n"
1069 " LDRSH R0, [R4, #8] \n"
1070 " BL sub_FF0CB4B4 \n"
1071 " LDRSH R0, [R4, #0xA] \n"
1072 " BL sub_FF0CB50C \n"
1073 " LDRSH R0, [R4, #0xC] \n"
1074 " MOV R1, #0 \n"
1075 " BL sub_FF0CB564 \n"
1076 " MOV R6, R0 \n"
1077 " LDRSH R0, [R4, #0xE] \n"
1078 " BL sub_FF0D1014 \n"
1079 " LDR R0, [R4] \n"
1080 " LDR R8, =0x5E7A8 \n"
1081 " CMP R0, #0xB \n"
1082 " MOVEQ R5, #0 \n"
1083 " MOVEQ R6, R5 \n"
1084 " BEQ loc_FF0CC700 \n"
1085 " CMP R5, #1 \n"
1086 " BNE loc_FF0CC700 \n"
1087 " LDRSH R0, [R4, #4] \n"
1088 " LDR R1, =0xFF0CB26C \n"
1089 " MOV R2, #2 \n"
1090 " BL sub_FF1C0D9C \n"
1091 " STRH R0, [R4, #4] \n"
1092 " MOV R0, #0 \n"
1093 " STR R0, [R7, #0x2C] \n"
1094 " B loc_FF0CC708 \n"
1095
1096 "loc_FF0CC700:\n"
1097 " LDRH R0, [R8] \n"
1098 " STRH R0, [R4, #4] \n"
1099
1100 "loc_FF0CC708:\n"
1101 " CMP R6, #1 \n"
1102 " LDRNEH R0, [R8, #8] \n"
1103 " BNE loc_FF0CC724 \n"
1104 " LDRSH R0, [R4, #0xC] \n"
1105 " LDR R1, =0xFF0CB2F0 \n"
1106 " MOV R2, #0x20 \n"
1107 " BL sub_FF0D1034 \n"
1108
1109 "loc_FF0CC724:\n"
1110 " STRH R0, [R4, #0xC] \n"
1111 " LDRSH R0, [R4, #6] \n"
1112 " BL sub_FF0BB4A8_my \n"
1113 " LDR PC, =0xFF0CC730 \n"
1114 );
1115 }
1116
1117
1118
1119 void __attribute__((naked,noinline)) sub_FF0BB4A8_my() {
1120 asm volatile (
1121 " STMFD SP!, {R4-R6,LR} \n"
1122 " LDR R5, =0x573C \n"
1123 " MOV R4, R0 \n"
1124 " LDR R0, [R5, #4] \n"
1125 " CMP R0, #1 \n"
1126 " LDRNE R1, =0x14D \n"
1127 " LDRNE R0, =0xFF0BB2E0 /*'Shutter.c'*/ \n"
1128 " BLNE _DebugAssert \n"
1129 " CMN R4, #0xC00 \n"
1130 " LDREQSH R4, [R5, #2] \n"
1131 " CMN R4, #0xC00 \n"
1132 " LDREQ R1, =0x153 \n"
1133 " LDREQ R0, =0xFF0BB2E0 /*'Shutter.c'*/ \n"
1134 " STRH R4, [R5, #2] \n"
1135 " BLEQ _DebugAssert \n"
1136 " MOV R0, R4 \n"
1137 " BL apex2us \n"
1138 " LDR PC, =0xFF0BB4EC \n"
1139 );
1140 }