This source file includes following definitions.
- capt_seq_task
- sub_FF9925E4_my
- sub_FF995A50_my
- exp_drv_task
- sub_FF921394_my
- sub_FF8C5464_my
1
2
3
4 #include "lolevel.h"
5 #include "platform.h"
6 #include "core.h"
7
8 static long *nrflag = (long*)0x6B78;
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,LR} \n"
17 " SUB SP, SP, #4 \n"
18 " MOV R4, SP \n"
19 " B loc_FF992CA8 \n"
20
21 "loc_FF992B34:\n"
22 " LDR R2, [SP] \n"
23 " LDR R3, [R2] \n"
24 " MOV R0, R2 \n"
25 " CMP R3, #0x17 \n"
26 " LDRLS PC, [PC, R3, LSL#2] \n"
27 " B loc_FF992C7C \n"
28 " .long loc_FF992BAC \n"
29 " .long loc_FF992BB8 \n"
30 " .long loc_FF992BC0 \n"
31 " .long loc_FF992BD4 \n"
32 " .long loc_FF992BCC \n"
33 " .long loc_FF992BDC \n"
34 " .long loc_FF992BE4 \n"
35 " .long loc_FF992BF0 \n"
36 " .long loc_FF992BF8 \n"
37 " .long loc_FF992C04 \n"
38 " .long loc_FF992C0C \n"
39 " .long loc_FF992C14 \n"
40 " .long loc_FF992C1C \n"
41 " .long loc_FF992C24 \n"
42 " .long loc_FF992C2C \n"
43 " .long loc_FF992C38 \n"
44 " .long loc_FF992C40 \n"
45 " .long loc_FF992C48 \n"
46 " .long loc_FF992C50 \n"
47 " .long loc_FF992C5C \n"
48 " .long loc_FF992C64 \n"
49 " .long loc_FF992C6C \n"
50 " .long loc_FF992C74 \n"
51 " .long loc_FF992C90 \n"
52
53 "loc_FF992BAC:\n"
54 " BL sub_FF9931C0 \n"
55 " BL shooting_expo_param_override\n"
56 " BL sub_FF9906E0 \n"
57 " B loc_FF992C8C \n"
58
59 "loc_FF992BB8:\n"
60 " BL sub_FF9925E4_my \n"
61 " B loc_FF992C8C \n"
62
63 "loc_FF992BC0:\n"
64 " MOV R0, #1 \n"
65 " BL sub_FF993500 \n"
66 " B loc_FF992C8C \n"
67
68 "loc_FF992BCC:\n"
69 " BL sub_FF992D9C \n"
70 " B loc_FF992C8C \n"
71
72 "loc_FF992BD4:\n"
73 " BL sub_FF99318C \n"
74 " B loc_FF992C8C \n"
75
76 "loc_FF992BDC:\n"
77 " BL sub_FF99319C \n"
78 " B loc_FF992C8C \n"
79
80 "loc_FF992BE4:\n"
81 " BL sub_FF9933E0 \n"
82 " BL sub_FF9906E0 \n"
83 " B loc_FF992C8C \n"
84
85 "loc_FF992BF0:\n"
86 " BL sub_FF992834 \n"
87 " B loc_FF992C8C \n"
88
89 "loc_FF992BF8:\n"
90 " BL sub_FF993454 \n"
91 " BL sub_FF9906E0 \n"
92 " B loc_FF992C8C \n"
93
94 "loc_FF992C04:\n"
95 " BL sub_FF99318C \n"
96 " B loc_FF992C8C \n"
97
98 "loc_FF992C0C:\n"
99 " BL sub_FF994C0C \n"
100 " B loc_FF992C8C \n"
101
102 "loc_FF992C14:\n"
103 " BL sub_FF994DE0 \n"
104 " B loc_FF992C8C \n"
105
106 "loc_FF992C1C:\n"
107 " BL sub_FF994E74 \n"
108 " B loc_FF992C8C \n"
109
110 "loc_FF992C24:\n"
111 " BL sub_FF994F10 \n"
112 " B loc_FF992C8C \n"
113
114 "loc_FF992C2C:\n"
115 " MOV R0, #0 \n"
116 " BL sub_FF99517C \n"
117 " B loc_FF992C8C \n"
118
119 "loc_FF992C38:\n"
120 " BL sub_FF995354 \n"
121 " B loc_FF992C8C \n"
122
123 "loc_FF992C40:\n"
124 " BL sub_FF9953EC \n"
125 " B loc_FF992C8C \n"
126
127 "loc_FF992C48:\n"
128 " BL sub_FF9954A8 \n"
129 " B loc_FF992C8C \n"
130
131 "loc_FF992C50:\n"
132 " BL sub_FF993670 \n"
133 " BL sub_FF9923A4 \n"
134 " B loc_FF992C8C \n"
135
136 "loc_FF992C5C:\n"
137 " BL sub_FF995050 \n"
138 " B loc_FF992C8C \n"
139
140 "loc_FF992C64:\n"
141 " BL sub_FF9950A8 \n"
142 " B loc_FF992C8C \n"
143
144 "loc_FF992C6C:\n"
145 " BL sub_FF9924C4 \n"
146 " B loc_FF992C8C \n"
147
148 "loc_FF992C74:\n"
149 " BL sub_FF98F6F0 \n"
150 " B loc_FF992C8C \n"
151
152 "loc_FF992C7C:\n"
153 " MOV R1, #0x4E0 \n"
154 " LDR R0, =0xFF9920E4 /*'ShootTask.c'*/ \n"
155 " ADD R1, R1, #7 \n"
156 " BL _DebugAssert \n"
157
158 "loc_FF992C8C:\n"
159 " LDR R2, [SP] \n"
160
161 "loc_FF992C90:\n"
162 " LDR R3, =0x76CBC \n"
163 " LDR R1, [R2, #4] \n"
164 " LDR R0, [R3] \n"
165 " BL sub_FF820CE0 /*_SetEventFlag*/ \n"
166 " LDR R0, [SP] \n"
167 " BL sub_FF9921D4 \n"
168
169 "loc_FF992CA8:\n"
170 " LDR R3, =0x76CC0 \n"
171 " MOV R1, R4 \n"
172 " LDR R0, [R3] \n"
173 " MOV R2, #0 \n"
174 " BL sub_FF8213F8 /*_ReceiveMessageQueue*/ \n"
175 " TST R0, #1 \n"
176 " BEQ loc_FF992B34 \n"
177 " MOV R1, #0x410 \n"
178 " LDR R0, =0xFF9920E4 /*'ShootTask.c'*/ \n"
179 " ADD R1, R1, #9 \n"
180 " BL _DebugAssert \n"
181 " BL _ExitTask \n"
182 " ADD SP, SP, #4 \n"
183 " LDMFD SP!, {R4,PC} \n"
184 );
185 }
186
187
188
189 void __attribute__((naked,noinline)) sub_FF9925E4_my() {
190 asm volatile (
191 " STMFD SP!, {R4,LR} \n"
192 " LDR R4, [R0, #0xC] \n"
193 " LDR R3, [R4, #8] \n"
194 " ORR R3, R3, #1 \n"
195 " STR R3, [R4, #8] \n"
196 " MOV R0, #0xC \n"
197 " BL sub_FF99CC0C \n"
198 " TST R0, #1 \n"
199 " BEQ loc_FF992628 \n"
200 " LDR R3, [R4, #8] \n"
201 " MOV R0, #1 \n"
202 " ORR R3, R3, #0x40000000 \n"
203 " STR R3, [R4, #8] \n"
204
205 "loc_FF992618:\n"
206 " MOV R2, R4 \n"
207 " MOV R1, #1 \n"
208 " LDMFD SP!, {R4,LR} \n"
209 " B sub_FF990BD8 \n"
210
211 "loc_FF992628:\n"
212 " LDR R1, =0xA2400 \n"
213 " MOV R3, #0x8200 \n"
214 " LDRH R2, [R1] \n"
215 " ADD R3, R3, #0xA \n"
216 " CMP R2, R3 \n"
217 " BEQ loc_FF992674 \n"
218 " LDRH R3, [R1, #0x88] \n"
219 " CMP R3, #3 \n"
220 " BEQ loc_FF992674 \n"
221 " LDR R3, [R4, #0xC] \n"
222 " CMP R3, #1 \n"
223 " BLS loc_FF992674 \n"
224 " LDRH R3, [R1, #0x86] \n"
225 " CMP R3, #0 \n"
226 " BNE loc_FF992674 \n"
227 " LDRH R3, [R1, #0x82] \n"
228 " CMP R3, #2 \n"
229 " BNE loc_FF992674 \n"
230 " BL sub_FF9936E8 \n"
231
232 "loc_FF992674:\n"
233 " LDR R1, =0xA2400 \n"
234 " MOV R3, #0x8200 \n"
235 " LDRH R2, [R1] \n"
236 " ADD R3, R3, #0xA \n"
237 " CMP R2, R3 \n"
238 " BEQ loc_FF9926BC \n"
239 " LDRH R3, [R1, #0x88] \n"
240 " CMP R3, #3 \n"
241 " BEQ loc_FF9926BC \n"
242 " LDR R3, [R4, #0xC] \n"
243 " CMP R3, #1 \n"
244 " BLS loc_FF9926BC \n"
245 " LDRH R3, [R1, #0x86] \n"
246 " CMP R3, #0 \n"
247 " BNE loc_FF9926BC \n"
248 " LDRH R3, [R1, #0x82] \n"
249 " CMP R3, #2 \n"
250 " BEQ loc_FF992724 \n"
251
252 "loc_FF9926BC:\n"
253 " LDR R2, =0xA2400 \n"
254 " LDRH R3, [R2, #0x88] \n"
255 " CMP R3, #3 \n"
256 " BEQ loc_FF99273C \n"
257 " LDRH R3, [R2, #0x86] \n"
258 " CMP R3, #0 \n"
259 " BNE loc_FF99273C \n"
260 " LDRH R1, [R2, #0x82] \n"
261 " CMP R1, #1 \n"
262 " BNE loc_FF99273C \n"
263 " LDRH R2, [R2] \n"
264 " MOV R3, #0x8200 \n"
265 " ADD R3, R3, #0xA \n"
266 " CMP R2, R3 \n"
267 " BEQ loc_FF99273C \n"
268 " LDR R3, [R4, #0xC] \n"
269 " CMP R3, #1 \n"
270 " BLS loc_FF99273C \n"
271 " ADD R3, R1, #0xFF00 \n"
272 " ADD R3, R3, #0xFF \n"
273 " MOV R3, R3, LSL#16 \n"
274 " CMP R3, #0x10000 \n"
275 " BHI loc_FF99273C \n"
276 " LDR R3, [R4, #0x10] \n"
277 " CMP R3, #1 \n"
278 " BNE loc_FF99273C \n"
279
280 "loc_FF992724:\n"
281 " LDR R3, =0x76CBC \n"
282 " MOV R2, #0xEA00 \n"
283 " LDR R0, [R3] \n"
284 " MOV R1, #0x8000000 \n"
285 " ADD R2, R2, #0x60 \n"
286 " BL sub_FF99D090 \n"
287
288 "loc_FF99273C:\n"
289 " BL sub_FF9924C4 \n"
290 " BL sub_FF9931AC \n"
291 " MOV R0, R4 \n"
292 " BL sub_FF9943AC \n"
293 " TST R0, #1 \n"
294 " BNE loc_FF992618 \n"
295 " BL sub_FF9D5114 \n"
296 " BL sub_FF825AC4 \n"
297 " STR R0, [R4, #0x14] \n"
298 " MOV R0, R4 \n"
299 " BL sub_FF995938 \n"
300 " BL sub_FF9963A4 \n"
301 " MOV R0, R4 \n"
302 " BL sub_FF995A50_my \n"
303 " BL capt_seq_hook_raw_here\n"
304 " MOV R1, #1 \n"
305 " MOV R2, R4 \n"
306 " BL sub_FF990BD8 \n"
307 " BL sub_FF995E80 \n"
308 " CMP R0, #0 \n"
309 " LDRNE R3, [R4, #8] \n"
310 " ORRNE R3, R3, #0x2000 \n"
311 " STRNE R3, [R4, #8] \n"
312 " LDR R2, =0xA2400 \n"
313 " LDRH R3, [R2, #0x88] \n"
314 " CMP R3, #3 \n"
315 " LDMEQFD SP!, {R4,PC} \n"
316 " LDRH R3, [R2, #0x86] \n"
317 " CMP R3, #0 \n"
318 " LDMNEFD SP!, {R4,PC} \n"
319 " LDRH R3, [R2, #0x82] \n"
320 " CMP R3, #2 \n"
321 " LDMNEFD SP!, {R4,PC} \n"
322 " MOV R0, R4 \n"
323 " LDMFD SP!, {R4,LR} \n"
324 " B sub_FF993740 \n"
325 );
326 }
327
328
329
330 void __attribute__((naked,noinline)) sub_FF995A50_my() {
331 asm volatile (
332 " STMFD SP!, {R4,R5,LR} \n"
333 " MOV R4, R0 \n"
334 " SUB SP, SP, #0xC \n"
335 " BL sub_FF996518 \n"
336 " MVN R1, #0 \n"
337 " BL sub_FF820E7C /*_ClearEventFlag*/ \n"
338 " MOV R0, #0x120 \n"
339 " ADD R0, R0, #2 \n"
340 " ADD R1, SP, #4 \n"
341 " MOV R2, #4 \n"
342 " BL _GetPropertyCase \n"
343 " TST R0, #1 \n"
344 " BEQ loc_FF995A90 \n"
345 " LDR R0, =0xFF9958CC /*'CaptureSeq.c'*/ \n"
346 " MOV R1, #0x1DC \n"
347 " BL _DebugAssert \n"
348
349 "loc_FF995A90:\n"
350 " LDR R3, =0xA2400 \n"
351 " LDR R2, =0xA24C0 \n"
352 " LDR R0, [R3, #0x7C] \n"
353 " LDRSH R1, [R2, #0xE] \n"
354 " BL sub_FF8B0C2C \n"
355 " MOV R0, R4 \n"
356 " BL sub_FF995850 \n"
357 " BL wait_until_remote_button_is_released\n"
358 " BL capt_seq_hook_set_nr\n"
359 " LDR PC, =0xFF995AAC \n"
360 );
361 }
362
363
364
365 void __attribute__((naked,noinline)) exp_drv_task() {
366 asm volatile (
367 " STMFD SP!, {R4-R8,LR} \n"
368 " SUB SP, SP, #0x20 \n"
369 " ADD R7, SP, #4 \n"
370 " B loc_FF9245F8 \n"
371
372 "loc_FF92414C:\n"
373 " CMP R2, #0x22 \n"
374 " BNE loc_FF924164 \n"
375 " LDR R0, [R12, #0x8C] \n"
376 " MOV LR, PC \n"
377 " LDR PC, [R12, #0x88] \n"
378 " B loc_FF9241C8 \n"
379
380 "loc_FF924164:\n"
381 " CMP R2, #0x1D \n"
382 " BNE loc_FF924178 \n"
383 " MOV R0, R12 \n"
384 " BL sub_FF92400C \n"
385 " B loc_FF9241B8 \n"
386
387 "loc_FF924178:\n"
388 " CMP R2, #0x1E \n"
389 " BNE loc_FF92418C \n"
390 " MOV R0, R12 \n"
391 " BL sub_FF924068 \n"
392 " B loc_FF9241B8 \n"
393
394 "loc_FF92418C:\n"
395 " SUB R3, R2, #0x1F \n"
396 " CMP R3, #1 \n"
397 " BHI loc_FF9241A4 \n"
398 " MOV R0, R12 \n"
399 " BL sub_FF9240C4 \n"
400 " B loc_FF9241B8 \n"
401
402 "loc_FF9241A4:\n"
403 " CMP R2, #0x21 \n"
404 " BNE loc_FF9241D4 \n"
405 " BL sub_FF8C57DC \n"
406 " BL sub_FF8C88D0 \n"
407 " BL sub_FF8C7B08 \n"
408
409 "loc_FF9241B8:\n"
410 " LDR R3, [SP, #4] \n"
411 " LDR R0, [R3, #0x8C] \n"
412 " MOV LR, PC \n"
413 " LDR PC, [R3, #0x88] \n"
414
415 "loc_FF9241C8:\n"
416 " LDR R0, [SP, #4] \n"
417 " BL sub_FF91FE70 \n"
418 " B loc_FF9245F8 \n"
419
420 "loc_FF9241D4:\n"
421 " CMP R2, #0xD \n"
422 " MOV R8, #1 \n"
423 " BNE loc_FF924244 \n"
424 " LDR R1, [R12, #0x7C] \n"
425 " ADD R1, R1, R1, LSL#1 \n"
426 " ADD R1, R12, R1, LSL#2 \n"
427 " ADD R6, SP, #0x14 \n"
428 " SUB R1, R1, #8 \n"
429 " MOV R2, #0xC \n"
430 " MOV R0, R6 \n"
431 " BL _memcpy \n"
432 " LDR R0, [SP, #4] \n"
433 " BL sub_FF92286C \n"
434 " LDR R3, [SP, #4] \n"
435 " LDR R1, [R3, #0x7C] \n"
436 " LDR R2, [R3, #0x8C] \n"
437 " ADD R0, R3, #4 \n"
438 " MOV LR, PC \n"
439 " LDR PC, [R3, #0x88] \n"
440 " LDR R0, [SP, #4] \n"
441 " BL sub_FF922B3C \n"
442 " LDR R3, [SP, #4] \n"
443 " ADD R0, R3, #4 \n"
444 " LDR R1, [R3, #0x7C] \n"
445 " LDR R2, [R3, #0x94] \n"
446 " MOV LR, PC \n"
447 " LDR PC, [R3, #0x90] \n"
448 " B loc_FF924594 \n"
449
450 "loc_FF924244:\n"
451 " SUB R3, R2, #0xE \n"
452 " CMP R3, #1 \n"
453 " BHI loc_FF924300 \n"
454 " ADD R6, SP, #0x14 \n"
455 " ADD R5, SP, #8 \n"
456 " MOV R0, R12 \n"
457 " MOV R1, R6 \n"
458 " MOV R2, R5 \n"
459 " BL sub_FF922C30 \n"
460 " MOV R4, R0 \n"
461 " CMP R4, #5 \n"
462 " CMPNE R4, #1 \n"
463 " BNE loc_FF924298 \n"
464 " LDR R12, [SP, #4] \n"
465 " MOV R0, R5 \n"
466 " LDR R1, [R12, #0x7C] \n"
467 " MOV R2, R4 \n"
468 " LDR R3, [R12, #0x8C] \n"
469 " MOV LR, PC \n"
470 " LDR PC, [R12, #0x88] \n"
471 " B loc_FF9242D0 \n"
472
473 "loc_FF924298:\n"
474 " CMP R4, #6 \n"
475 " CMPNE R4, #2 \n"
476 " BNE loc_FF9242E0 \n"
477 " LDR R12, [SP, #4] \n"
478 " MOV R0, R5 \n"
479 " MOV R1, R8 \n"
480 " MOV R2, R4 \n"
481 " LDR R3, [R12, #0x8C] \n"
482 " MOV LR, PC \n"
483 " LDR PC, [R12, #0x88] \n"
484 " MOV R1, R6 \n"
485 " LDR R0, [SP, #4] \n"
486 " MOV R2, R5 \n"
487 " BL sub_FF923C78 \n"
488
489 "loc_FF9242D0:\n"
490 " MOV R1, R4 \n"
491 " LDR R0, [SP, #4] \n"
492 " BL sub_FF923FA0 \n"
493 " B loc_FF924594 \n"
494
495 "loc_FF9242E0:\n"
496 " LDR R12, [SP, #4] \n"
497 " MOV R2, R4 \n"
498 " ADD R0, R12, #4 \n"
499 " LDR R1, [R12, #0x7C] \n"
500 " LDR R3, [R12, #0x8C] \n"
501 " MOV LR, PC \n"
502 " LDR PC, [R12, #0x88] \n"
503 " B loc_FF924594 \n"
504
505 "loc_FF924300:\n"
506 " SUB R3, R2, #0x19 \n"
507 " CMP R3, #1 \n"
508 " BHI loc_FF924358 \n"
509 " LDR R1, [R12, #0x7C] \n"
510 " ADD R1, R1, R1, LSL#1 \n"
511 " ADD R1, R12, R1, LSL#2 \n"
512 " ADD R6, SP, #0x14 \n"
513 " SUB R1, R1, #8 \n"
514 " MOV R2, #0xC \n"
515 " MOV R0, R6 \n"
516 " BL _memcpy \n"
517 " LDR R0, [SP, #4] \n"
518 " BL sub_FF921D20 \n"
519 " LDR R3, [SP, #4] \n"
520 " ADD R0, R3, #4 \n"
521 " LDR R1, [R3, #0x7C] \n"
522 " LDR R2, [R3, #0x8C] \n"
523 " MOV LR, PC \n"
524 " LDR PC, [R3, #0x88] \n"
525 " LDR R0, [SP, #4] \n"
526 " BL sub_FF922040 \n"
527 " B loc_FF924594 \n"
528
529 "loc_FF924358:\n"
530 " ADD R6, SP, #0x14 \n"
531 " ADD R1, R12, #4 \n"
532 " MOV R2, #0xC \n"
533 " MOV R0, R6 \n"
534 " BL _memcpy \n"
535 " LDR R12, [SP, #4] \n"
536 " LDR R3, [R12] \n"
537 " MOV R2, R12 \n"
538 " CMP R3, #0x1C \n"
539 " LDRLS PC, [PC, R3, LSL#2] \n"
540 " B loc_FF924580 \n"
541 " .long loc_FF9243F8 \n"
542 " .long loc_FF924404 \n"
543 " .long loc_FF924410 \n"
544 " .long loc_FF924410 \n"
545 " .long loc_FF9243F8 \n"
546 " .long loc_FF924404 \n"
547 " .long loc_FF924410 \n"
548 " .long loc_FF924410 \n"
549 " .long loc_FF924434 \n"
550 " .long loc_FF924434 \n"
551 " .long loc_FF924554 \n"
552 " .long loc_FF924560 \n"
553 " .long loc_FF924570 \n"
554 " .long loc_FF924580 \n"
555 " .long loc_FF924580 \n"
556 " .long loc_FF924580 \n"
557 " .long loc_FF92441C \n"
558 " .long loc_FF924428 \n"
559 " .long loc_FF924444 \n"
560 " .long loc_FF924450 \n"
561 " .long loc_FF924488 \n"
562 " .long loc_FF9244C0 \n"
563 " .long loc_FF9244F8 \n"
564 " .long loc_FF924530 \n"
565 " .long loc_FF924530 \n"
566 " .long loc_FF924580 \n"
567 " .long loc_FF924580 \n"
568 " .long loc_FF92453C \n"
569 " .long loc_FF924548 \n"
570
571 "loc_FF9243F8:\n"
572 " MOV R0, R2 \n"
573 " BL sub_FF920720 \n"
574 " B loc_FF92457C \n"
575
576 "loc_FF924404:\n"
577 " MOV R0, R2 \n"
578 " BL sub_FF9209C4 \n"
579 " B loc_FF92457C \n"
580
581 "loc_FF924410:\n"
582 " MOV R0, R2 \n"
583 " BL sub_FF920C38 \n"
584 " B loc_FF92457C \n"
585
586 "loc_FF92441C:\n"
587 " MOV R0, R2 \n"
588 " BL sub_FF920F34 \n"
589 " B loc_FF92457C \n"
590
591 "loc_FF924428:\n"
592 " MOV R0, R2 \n"
593 " BL sub_FF921198 \n"
594 " B loc_FF92457C \n"
595
596 "loc_FF924434:\n"
597 " MOV R0, R2 \n"
598 " BL sub_FF921394_my \n"
599 " MOV R8, #0 \n"
600 " B loc_FF92457C \n"
601
602 "loc_FF924444:\n"
603 " MOV R0, R2 \n"
604 " BL sub_FF9214F0 \n"
605 " B loc_FF92457C \n"
606
607 "loc_FF924450:\n"
608 " LDRH R1, [R2, #4] \n"
609 " LDR R3, =0x51028 \n"
610 " STRH R1, [SP, #0x14] \n"
611 " LDRH R1, [R3, #6] \n"
612 " STRH R1, [SP, #0x1A] \n"
613 " LDRH R1, [R3, #2] \n"
614 " STRH R1, [SP, #0x16] \n"
615 " LDRH R3, [R3, #4] \n"
616 " STRH R3, [SP, #0x18] \n"
617 " MOV R0, R2 \n"
618 " LDRH R2, [R2, #0xC] \n"
619 " STRH R2, [SP, #0x1C] \n"
620 " BL sub_FF9217EC \n"
621 " B loc_FF92457C \n"
622
623 "loc_FF924488:\n"
624 " MOV R0, R2 \n"
625 " LDRH R2, [R2, #4] \n"
626 " LDR R3, =0x51028 \n"
627 " STRH R2, [SP, #0x14] \n"
628 " LDRH R2, [R3, #8] \n"
629 " STRH R2, [SP, #0x1C] \n"
630 " LDRH R1, [R3, #2] \n"
631 " STRH R1, [SP, #0x16] \n"
632 " LDRH R2, [R3, #4] \n"
633 " STRH R2, [SP, #0x18] \n"
634 " LDRH R3, [R3, #6] \n"
635 " STRH R3, [SP, #0x1A] \n"
636 " BL sub_FF921914 \n"
637 " B loc_FF92457C \n"
638
639 "loc_FF9244C0:\n"
640 " LDR R3, =0x51028 \n"
641 " LDRH R1, [R3] \n"
642 " STRH R1, [SP, #0x14] \n"
643 " MOV R0, R2 \n"
644 " LDRH R2, [R2, #6] \n"
645 " STRH R2, [SP, #0x16] \n"
646 " LDRH R2, [R3, #8] \n"
647 " STRH R2, [SP, #0x1C] \n"
648 " LDRH R1, [R3, #4] \n"
649 " STRH R1, [SP, #0x18] \n"
650 " LDRH R3, [R3, #6] \n"
651 " STRH R3, [SP, #0x1A] \n"
652 " BL sub_FF9219D8 \n"
653 " B loc_FF92457C \n"
654
655 "loc_FF9244F8:\n"
656 " LDR R3, =0x51028 \n"
657 " LDRH R1, [R3, #6] \n"
658 " STRH R1, [SP, #0x1A] \n"
659 " LDRH R1, [R3] \n"
660 " STRH R1, [SP, #0x14] \n"
661 " LDRH R1, [R3, #2] \n"
662 " STRH R1, [SP, #0x16] \n"
663 " LDRH R3, [R3, #4] \n"
664 " STRH R3, [SP, #0x18] \n"
665 " MOV R0, R2 \n"
666 " LDRH R2, [R2, #0xC] \n"
667 " STRH R2, [SP, #0x1C] \n"
668 " BL sub_FF921A90 \n"
669 " B loc_FF92457C \n"
670
671 "loc_FF924530:\n"
672 " MOV R0, R2 \n"
673 " BL sub_FF921B40 \n"
674 " B loc_FF92457C \n"
675
676 "loc_FF92453C:\n"
677 " MOV R0, R2 \n"
678 " BL sub_FF922190 \n"
679 " B loc_FF92457C \n"
680
681 "loc_FF924548:\n"
682 " MOV R0, R2 \n"
683 " BL sub_FF92238C \n"
684 " B loc_FF92457C \n"
685
686 "loc_FF924554:\n"
687 " MOV R0, R2 \n"
688 " BL sub_FF922548 \n"
689 " B loc_FF92457C \n"
690
691 "loc_FF924560:\n"
692 " MOV R0, R2 \n"
693 " MOV R1, #0 \n"
694 " BL sub_FF92272C \n"
695 " B loc_FF92457C \n"
696
697 "loc_FF924570:\n"
698 " MOV R0, R2 \n"
699 " MOV R1, #1 \n"
700 " BL sub_FF92272C \n"
701
702 "loc_FF92457C:\n"
703 " LDR R12, [SP, #4] \n"
704
705 "loc_FF924580:\n"
706 " ADD R0, R12, #4 \n"
707 " LDR R1, [R12, #0x7C] \n"
708 " LDR R2, [R12, #0x8C] \n"
709 " MOV LR, PC \n"
710 " LDR PC, [R12, #0x88] \n"
711
712 "loc_FF924594:\n"
713 " CMP R8, #1 \n"
714 " BNE loc_FF9245BC \n"
715 " LDR R1, [SP, #4] \n"
716 " LDR R3, [R1, #0x7C] \n"
717 " ADD R3, R3, R3, LSL#1 \n"
718 " ADD R1, R1, R3, LSL#2 \n"
719 " MOV R0, R6 \n"
720 " SUB R1, R1, #8 \n"
721 " BL sub_FF920484 \n"
722 " B loc_FF9245F0 \n"
723
724 "loc_FF9245BC:\n"
725 " MOV R4, #1 \n"
726 " MOV R0, R4 \n"
727 " MOV R1, R4 \n"
728 " MOV R2, R4 \n"
729 " MOV R3, R4 \n"
730 " STR R4, [SP] \n"
731 " BL sub_FF9203D8 \n"
732 " MOV R0, R4 \n"
733 " MOV R1, R0 \n"
734 " MOV R2, R0 \n"
735 " MOV R3, R0 \n"
736 " STR R4, [SP] \n"
737 " BL sub_FF92055C \n"
738
739 "loc_FF9245F0:\n"
740 " LDR R0, [SP, #4] \n"
741 " BL sub_FF91FE70 \n"
742
743 "loc_FF9245F8:\n"
744 " LDR R3, =0x51020 \n"
745 " MOV R2, #0 \n"
746 " LDR R0, [R3] \n"
747 " MOV R1, R7 \n"
748 " BL sub_FF8213F8 /*_ReceiveMessageQueue*/ \n"
749 " LDR R12, [SP, #4] \n"
750 " LDR R2, [R12] \n"
751 " CMP R2, #0x23 \n"
752 " BNE loc_FF92414C \n"
753 " MOV R0, R12 \n"
754 " BL sub_FF91FE70 \n"
755 " LDR R3, =0x5101C \n"
756 " MOV R1, #1 \n"
757 " LDR R0, [R3] \n"
758 " BL sub_FF820CE0 /*_SetEventFlag*/ \n"
759 " BL _ExitTask \n"
760 " ADD SP, SP, #0x20 \n"
761 " LDMFD SP!, {R4-R8,PC} \n"
762 );
763 }
764
765
766
767 void __attribute__((naked,noinline)) sub_FF921394_my() {
768 asm volatile (
769 " STMFD SP!, {R4-R6,LR} \n"
770 " LDR R3, =0x5101C \n"
771 " MOV R4, R0 \n"
772 " MOV R1, #0x3E \n"
773 " LDR R0, [R3] \n"
774 " BL sub_FF820E7C /*_ClearEventFlag*/ \n"
775 " MOV R1, #0 \n"
776 " LDRSH R0, [R4, #4] \n"
777 " BL sub_FF91FFA4 \n"
778 " MOV R6, R0 \n"
779 " LDRSH R0, [R4, #6] \n"
780 " BL sub_FF920118 \n"
781 " LDRSH R0, [R4, #8] \n"
782 " BL sub_FF9201B4 \n"
783 " LDRSH R0, [R4, #0xA] \n"
784 " BL sub_FF920250 \n"
785 " LDRSH R0, [R4, #0xC] \n"
786 " BL sub_FF9202EC \n"
787 " LDR R3, [R4] \n"
788 " CMP R3, #9 \n"
789 " MOV R5, R0 \n"
790 " MOVEQ R5, #0 \n"
791 " MOVEQ R6, R5 \n"
792 " CMP R6, #1 \n"
793 " BNE loc_FF921418 \n"
794 " MOV R2, #2 \n"
795 " LDRSH R0, [R4, #4] \n"
796 " LDR R1, =0xFF91FEC4 \n"
797 " BL sub_FFAF8644 \n"
798 " LDR R2, =0x5105C \n"
799 " MOV R3, #0 \n"
800 " STR R3, [R2] \n"
801 " B loc_FF92141C \n"
802
803 "loc_FF921418:\n"
804 " BL sub_FF920388 \n"
805
806 "loc_FF92141C:\n"
807 " STRH R0, [R4, #4] \n"
808 " CMP R5, #1 \n"
809 " BNE loc_FF92143C \n"
810 " LDRSH R0, [R4, #0xC] \n"
811 " LDR R1, =0xFF91FF88 \n"
812 " MOV R2, #0x20 \n"
813 " BL sub_FF9206C0 \n"
814 " B loc_FF921440 \n"
815
816 "loc_FF92143C:\n"
817 " BL sub_FF9203C8 \n"
818
819 "loc_FF921440:\n"
820 " STRH R0, [R4, #0xC] \n"
821 " LDRSH R0, [R4, #6] \n"
822 " BL sub_FF8C5464_my \n"
823 " LDRSH R0, [R4, #8] \n"
824 " MOV R1, #1 \n"
825 " BL sub_FF8C76C8 \n"
826 " ADD R0, R4, #8 \n"
827 " MOV R1, #0 \n"
828 " BL sub_FF8C7788 \n"
829 " LDRSH R0, [R4, #0xE] \n"
830 " BL sub_FF90DAA0 \n"
831 " CMP R6, #1 \n"
832 " BNE loc_FF9214A4 \n"
833 " LDR R3, =0x5101C \n"
834 " MOV R2, #0xBB0 \n"
835 " LDR R0, [R3] \n"
836 " MOV R1, #2 \n"
837 " ADD R2, R2, #8 \n"
838 " BL sub_FF820CD0 /*_WaitForAllEventFlag*/ \n"
839 " TST R0, #1 \n"
840 " BEQ loc_FF9214A4 \n"
841 " MOV R1, #0x440 \n"
842 " LDR R0, =0xFF91FE1C /*'ExpDrv.c'*/ \n"
843 " ADD R1, R1, #0xB \n"
844 " BL _DebugAssert \n"
845
846 "loc_FF9214A4:\n"
847 " CMP R5, #1 \n"
848 " LDMNEFD SP!, {R4-R6,PC} \n"
849 " LDR R3, =0x5101C \n"
850 " MOV R2, #0xBB0 \n"
851 " LDR R0, [R3] \n"
852 " MOV R1, #0x20 \n"
853 " ADD R2, R2, #8 \n"
854 " BL sub_FF820CD0 /*_WaitForAllEventFlag*/ \n"
855 " TST R0, #1 \n"
856 " LDMEQFD SP!, {R4-R6,PC} \n"
857 " LDR R0, =0xFF91FE1C /*'ExpDrv.c'*/ \n"
858 " MOV R1, #0x450 \n"
859 " LDMFD SP!, {R4-R6,LR} \n"
860 " B _DebugAssert \n"
861 );
862 }
863
864
865
866 void __attribute__((naked,noinline)) sub_FF8C5464_my() {
867 asm volatile (
868 " STMFD SP!, {R4,LR} \n"
869 " LDR R3, =0x5670 \n"
870 " LDR R2, [R3] \n"
871 " MOV R1, #0x150 \n"
872 " MOV R3, R0, LSL#16 \n"
873 " CMP R2, #1 \n"
874 " ADD R1, R1, #1 \n"
875 " LDR R0, =0xFF8C4CA0 /*'Shutter.c'*/ \n"
876 " MOV R4, R3, ASR#16 \n"
877 " BEQ loc_FF8C5490 \n"
878 " BL _DebugAssert \n"
879
880 "loc_FF8C5490:\n"
881 " MOV R1, #0x154 \n"
882 " CMN R4, #0xC00 \n"
883 " LDR R3, =0x359FE \n"
884 " LDR R0, =0xFF8C4CA0 /*'Shutter.c'*/ \n"
885 " ADD R1, R1, #3 \n"
886 " LDREQSH R4, [R3] \n"
887 " LDRNE R3, =0x359FE \n"
888 " CMN R4, #0xC00 \n"
889 " STRH R4, [R3] \n"
890 " BNE loc_FF8C54BC \n"
891 " BL _DebugAssert \n"
892
893 "loc_FF8C54BC:\n"
894 " MOV R0, R4 \n"
895 " BL apex2us \n"
896 " LDR PC, =0xFF8C54C4 \n"
897 );
898 }