This source file includes following definitions.
- capt_seq_task
- sub_FF99EF7C_my
- sub_FF99ED38_my
- sub_FF9A2B40_my
- exp_drv_task
- sub_FF9281D4_my
- sub_FF8C792C_my
1
2
3
4 #include "lolevel.h"
5 #include "platform.h"
6 #include "core.h"
7
8 static long *nrflag = (long*)0x6E50;
9
10 #include "../../../generic/capt_seq.c"
11
12
13
14 void __attribute__((naked,noinline)) capt_seq_task() {
15 asm volatile (
16 " STMFD SP!, {R4,R5,LR} \n"
17 " SUB SP, SP, #4 \n"
18 " MOV R5, SP \n"
19 " B loc_FF99F5A8 \n"
20
21 "loc_FF99F3C0:\n"
22 " LDR R2, [SP] \n"
23 " LDR R3, [R2] \n"
24 " MOV R0, R2 \n"
25 " CMP R3, #0x19 \n"
26 " LDRLS PC, [PC, R3, LSL#2] \n"
27 " B loc_FF99F57C \n"
28 " .long loc_FF99F440 \n"
29 " .long loc_FF99F460 \n"
30 " .long loc_FF99F474 \n"
31 " .long loc_FF99F488 \n"
32 " .long loc_FF99F480 \n"
33 " .long loc_FF99F490 \n"
34 " .long loc_FF99F498 \n"
35 " .long loc_FF99F4A4 \n"
36 " .long loc_FF99F4AC \n"
37 " .long loc_FF99F4B8 \n"
38 " .long loc_FF99F4C0 \n"
39 " .long loc_FF99F4C8 \n"
40 " .long loc_FF99F4D0 \n"
41 " .long loc_FF99F4D8 \n"
42 " .long loc_FF99F4E0 \n"
43 " .long loc_FF99F4EC \n"
44 " .long loc_FF99F4F4 \n"
45 " .long loc_FF99F4FC \n"
46 " .long loc_FF99F504 \n"
47 " .long loc_FF99F510 \n"
48 " .long loc_FF99F51C \n"
49 " .long loc_FF99F524 \n"
50 " .long loc_FF99F564 \n"
51 " .long loc_FF99F56C \n"
52 " .long loc_FF99F574 \n"
53 " .long loc_FF99F590 \n"
54
55 "loc_FF99F440:\n"
56 " BL sub_FF99FAE8 \n"
57
58
59 " BL captseq_hack_override_active\n"
60 " STR R2, [SP,#-4]!\n"
61 " BL shooting_expo_param_override\n"
62
63 " BL sub_FF99CC60 \n"
64 " LDR R3, =0xA4840 \n"
65
66 " LDR R2, [SP], #4\n"
67 " CMP R2, #1\n"
68 " MOVEQ R2, #0\n"
69 " STREQ R2, [R3, #0x28]\n"
70 " LDRNE R2, [R3, #0x28]\n"
71 " CMPNE R2, #0\n"
72
73
74
75 " BEQ loc_FF99F58C \n"
76 " BL sub_FF99EF7C_my \n"
77 " B loc_FF99F58C \n"
78
79 "loc_FF99F460:\n"
80 " BL sub_FF99ED38_my \n"
81
82 "loc_FF99F464:\n"
83 " LDR R2, =0xA4840 \n"
84 " MOV R3, #0 \n"
85 " STR R3, [R2, #0x28] \n"
86 " B loc_FF99F58C \n"
87
88 "loc_FF99F474:\n"
89 " MOV R0, #1 \n"
90 " BL sub_FF99FDA8 \n"
91 " B loc_FF99F58C \n"
92
93 "loc_FF99F480:\n"
94 " BL sub_FF99F6A4 \n"
95 " B loc_FF99F464 \n"
96
97 "loc_FF99F488:\n"
98 " BL sub_FF99FAA0 \n"
99 " B loc_FF99F464 \n"
100
101 "loc_FF99F490:\n"
102 " BL sub_FF99FAB0 \n"
103 " B loc_FF99F58C \n"
104
105 "loc_FF99F498:\n"
106 " BL sub_FF99FC48 \n"
107 " BL sub_FF99CC60 \n"
108 " B loc_FF99F58C \n"
109
110 "loc_FF99F4A4:\n"
111 " BL sub_FF99F060 \n"
112 " B loc_FF99F58C \n"
113
114 "loc_FF99F4AC:\n"
115 " BL sub_FF99FCFC \n"
116 " BL sub_FF99CC60 \n"
117 " B loc_FF99F58C \n"
118
119 "loc_FF99F4B8:\n"
120 " BL sub_FF99FAA0 \n"
121 " B loc_FF99F58C \n"
122
123 "loc_FF99F4C0:\n"
124 " BL sub_FF9A16F4 \n"
125 " B loc_FF99F58C \n"
126
127 "loc_FF99F4C8:\n"
128 " BL sub_FF9A1938 \n"
129 " B loc_FF99F58C \n"
130
131 "loc_FF99F4D0:\n"
132 " BL sub_FF9A19F0 \n"
133 " B loc_FF99F58C \n"
134
135 "loc_FF99F4D8:\n"
136 " BL sub_FF9A1A8C \n"
137 " B loc_FF99F58C \n"
138
139 "loc_FF99F4E0:\n"
140 " MOV R0, #0 \n"
141 " BL sub_FF9A1F14 \n"
142 " B loc_FF99F58C \n"
143
144 "loc_FF99F4EC:\n"
145 " BL sub_FF9A2120 \n"
146 " B loc_FF99F58C \n"
147
148 "loc_FF99F4F4:\n"
149 " BL sub_FF9A21B8 \n"
150 " B loc_FF99F58C \n"
151
152 "loc_FF99F4FC:\n"
153 " BL sub_FF9A2278 \n"
154 " B loc_FF99F58C \n"
155
156 "loc_FF99F504:\n"
157 " MOV R0, #1 \n"
158 " BL sub_FF9A1F14 \n"
159 " B loc_FF99F58C \n"
160
161 "loc_FF99F510:\n"
162 " BL sub_FF99FF7C \n"
163 " BL sub_FF99EAF8 \n"
164 " B loc_FF99F58C \n"
165
166 "loc_FF99F51C:\n"
167 " BL sub_FF9A1D9C \n"
168 " B loc_FF99F58C \n"
169
170 "loc_FF99F524:\n"
171 " LDR R4, =0xA48A0 \n"
172 " MOV R0, #0x11 \n"
173 " MOV R1, R4 \n"
174 " MOV R2, #2 \n"
175 " BL _GetPropertyCase \n"
176 " TST R0, #1 \n"
177 " BEQ loc_FF99F550 \n"
178 " MOV R1, #0x4C0 \n"
179 " LDR R0, =0xFF99E838 /*'ShootTask.c'*/ \n"
180 " ADD R1, R1, #6 \n"
181 " BL _DebugAssert \n"
182
183 "loc_FF99F550:\n"
184 " LDRH R3, [R4] \n"
185 " CMP R3, #1 \n"
186 " BNE loc_FF99F58C \n"
187 " BL sub_FF9A1D88 \n"
188 " B loc_FF99F58C \n"
189
190 "loc_FF99F564:\n"
191 " BL sub_FF9A1E34 \n"
192 " B loc_FF99F58C \n"
193
194 "loc_FF99F56C:\n"
195 " BL sub_FF99EC18 \n"
196 " B loc_FF99F58C \n"
197
198 "loc_FF99F574:\n"
199 " BL sub_FF99BA04 \n"
200 " B loc_FF99F58C \n"
201
202 "loc_FF99F57C:\n"
203 " MOV R1, #0x4E0 \n"
204 " LDR R0, =0xFF99E838 /*'ShootTask.c'*/ \n"
205 " ADD R1, R1, #7 \n"
206 " BL _DebugAssert \n"
207
208 "loc_FF99F58C:\n"
209 " LDR R2, [SP] \n"
210
211 "loc_FF99F590:\n"
212 " LDR R3, =0x77BB4 \n"
213 " LDR R1, [R2, #4] \n"
214 " LDR R0, [R3] \n"
215 " BL sub_FF820CE0 /*_SetEventFlag*/ \n"
216 " LDR R0, [SP] \n"
217 " BL sub_FF99E928 \n"
218
219 "loc_FF99F5A8:\n"
220 " LDR R3, =0x77BB8 \n"
221 " MOV R1, R5 \n"
222 " LDR R0, [R3] \n"
223 " MOV R2, #0 \n"
224 " BL sub_FF8213F8 /*_ReceiveMessageQueue*/ \n"
225 " TST R0, #1 \n"
226 " BEQ loc_FF99F3C0 \n"
227 " MOV R1, #0x410 \n"
228 " LDR R0, =0xFF99E838 /*'ShootTask.c'*/ \n"
229 " ADD R1, R1, #9 \n"
230 " BL _DebugAssert \n"
231 " BL _ExitTask \n"
232 " ADD SP, SP, #4 \n"
233 " LDMFD SP!, {R4,R5,PC} \n"
234 );
235 }
236
237
238
239 void __attribute__((naked,noinline)) sub_FF99EF7C_my() {
240 asm volatile (
241 " STMFD SP!, {R4,LR} \n"
242 " BL sub_FF99E724 \n"
243 " LDR R3, =0xA4840 \n"
244 " LDR R2, [R3, #0x28] \n"
245 " CMP R2, #0 \n"
246 " MOV R4, R0 \n"
247 " MOV R0, #0xC \n"
248 " BEQ loc_FF99EFC4 \n"
249 " BL sub_FF9AA0F8 \n"
250 " TST R0, #1 \n"
251 " BEQ loc_FF99EFC4 \n"
252 " LDR R3, [R4, #8] \n"
253 " LDR R2, =0x6E20 \n"
254 " ORR R3, R3, #0x40000000 \n"
255 " MOV R1, #1 \n"
256 " STR R1, [R2] \n"
257 " STR R3, [R4, #8] \n"
258 " LDMFD SP!, {R4,PC} \n"
259
260 "loc_FF99EFC4:\n"
261 " MOV R0, R4 \n"
262 " BL sub_FF9A2578 \n"
263 " BL sub_FF9E6FCC \n"
264 " BL sub_FF825AD0 \n"
265 " STR R0, [R4, #0x14] \n"
266 " MOV R0, R4 \n"
267 " BL sub_FF9A2B40_my \n"
268 " BL capt_seq_hook_raw_here\n"
269 " TST R0, #1 \n"
270 " LDRNE R3, =0x6E20 \n"
271 " MOVNE R2, #1 \n"
272 " STRNE R2, [R3] \n"
273 " LDMFD SP!, {R4,PC} \n"
274 );
275 }
276
277
278
279 void __attribute__((naked,noinline)) sub_FF99ED38_my() {
280 asm volatile (
281 " STMFD SP!, {R4,R5,LR} \n"
282 " LDR R3, =0xA4840 \n"
283 " LDR R4, [R0, #0xC] \n"
284 " LDR R1, [R3, #0x28] \n"
285 " LDR R2, [R4, #8] \n"
286 " CMP R1, #0 \n"
287 " ORR R2, R2, #1 \n"
288 " STR R2, [R4, #8] \n"
289 " BNE loc_FF99ED8C \n"
290 " MOV R0, #0xC \n"
291 " BL sub_FF9AA0F8 \n"
292 " TST R0, #1 \n"
293 " BEQ loc_FF99ED8C \n"
294 " LDR R3, [R4, #8] \n"
295 " MOV R0, #1 \n"
296 " ORR R3, R3, #0x40000000 \n"
297 " STR R3, [R4, #8] \n"
298
299 "loc_FF99ED7C:\n"
300 " MOV R2, R4 \n"
301 " MOV R1, #1 \n"
302 " LDMFD SP!, {R4,R5,LR} \n"
303 " B sub_FF99D200 \n"
304
305 "loc_FF99ED8C:\n"
306 " LDR R1, =0xA4840 \n"
307 " MOV R3, #0x8200 \n"
308 " LDRH R2, [R1] \n"
309 " ADD R3, R3, #0xA \n"
310 " CMP R2, R3 \n"
311 " BEQ loc_FF99EDD8 \n"
312 " LDRH R3, [R1, #0x90] \n"
313 " CMP R3, #3 \n"
314 " BEQ loc_FF99EDD8 \n"
315 " LDR R3, [R4, #0xC] \n"
316 " CMP R3, #1 \n"
317 " BLS loc_FF99EDD8 \n"
318 " LDRH R3, [R1, #0x8E] \n"
319 " CMP R3, #0 \n"
320 " BNE loc_FF99EDD8 \n"
321 " LDRH R3, [R1, #0x8A] \n"
322 " CMP R3, #2 \n"
323 " BNE loc_FF99EDD8 \n"
324 " BL sub_FF99FFF4 \n"
325
326 "loc_FF99EDD8:\n"
327 " LDR R1, =0xA4840 \n"
328 " MOV R3, #0x8200 \n"
329 " LDRH R2, [R1] \n"
330 " ADD R3, R3, #0xA \n"
331 " CMP R2, R3 \n"
332 " BEQ loc_FF99EE20 \n"
333 " LDRH R3, [R1, #0x90] \n"
334 " CMP R3, #3 \n"
335 " BEQ loc_FF99EE20 \n"
336 " LDR R3, [R4, #0xC] \n"
337 " CMP R3, #1 \n"
338 " BLS loc_FF99EE20 \n"
339 " LDRH R3, [R1, #0x8E] \n"
340 " CMP R3, #0 \n"
341 " BNE loc_FF99EE20 \n"
342 " LDRH R3, [R1, #0x8A] \n"
343 " CMP R3, #2 \n"
344 " BEQ loc_FF99EE88 \n"
345
346 "loc_FF99EE20:\n"
347 " LDR R2, =0xA4840 \n"
348 " LDRH R3, [R2, #0x90] \n"
349 " CMP R3, #3 \n"
350 " BEQ loc_FF99EEA0 \n"
351 " LDRH R3, [R2, #0x8E] \n"
352 " CMP R3, #0 \n"
353 " BNE loc_FF99EEA0 \n"
354 " LDRH R1, [R2, #0x8A] \n"
355 " CMP R1, #1 \n"
356 " BNE loc_FF99EEA0 \n"
357 " LDRH R2, [R2] \n"
358 " MOV R3, #0x8200 \n"
359 " ADD R3, R3, #0xA \n"
360 " CMP R2, R3 \n"
361 " BEQ loc_FF99EEA0 \n"
362 " LDR R3, [R4, #0xC] \n"
363 " CMP R3, #1 \n"
364 " BLS loc_FF99EEA0 \n"
365 " ADD R3, R1, #0xFF00 \n"
366 " ADD R3, R3, #0xFF \n"
367 " MOV R3, R3, LSL#16 \n"
368 " CMP R3, #0x10000 \n"
369 " BHI loc_FF99EEA0 \n"
370 " LDR R3, [R4, #0x10] \n"
371 " CMP R3, #1 \n"
372 " BNE loc_FF99EEA0 \n"
373
374 "loc_FF99EE88:\n"
375 " LDR R3, =0x77BB4 \n"
376 " MOV R2, #0xEA00 \n"
377 " LDR R0, [R3] \n"
378 " MOV R1, #0x8000000 \n"
379 " ADD R2, R2, #0x60 \n"
380 " BL sub_FF9AA57C \n"
381
382 "loc_FF99EEA0:\n"
383 " LDR R5, =0xA4840 \n"
384 " BL sub_FF99EC18 \n"
385 " LDR R3, [R5, #0x28] \n"
386 " CMP R3, #0 \n"
387 " BNE loc_FF99EEBC \n"
388 " MOV R0, #2 \n"
389 " BL sub_FFB41B1C \n"
390
391 "loc_FF99EEBC:\n"
392 " BL sub_FF99FAC0 \n"
393 " LDR R3, [R5, #0x28] \n"
394 " CMP R3, #0 \n"
395 " BNE loc_FF99EF08 \n"
396 " MOV R0, R4 \n"
397 " BL sub_FF9A2578 \n"
398 " MOV R0, R4 \n"
399 " BL sub_FF9A0E20 \n"
400 " TST R0, #1 \n"
401 " BNE loc_FF99ED7C \n"
402 " BL sub_FF9E6FCC \n"
403 " BL sub_FF825AD0 \n"
404 " STR R0, [R4, #0x14] \n"
405 " MOV R0, R4 \n"
406 " BL sub_FF9A2A28 \n"
407 " BL sub_FF9A3424 \n"
408 " MOV R0, R4 \n"
409 " BL sub_FF9A2B40_my \n"
410 " BL capt_seq_hook_raw_here\n"
411 " B loc_FF99EF1C \n"
412
413 "loc_FF99EF08:\n"
414 " LDR R3, =0x6E20 \n"
415 " LDR R2, [R3] \n"
416 " CMP R2, #0 \n"
417 " MOVNE R0, #0x1D \n"
418 " MOVEQ R0, #0 \n"
419
420 "loc_FF99EF1C:\n"
421 " MOV R1, #1 \n"
422 " MOV R2, R4 \n"
423 " BL sub_FF99D200 \n"
424 " BL sub_FF9A2F14 \n"
425 " CMP R0, #0 \n"
426 " LDRNE R3, [R4, #8] \n"
427 " ORRNE R3, R3, #0x2000 \n"
428 " STRNE R3, [R4, #8] \n"
429 " LDR R2, =0xA4840 \n"
430 " LDRH R3, [R2, #0x90] \n"
431 " CMP R3, #3 \n"
432 " LDMEQFD SP!, {R4,R5,PC} \n"
433 " LDRH R3, [R2, #0x8E] \n"
434 " CMP R3, #0 \n"
435 " LDMNEFD SP!, {R4,R5,PC} \n"
436 " LDRH R3, [R2, #0x8A] \n"
437 " CMP R3, #2 \n"
438 " LDMNEFD SP!, {R4,R5,PC} \n"
439 " MOV R0, R4 \n"
440 " LDMFD SP!, {R4,R5,LR} \n"
441 " B sub_FF9A004C \n"
442 );
443 }
444
445
446
447 void __attribute__((naked,noinline)) sub_FF9A2B40_my() {
448 asm volatile (
449 " STMFD SP!, {R4,LR} \n"
450 " MOV R4, R0 \n"
451 " SUB SP, SP, #0xC \n"
452 " BL sub_FF9A35AC \n"
453 " MVN R1, #0 \n"
454 " BL sub_FF820E7C /*_ClearEventFlag*/ \n"
455 " MOV R0, #0x120 \n"
456 " ADD R0, R0, #2 \n"
457 " ADD R1, SP, #4 \n"
458 " MOV R2, #4 \n"
459 " BL _GetPropertyCase \n"
460 " TST R0, #1 \n"
461 " BEQ loc_FF9A2B80 \n"
462 " LDR R0, =0xFF9A29BC /*'CaptureSeq.c'*/ \n"
463 " MOV R1, #0x1DC \n"
464 " BL _DebugAssert \n"
465
466 "loc_FF9A2B80:\n"
467 " LDR R3, =0xA4840 \n"
468 " LDR R2, =0xA4900 \n"
469 " LDR R0, [R3, #0x84] \n"
470 " LDRSH R1, [R2, #0xE] \n"
471 " BL sub_FF8B226C \n"
472 " MOV R0, R4 \n"
473 " BL sub_FF9A2940 \n"
474 " BL wait_until_remote_button_is_released\n"
475 " BL capt_seq_hook_set_nr\n"
476 " LDR PC, =0xFF9A2B9C \n"
477 );
478 }
479
480
481
482 void __attribute__((naked,noinline)) exp_drv_task() {
483 asm volatile (
484 " STMFD SP!, {R4-R8,LR} \n"
485 " SUB SP, SP, #0x20 \n"
486 " ADD R7, SP, #4 \n"
487 " B loc_FF92B6F0 \n"
488
489 "loc_FF92B244:\n"
490 " CMP R2, #0x22 \n"
491 " BNE loc_FF92B25C \n"
492 " LDR R0, [R12, #0x8C] \n"
493 " MOV LR, PC \n"
494 " LDR PC, [R12, #0x88] \n"
495 " B loc_FF92B2C0 \n"
496
497 "loc_FF92B25C:\n"
498 " CMP R2, #0x1D \n"
499 " BNE loc_FF92B270 \n"
500 " MOV R0, R12 \n"
501 " BL sub_FF92B104 \n"
502 " B loc_FF92B2B0 \n"
503
504 "loc_FF92B270:\n"
505 " CMP R2, #0x1E \n"
506 " BNE loc_FF92B284 \n"
507 " MOV R0, R12 \n"
508 " BL sub_FF92B160 \n"
509 " B loc_FF92B2B0 \n"
510
511 "loc_FF92B284:\n"
512 " SUB R3, R2, #0x1F \n"
513 " CMP R3, #1 \n"
514 " BHI loc_FF92B29C \n"
515 " MOV R0, R12 \n"
516 " BL sub_FF92B1BC \n"
517 " B loc_FF92B2B0 \n"
518
519 "loc_FF92B29C:\n"
520 " CMP R2, #0x21 \n"
521 " BNE loc_FF92B2CC \n"
522 " BL sub_FF8C7CA4 \n"
523 " BL sub_FF8CAD98 \n"
524 " BL sub_FF8C9FD0 \n"
525
526 "loc_FF92B2B0:\n"
527 " LDR R3, [SP, #4] \n"
528 " LDR R0, [R3, #0x8C] \n"
529 " MOV LR, PC \n"
530 " LDR PC, [R3, #0x88] \n"
531
532 "loc_FF92B2C0:\n"
533 " LDR R0, [SP, #4] \n"
534 " BL sub_FF926CB0 \n"
535 " B loc_FF92B6F0 \n"
536
537 "loc_FF92B2CC:\n"
538 " CMP R2, #0xD \n"
539 " MOV R8, #1 \n"
540 " BNE loc_FF92B33C \n"
541 " LDR R1, [R12, #0x7C] \n"
542 " ADD R1, R1, R1, LSL#1 \n"
543 " ADD R1, R12, R1, LSL#2 \n"
544 " ADD R6, SP, #0x14 \n"
545 " SUB R1, R1, #8 \n"
546 " MOV R2, #0xC \n"
547 " MOV R0, R6 \n"
548 " BL _memcpy \n"
549 " LDR R0, [SP, #4] \n"
550 " BL sub_FF92978C \n"
551 " LDR R3, [SP, #4] \n"
552 " LDR R1, [R3, #0x7C] \n"
553 " LDR R2, [R3, #0x8C] \n"
554 " ADD R0, R3, #4 \n"
555 " MOV LR, PC \n"
556 " LDR PC, [R3, #0x88] \n"
557 " LDR R0, [SP, #4] \n"
558 " BL sub_FF929A5C \n"
559 " LDR R3, [SP, #4] \n"
560 " ADD R0, R3, #4 \n"
561 " LDR R1, [R3, #0x7C] \n"
562 " LDR R2, [R3, #0x94] \n"
563 " MOV LR, PC \n"
564 " LDR PC, [R3, #0x90] \n"
565 " B loc_FF92B68C \n"
566
567 "loc_FF92B33C:\n"
568 " SUB R3, R2, #0xE \n"
569 " CMP R3, #1 \n"
570 " BHI loc_FF92B3F8 \n"
571 " ADD R6, SP, #0x14 \n"
572 " ADD R5, SP, #8 \n"
573 " MOV R0, R12 \n"
574 " MOV R1, R6 \n"
575 " MOV R2, R5 \n"
576 " BL sub_FF929B50 \n"
577 " MOV R4, R0 \n"
578 " CMP R4, #5 \n"
579 " CMPNE R4, #1 \n"
580 " BNE loc_FF92B390 \n"
581 " LDR R12, [SP, #4] \n"
582 " MOV R0, R5 \n"
583 " LDR R1, [R12, #0x7C] \n"
584 " MOV R2, R4 \n"
585 " LDR R3, [R12, #0x8C] \n"
586 " MOV LR, PC \n"
587 " LDR PC, [R12, #0x88] \n"
588 " B loc_FF92B3C8 \n"
589
590 "loc_FF92B390:\n"
591 " CMP R4, #6 \n"
592 " CMPNE R4, #2 \n"
593 " BNE loc_FF92B3D8 \n"
594 " LDR R12, [SP, #4] \n"
595 " MOV R0, R5 \n"
596 " MOV R1, R8 \n"
597 " MOV R2, R4 \n"
598 " LDR R3, [R12, #0x8C] \n"
599 " MOV LR, PC \n"
600 " LDR PC, [R12, #0x88] \n"
601 " MOV R1, R6 \n"
602 " LDR R0, [SP, #4] \n"
603 " MOV R2, R5 \n"
604 " BL sub_FF92AD70 \n"
605
606 "loc_FF92B3C8:\n"
607 " MOV R1, R4 \n"
608 " LDR R0, [SP, #4] \n"
609 " BL sub_FF92B098 \n"
610 " B loc_FF92B68C \n"
611
612 "loc_FF92B3D8:\n"
613 " LDR R12, [SP, #4] \n"
614 " MOV R2, R4 \n"
615 " ADD R0, R12, #4 \n"
616 " LDR R1, [R12, #0x7C] \n"
617 " LDR R3, [R12, #0x8C] \n"
618 " MOV LR, PC \n"
619 " LDR PC, [R12, #0x88] \n"
620 " B loc_FF92B68C \n"
621
622 "loc_FF92B3F8:\n"
623 " SUB R3, R2, #0x19 \n"
624 " CMP R3, #1 \n"
625 " BHI loc_FF92B450 \n"
626 " LDR R1, [R12, #0x7C] \n"
627 " ADD R1, R1, R1, LSL#1 \n"
628 " ADD R1, R12, R1, LSL#2 \n"
629 " ADD R6, SP, #0x14 \n"
630 " SUB R1, R1, #8 \n"
631 " MOV R2, #0xC \n"
632 " MOV R0, R6 \n"
633 " BL _memcpy \n"
634 " LDR R0, [SP, #4] \n"
635 " BL sub_FF928B84 \n"
636 " LDR R3, [SP, #4] \n"
637 " ADD R0, R3, #4 \n"
638 " LDR R1, [R3, #0x7C] \n"
639 " LDR R2, [R3, #0x8C] \n"
640 " MOV LR, PC \n"
641 " LDR PC, [R3, #0x88] \n"
642 " LDR R0, [SP, #4] \n"
643 " BL sub_FF928F60 \n"
644 " B loc_FF92B68C \n"
645
646 "loc_FF92B450:\n"
647 " ADD R6, SP, #0x14 \n"
648 " ADD R1, R12, #4 \n"
649 " MOV R2, #0xC \n"
650 " MOV R0, R6 \n"
651 " BL _memcpy \n"
652 " LDR R12, [SP, #4] \n"
653 " LDR R3, [R12] \n"
654 " MOV R2, R12 \n"
655 " CMP R3, #0x1C \n"
656 " LDRLS PC, [PC, R3, LSL#2] \n"
657 " B loc_FF92B678 \n"
658 " .long loc_FF92B4F0 \n"
659 " .long loc_FF92B4FC \n"
660 " .long loc_FF92B508 \n"
661 " .long loc_FF92B508 \n"
662 " .long loc_FF92B4F0 \n"
663 " .long loc_FF92B4FC \n"
664 " .long loc_FF92B508 \n"
665 " .long loc_FF92B508 \n"
666 " .long loc_FF92B52C \n"
667 " .long loc_FF92B52C \n"
668 " .long loc_FF92B64C \n"
669 " .long loc_FF92B658 \n"
670 " .long loc_FF92B668 \n"
671 " .long loc_FF92B678 \n"
672 " .long loc_FF92B678 \n"
673 " .long loc_FF92B678 \n"
674 " .long loc_FF92B514 \n"
675 " .long loc_FF92B520 \n"
676 " .long loc_FF92B53C \n"
677 " .long loc_FF92B548 \n"
678 " .long loc_FF92B580 \n"
679 " .long loc_FF92B5B8 \n"
680 " .long loc_FF92B5F0 \n"
681 " .long loc_FF92B628 \n"
682 " .long loc_FF92B628 \n"
683 " .long loc_FF92B678 \n"
684 " .long loc_FF92B678 \n"
685 " .long loc_FF92B634 \n"
686 " .long loc_FF92B640 \n"
687
688 "loc_FF92B4F0:\n"
689 " MOV R0, R2 \n"
690 " BL sub_FF927560 \n"
691 " B loc_FF92B674 \n"
692
693 "loc_FF92B4FC:\n"
694 " MOV R0, R2 \n"
695 " BL sub_FF927804 \n"
696 " B loc_FF92B674 \n"
697
698 "loc_FF92B508:\n"
699 " MOV R0, R2 \n"
700 " BL sub_FF927A78 \n"
701 " B loc_FF92B674 \n"
702
703 "loc_FF92B514:\n"
704 " MOV R0, R2 \n"
705 " BL sub_FF927D74 \n"
706 " B loc_FF92B674 \n"
707
708 "loc_FF92B520:\n"
709 " MOV R0, R2 \n"
710 " BL sub_FF927FD8 \n"
711 " B loc_FF92B674 \n"
712
713 "loc_FF92B52C:\n"
714 " MOV R0, R2 \n"
715 " BL sub_FF9281D4_my \n"
716 " MOV R8, #0 \n"
717 " B loc_FF92B674 \n"
718
719 "loc_FF92B53C:\n"
720 " MOV R0, R2 \n"
721 " BL sub_FF928330 \n"
722 " B loc_FF92B674 \n"
723
724 "loc_FF92B548:\n"
725 " LDRH R1, [R2, #4] \n"
726 " LDR R3, =0x51BC8 \n"
727 " STRH R1, [SP, #0x14] \n"
728 " LDRH R1, [R3, #6] \n"
729 " STRH R1, [SP, #0x1A] \n"
730 " LDRH R1, [R3, #2] \n"
731 " STRH R1, [SP, #0x16] \n"
732 " LDRH R3, [R3, #4] \n"
733 " STRH R3, [SP, #0x18] \n"
734 " MOV R0, R2 \n"
735 " LDRH R2, [R2, #0xC] \n"
736 " STRH R2, [SP, #0x1C] \n"
737 " BL sub_FF92862C \n"
738 " B loc_FF92B674 \n"
739
740 "loc_FF92B580:\n"
741 " MOV R0, R2 \n"
742 " LDRH R2, [R2, #4] \n"
743 " LDR R3, =0x51BC8 \n"
744 " STRH R2, [SP, #0x14] \n"
745 " LDRH R2, [R3, #8] \n"
746 " STRH R2, [SP, #0x1C] \n"
747 " LDRH R1, [R3, #2] \n"
748 " STRH R1, [SP, #0x16] \n"
749 " LDRH R2, [R3, #4] \n"
750 " STRH R2, [SP, #0x18] \n"
751 " LDRH R3, [R3, #6] \n"
752 " STRH R3, [SP, #0x1A] \n"
753 " BL sub_FF928754 \n"
754 " B loc_FF92B674 \n"
755
756 "loc_FF92B5B8:\n"
757 " LDR R3, =0x51BC8 \n"
758 " LDRH R1, [R3] \n"
759 " STRH R1, [SP, #0x14] \n"
760 " MOV R0, R2 \n"
761 " LDRH R2, [R2, #6] \n"
762 " STRH R2, [SP, #0x16] \n"
763 " LDRH R2, [R3, #8] \n"
764 " STRH R2, [SP, #0x1C] \n"
765 " LDRH R1, [R3, #4] \n"
766 " STRH R1, [SP, #0x18] \n"
767 " LDRH R3, [R3, #6] \n"
768 " STRH R3, [SP, #0x1A] \n"
769 " BL sub_FF928818 \n"
770 " B loc_FF92B674 \n"
771
772 "loc_FF92B5F0:\n"
773 " LDR R3, =0x51BC8 \n"
774 " LDRH R1, [R3, #6] \n"
775 " STRH R1, [SP, #0x1A] \n"
776 " LDRH R1, [R3] \n"
777 " STRH R1, [SP, #0x14] \n"
778 " LDRH R1, [R3, #2] \n"
779 " STRH R1, [SP, #0x16] \n"
780 " LDRH R3, [R3, #4] \n"
781 " STRH R3, [SP, #0x18] \n"
782 " MOV R0, R2 \n"
783 " LDRH R2, [R2, #0xC] \n"
784 " STRH R2, [SP, #0x1C] \n"
785 " BL sub_FF9288D0 \n"
786 " B loc_FF92B674 \n"
787
788 "loc_FF92B628:\n"
789 " MOV R0, R2 \n"
790 " BL sub_FF928980 \n"
791 " B loc_FF92B674 \n"
792
793 "loc_FF92B634:\n"
794 " MOV R0, R2 \n"
795 " BL sub_FF9290B0 \n"
796 " B loc_FF92B674 \n"
797
798 "loc_FF92B640:\n"
799 " MOV R0, R2 \n"
800 " BL sub_FF9292AC \n"
801 " B loc_FF92B674 \n"
802
803 "loc_FF92B64C:\n"
804 " MOV R0, R2 \n"
805 " BL sub_FF929468 \n"
806 " B loc_FF92B674 \n"
807
808 "loc_FF92B658:\n"
809 " MOV R0, R2 \n"
810 " MOV R1, #0 \n"
811 " BL sub_FF92964C \n"
812 " B loc_FF92B674 \n"
813
814 "loc_FF92B668:\n"
815 " MOV R0, R2 \n"
816 " MOV R1, #1 \n"
817 " BL sub_FF92964C \n"
818
819 "loc_FF92B674:\n"
820 " LDR R12, [SP, #4] \n"
821
822 "loc_FF92B678:\n"
823 " ADD R0, R12, #4 \n"
824 " LDR R1, [R12, #0x7C] \n"
825 " LDR R2, [R12, #0x8C] \n"
826 " MOV LR, PC \n"
827 " LDR PC, [R12, #0x88] \n"
828
829 "loc_FF92B68C:\n"
830 " CMP R8, #1 \n"
831 " BNE loc_FF92B6B4 \n"
832 " LDR R1, [SP, #4] \n"
833 " LDR R3, [R1, #0x7C] \n"
834 " ADD R3, R3, R3, LSL#1 \n"
835 " ADD R1, R1, R3, LSL#2 \n"
836 " MOV R0, R6 \n"
837 " SUB R1, R1, #8 \n"
838 " BL sub_FF9272C4 \n"
839 " B loc_FF92B6E8 \n"
840
841 "loc_FF92B6B4:\n"
842 " MOV R4, #1 \n"
843 " MOV R0, R4 \n"
844 " MOV R1, R4 \n"
845 " MOV R2, R4 \n"
846 " MOV R3, R4 \n"
847 " STR R4, [SP] \n"
848 " BL sub_FF927218 \n"
849 " MOV R0, R4 \n"
850 " MOV R1, R0 \n"
851 " MOV R2, R0 \n"
852 " MOV R3, R0 \n"
853 " STR R4, [SP] \n"
854 " BL sub_FF92739C \n"
855
856 "loc_FF92B6E8:\n"
857 " LDR R0, [SP, #4] \n"
858 " BL sub_FF926CB0 \n"
859
860 "loc_FF92B6F0:\n"
861 " LDR R3, =0x51BC0 \n"
862 " MOV R2, #0 \n"
863 " LDR R0, [R3] \n"
864 " MOV R1, R7 \n"
865 " BL sub_FF8213F8 /*_ReceiveMessageQueue*/ \n"
866 " LDR R12, [SP, #4] \n"
867 " LDR R2, [R12] \n"
868 " CMP R2, #0x23 \n"
869 " BNE loc_FF92B244 \n"
870 " MOV R0, R12 \n"
871 " BL sub_FF926CB0 \n"
872 " LDR R3, =0x51BBC \n"
873 " MOV R1, #1 \n"
874 " LDR R0, [R3] \n"
875 " BL sub_FF820CE0 /*_SetEventFlag*/ \n"
876 " BL _ExitTask \n"
877 " ADD SP, SP, #0x20 \n"
878 " LDMFD SP!, {R4-R8,PC} \n"
879 );
880 }
881
882
883
884 void __attribute__((naked,noinline)) sub_FF9281D4_my() {
885 asm volatile (
886 " STMFD SP!, {R4-R6,LR} \n"
887 " LDR R3, =0x51BBC \n"
888 " MOV R4, R0 \n"
889 " MOV R1, #0x3E \n"
890 " LDR R0, [R3] \n"
891 " BL sub_FF820E7C /*_ClearEventFlag*/ \n"
892 " MOV R1, #0 \n"
893 " LDRSH R0, [R4, #4] \n"
894 " BL sub_FF926DE4 \n"
895 " MOV R6, R0 \n"
896 " LDRSH R0, [R4, #6] \n"
897 " BL sub_FF926F58 \n"
898 " LDRSH R0, [R4, #8] \n"
899 " BL sub_FF926FF4 \n"
900 " LDRSH R0, [R4, #0xA] \n"
901 " BL sub_FF927090 \n"
902 " LDRSH R0, [R4, #0xC] \n"
903 " BL sub_FF92712C \n"
904 " LDR R3, [R4] \n"
905 " CMP R3, #9 \n"
906 " MOV R5, R0 \n"
907 " MOVEQ R5, #0 \n"
908 " MOVEQ R6, R5 \n"
909 " CMP R6, #1 \n"
910 " BNE loc_FF928258 \n"
911 " MOV R2, #2 \n"
912 " LDRSH R0, [R4, #4] \n"
913 " LDR R1, =0xFF926D04 \n"
914 " BL sub_FFB33A1C \n"
915 " LDR R2, =0x51BFC \n"
916 " MOV R3, #0 \n"
917 " STR R3, [R2] \n"
918 " B loc_FF92825C \n"
919
920 "loc_FF928258:\n"
921 " BL sub_FF9271C8 \n"
922
923 "loc_FF92825C:\n"
924 " STRH R0, [R4, #4] \n"
925 " CMP R5, #1 \n"
926 " BNE loc_FF92827C \n"
927 " LDRSH R0, [R4, #0xC] \n"
928 " LDR R1, =0xFF926DC8 \n"
929 " MOV R2, #0x20 \n"
930 " BL sub_FF927500 \n"
931 " B loc_FF928280 \n"
932
933 "loc_FF92827C:\n"
934 " BL sub_FF927208 \n"
935
936 "loc_FF928280:\n"
937 " STRH R0, [R4, #0xC] \n"
938 " LDRSH R0, [R4, #6] \n"
939 " BL sub_FF8C792C_my \n"
940 " LDRSH R0, [R4, #8] \n"
941 " MOV R1, #1 \n"
942 " BL sub_FF8C9B90 \n"
943 " ADD R0, R4, #8 \n"
944 " MOV R1, #0 \n"
945 " BL sub_FF8C9C50 \n"
946 " LDRSH R0, [R4, #0xE] \n"
947 " BL sub_FF9148E0 \n"
948 " CMP R6, #1 \n"
949 " BNE loc_FF9282E4 \n"
950 " LDR R3, =0x51BBC \n"
951 " MOV R2, #0xBB0 \n"
952 " LDR R0, [R3] \n"
953 " MOV R1, #2 \n"
954 " ADD R2, R2, #8 \n"
955 " BL sub_FF820CD0 /*_WaitForAllEventFlag*/ \n"
956 " TST R0, #1 \n"
957 " BEQ loc_FF9282E4 \n"
958 " MOV R1, #0x440 \n"
959 " LDR R0, =0xFF926C5C /*'ExpDrv.c'*/ \n"
960 " ADD R1, R1, #0xB \n"
961 " BL _DebugAssert \n"
962
963 "loc_FF9282E4:\n"
964 " CMP R5, #1 \n"
965 " LDMNEFD SP!, {R4-R6,PC} \n"
966 " LDR R3, =0x51BBC \n"
967 " MOV R2, #0xBB0 \n"
968 " LDR R0, [R3] \n"
969 " MOV R1, #0x20 \n"
970 " ADD R2, R2, #8 \n"
971 " BL sub_FF820CD0 /*_WaitForAllEventFlag*/ \n"
972 " TST R0, #1 \n"
973 " LDMEQFD SP!, {R4-R6,PC} \n"
974 " LDR R0, =0xFF926C5C /*'ExpDrv.c'*/ \n"
975 " MOV R1, #0x450 \n"
976 " LDMFD SP!, {R4-R6,LR} \n"
977 " B _DebugAssert \n"
978 );
979 }
980
981
982
983 void __attribute__((naked,noinline)) sub_FF8C792C_my() {
984 asm volatile (
985 " STMFD SP!, {R4,LR} \n"
986 " LDR R3, =0x584C \n"
987 " LDR R2, [R3] \n"
988 " MOV R1, #0x150 \n"
989 " MOV R3, R0, LSL#16 \n"
990 " CMP R2, #1 \n"
991 " ADD R1, R1, #1 \n"
992 " LDR R0, =0xFF8C7168 /*'Shutter.c'*/ \n"
993 " MOV R4, R3, ASR#16 \n"
994 " BEQ loc_FF8C7958 \n"
995 " BL _DebugAssert \n"
996
997 "loc_FF8C7958:\n"
998 " MOV R1, #0x154 \n"
999 " CMN R4, #0xC00 \n"
1000 " LDR R3, =0x363CE \n"
1001 " LDR R0, =0xFF8C7168 /*'Shutter.c'*/ \n"
1002 " ADD R1, R1, #3 \n"
1003 " LDREQSH R4, [R3] \n"
1004 " LDRNE R3, =0x363CE \n"
1005 " CMN R4, #0xC00 \n"
1006 " STRH R4, [R3] \n"
1007 " BNE loc_FF8C7984 \n"
1008 " BL _DebugAssert \n"
1009
1010 "loc_FF8C7984:\n"
1011 " MOV R0, R4 \n"
1012 " BL apex2us \n"
1013 " LDR PC, =0xFF8C798C \n"
1014 );
1015 }