This source file includes following definitions.
- capt_seq_task
- sub_FFC4B1AC_my
- sub_FFD0C380_my
- exp_drv_task
- sub_FFC819A8_my
- sub_FFC6E0EC_my
1
2
3
4 #include "lolevel.h"
5 #include "platform.h"
6 #include "core.h"
7
8 #define USE_STUBS_NRFLAG 1
9
10 #include "../../../generic/capt_seq.c"
11
12
13
14 void __attribute__((naked,noinline)) capt_seq_task() {
15 asm volatile (
16 " STMFD SP!, {R3-R7,LR} \n"
17 " LDR R6, =0x5170 \n"
18
19 "loc_FFC4AE8C:\n"
20 " LDR R0, [R6, #8] \n"
21 " MOV R2, #0 \n"
22 " MOV R1, SP \n"
23 " BL sub_FFC1693C /*_ReceiveMessageQueue*/ \n"
24 " TST R0, #1 \n"
25 " BEQ loc_FFC4AEB8 \n"
26 " LDR R1, =0x539 \n"
27 " LDR R0, =0xFFC4AA98 /*'SsShootTask.c'*/ \n"
28 " BL _DebugAssert \n"
29 " BL _ExitTask \n"
30 " LDMFD SP!, {R3-R7,PC} \n"
31
32 "loc_FFC4AEB8:\n"
33 " LDR R0, [SP] \n"
34 " LDR R1, [R0] \n"
35 " CMP R1, #0x1D \n"
36 " ADDLS PC, PC, R1, LSL#2 \n"
37 " B loc_FFC4B084 \n"
38 " B loc_FFC4AF44 \n"
39 " B loc_FFC4AF4C \n"
40 " B loc_FFC4AF54 \n"
41 " B loc_FFC4AF68 \n"
42 " B loc_FFC4AF60 \n"
43 " B loc_FFC4AF70 \n"
44 " B loc_FFC4AF78 \n"
45 " B loc_FFC4AF84 \n"
46 " B loc_FFC4AFDC \n"
47 " B loc_FFC4AF68 \n"
48 " B loc_FFC4AFE4 \n"
49 " B loc_FFC4AFF4 \n"
50 " B loc_FFC4AFFC \n"
51 " B loc_FFC4B004 \n"
52 " B loc_FFC4B00C \n"
53 " B loc_FFC4B014 \n"
54 " B loc_FFC4B01C \n"
55 " B loc_FFC4B024 \n"
56 " B loc_FFC4B030 \n"
57 " B loc_FFC4B038 \n"
58 " B loc_FFC4B040 \n"
59 " B loc_FFC4B048 \n"
60 " B loc_FFC4B050 \n"
61 " B loc_FFC4B05C \n"
62 " B loc_FFC4B064 \n"
63 " B loc_FFC4B06C \n"
64 " B loc_FFC4B074 \n"
65 " B loc_FFC4B07C \n"
66 " B loc_FFC4B090 \n"
67 " B loc_FFC4B090 \n"
68
69 "loc_FFC4AF44:\n"
70 " BL sub_FFC4B710 \n"
71 " BL shooting_expo_param_override\n"
72 " B loc_FFC4AF7C \n"
73
74 "loc_FFC4AF4C:\n"
75 " BL sub_FFC4B1AC_my \n"
76 " B loc_FFC4B090 \n"
77
78 "loc_FFC4AF54:\n"
79 " MOV R0, #1 \n"
80 " BL sub_FFC4B8AC \n"
81 " B loc_FFC4B090 \n"
82
83 "loc_FFC4AF60:\n"
84 " BL sub_FFC4B390 \n"
85 " B loc_FFC4B090 \n"
86
87 "loc_FFC4AF68:\n"
88 " BL sub_FFC4B6F0 \n"
89 " B loc_FFC4B090 \n"
90
91 "loc_FFC4AF70:\n"
92 " BL sub_FFC4B6F8 \n"
93 " B loc_FFC4B090 \n"
94
95 "loc_FFC4AF78:\n"
96 " BL sub_FFC4B7CC \n"
97
98 "loc_FFC4AF7C:\n"
99 " BL sub_FFC491F4 \n"
100 " B loc_FFC4B090 \n"
101
102 "loc_FFC4AF84:\n"
103 " LDR R4, [R0, #0xC] \n"
104 " BL sub_FFC4B700 \n"
105 " MOV R0, R4 \n"
106 " BL sub_FFD0B4C8 \n"
107 " TST R0, #1 \n"
108 " MOV R5, R0 \n"
109 " BNE loc_FFC4AFC4 \n"
110 " BL sub_FFC5923C \n"
111 " STR R0, [R4, #0x18] \n"
112 " MOV R0, R4 \n"
113 " BL sub_FFD0C2B8 \n"
114 " MOV R0, R4 \n"
115 " BL sub_FFD0C76C \n"
116 " MOV R5, R0 \n"
117 " LDR R0, [R4, #0x18] \n"
118 " BL sub_FFC59450 \n"
119
120 "loc_FFC4AFC4:\n"
121 " BL sub_FFC4B6F0 \n"
122 " MOV R2, R4 \n"
123 " MOV R1, #9 \n"
124 " MOV R0, R5 \n"
125 " BL sub_FFC495D0 \n"
126 " B loc_FFC4B090 \n"
127
128 "loc_FFC4AFDC:\n"
129 " BL sub_FFC4B82C \n"
130 " B loc_FFC4AF7C \n"
131
132 "loc_FFC4AFE4:\n"
133 " LDR R0, =0x18CB0 \n"
134 " LDR R0, [R0, #0x4C] \n"
135 " BL sub_FFC4BBC4 \n"
136 " B loc_FFC4B090 \n"
137
138 "loc_FFC4AFF4:\n"
139 " BL sub_FFC4BE6C \n"
140 " B loc_FFC4B090 \n"
141
142 "loc_FFC4AFFC:\n"
143 " BL sub_FFC4BEF8 \n"
144 " B loc_FFC4B090 \n"
145
146 "loc_FFC4B004:\n"
147 " BL sub_FFD0B6EC \n"
148 " B loc_FFC4B090 \n"
149
150 "loc_FFC4B00C:\n"
151 " BL sub_FFD0B8D4 \n"
152 " B loc_FFC4B090 \n"
153
154 "loc_FFC4B014:\n"
155 " BL sub_FFD0B964 \n"
156 " B loc_FFC4B090 \n"
157
158 "loc_FFC4B01C:\n"
159 " BL sub_FFD0BA0C \n"
160 " B loc_FFC4B090 \n"
161
162 "loc_FFC4B024:\n"
163 " MOV R0, #0 \n"
164 " BL sub_FFD0BBB0 \n"
165 " B loc_FFC4B090 \n"
166
167 "loc_FFC4B030:\n"
168 " BL sub_FFD0BCF0 \n"
169 " B loc_FFC4B090 \n"
170
171 "loc_FFC4B038:\n"
172 " BL sub_FFD0BD84 \n"
173 " B loc_FFC4B090 \n"
174
175 "loc_FFC4B040:\n"
176 " BL sub_FFD0BE48 \n"
177 " B loc_FFC4B090 \n"
178
179 "loc_FFC4B048:\n"
180 " BL sub_FFC4BA14 \n"
181 " B loc_FFC4B090 \n"
182
183 "loc_FFC4B050:\n"
184 " BL sub_FFC4BA40 \n"
185 " BL sub_FFC14170 \n"
186 " B loc_FFC4B090 \n"
187
188 "loc_FFC4B05C:\n"
189 " BL sub_FFD0BAC8 \n"
190 " B loc_FFC4B090 \n"
191
192 "loc_FFC4B064:\n"
193 " BL sub_FFD0BB0C \n"
194 " B loc_FFC4B090 \n"
195
196 "loc_FFC4B06C:\n"
197 " BL sub_FFC4D3A4 \n"
198 " B loc_FFC4B090 \n"
199
200 "loc_FFC4B074:\n"
201 " BL sub_FFC4D3C0 \n"
202 " B loc_FFC4B090 \n"
203
204 "loc_FFC4B07C:\n"
205 " BL sub_FFC4D3D0 \n"
206 " B loc_FFC4B090 \n"
207
208 "loc_FFC4B084:\n"
209 " LDR R1, =0x65E \n"
210 " LDR R0, =0xFFC4AA98 /*'SsShootTask.c'*/ \n"
211 " BL _DebugAssert \n"
212
213 "loc_FFC4B090:\n"
214 " LDR R0, [SP] \n"
215 " LDR R1, [R0, #4] \n"
216 " LDR R0, [R6, #4] \n"
217 " BL sub_FFC166AC /*_SetEventFlag*/ \n"
218 " LDR R4, [SP] \n"
219 " LDR R0, [R4, #8] \n"
220 " CMP R0, #0 \n"
221 " LDREQ R1, =0x11D \n"
222 " LDREQ R0, =0xFFC4AA98 /*'SsShootTask.c'*/ \n"
223 " BLEQ _DebugAssert \n"
224 " MOV R0, #0 \n"
225 " STR R0, [R4, #8] \n"
226 " B loc_FFC4AE8C \n"
227 );
228 }
229
230
231
232 void __attribute__((naked,noinline)) sub_FFC4B1AC_my() {
233 asm volatile (
234 " STMFD SP!, {R3-R5,LR} \n"
235 " LDR R4, [R0, #0xC] \n"
236 " LDR R0, [R4, #8] \n"
237 " ORR R0, R0, #1 \n"
238 " STR R0, [R4, #8] \n"
239 " MOV R0, #2 \n"
240 " BL sub_FFC45F20 \n"
241 " BL sub_FFC4B700 \n"
242 " MOV R0, R4 \n"
243 " BL sub_FFC4B9C8 \n"
244 " MOV R0, R4 \n"
245 " BL sub_FFD0B150 \n"
246 " CMP R0, #0 \n"
247 " MOV R0, R4 \n"
248 " BEQ loc_FFC4B204 \n"
249 " BL sub_FFD0B1EC \n"
250 " TST R0, #1 \n"
251 " MOVNE R2, R4 \n"
252 " LDMNEFD SP!, {R3-R5,LR} \n"
253 " MOVNE R1, #1 \n"
254 " BNE sub_FFC495D0 \n"
255 " B loc_FFC4B208 \n"
256
257 "loc_FFC4B204:\n"
258 " BL sub_FFD0B1A0 \n"
259
260 "loc_FFC4B208:\n"
261 " MOV R0, #0 \n"
262 " STR R0, [SP] \n"
263 " LDR R0, =0x18CB0 \n"
264 " MOV R2, #2 \n"
265 " LDRH R0, [R0, #0x8A] \n"
266 " MOV R1, SP \n"
267 " CMP R0, #3 \n"
268 " LDRNE R0, [R4, #0xC] \n"
269 " CMPNE R0, #1 \n"
270 " MOVHI R0, #1 \n"
271 " STRHI R0, [SP] \n"
272 " LDR R0, =0x123 \n"
273 " BL _SetPropertyCase \n"
274 " BL sub_FFD2DB04 \n"
275 " BL sub_FFC5923C \n"
276 " STR R0, [R4, #0x18] \n"
277 " MOV R0, R4 \n"
278 " BL sub_FFD0C2B8 \n"
279 " BL sub_FFD0CE08 \n"
280 " MOV R0, R4 \n"
281 " BL sub_FFD0C380_my \n"
282 " MOV R5, R0 \n"
283 " BL capt_seq_hook_raw_here\n"
284 " BL sub_FFC4D3C0 \n"
285 " BL sub_FFC4D3FC \n"
286 " MOV R2, R4 \n"
287 " MOV R1, #1 \n"
288 " MOV R0, R5 \n"
289 " BL sub_FFC495D0 \n"
290 " BL sub_FFD0C6FC \n"
291 " CMP R0, #0 \n"
292 " LDRNE R0, [R4, #8] \n"
293 " ORRNE R0, R0, #0x2000 \n"
294 " STRNE R0, [R4, #8] \n"
295 " LDMFD SP!, {R3-R5,PC} \n"
296 );
297 }
298
299
300
301 void __attribute__((naked,noinline)) sub_FFD0C380_my() {
302 asm volatile (
303 " STMFD SP!, {R1-R9,LR} \n"
304 " MOV R4, R0 \n"
305 " BL sub_FFD0CF68 \n"
306 " MVN R1, #0 \n"
307 " BL sub_FFC166E0 /*_ClearEventFlag*/ \n"
308 " MOV R2, #4 \n"
309 " ADD R1, SP, #4 \n"
310 " MOV R0, #0x8A \n"
311 " BL _GetPropertyCase \n"
312 " TST R0, #1 \n"
313 " MOVNE R1, #0x35C \n"
314 " LDRNE R0, =0xFFD0C4F8 /*'SsCaptureSeq.c'*/ \n"
315 " BLNE _DebugAssert \n"
316 " LDR R7, =0x18D68 \n"
317 " LDR R6, =0x18CB0 \n"
318 " LDRSH R1, [R7, #0xE] \n"
319 " LDR R0, [R6, #0x80] \n"
320 " BL sub_FFDC24A8 \n"
321 " BL sub_FFC33494 /*_GetBatteryTemperature*/ \n"
322 " LDR R3, =0x8590 \n"
323 " STRH R0, [R4, #0x94] \n"
324 " STR R3, [SP] \n"
325 " MOV R1, R0 \n"
326 " LDRH R0, [R6, #0x54] \n"
327 " LDRSH R2, [R7, #0xC] \n"
328 " SUB R3, R3, #4 \n"
329 " BL sub_FFD0D560 \n"
330 " BL wait_until_remote_button_is_released\n"
331 " BL capt_seq_hook_set_nr\n"
332 " LDR PC, =0xFFD0C3EC \n"
333 );
334 }
335
336
337
338 void __attribute__((naked,noinline)) exp_drv_task() {
339 asm volatile (
340 " STMFD SP!, {R4-R8,LR} \n"
341 " SUB SP, SP, #0x20 \n"
342 " LDR R8, =0xBB8 \n"
343 " LDR R7, =0x6258 \n"
344 " LDR R5, =0x1DBF8 \n"
345 " MOV R0, #0 \n"
346 " ADD R6, SP, #0x10 \n"
347 " STR R0, [SP, #0xC] \n"
348
349 "loc_FFC83ED0:\n"
350 " LDR R0, [R7, #0x20] \n"
351 " MOV R2, #0 \n"
352 " ADD R1, SP, #0x1C \n"
353 " BL sub_FFC1693C /*_ReceiveMessageQueue*/ \n"
354 " LDR R0, [SP, #0xC] \n"
355 " CMP R0, #1 \n"
356 " BNE loc_FFC83F18 \n"
357 " LDR R0, [SP, #0x1C] \n"
358 " LDR R0, [R0] \n"
359 " CMP R0, #0x13 \n"
360 " CMPNE R0, #0x14 \n"
361 " CMPNE R0, #0x15 \n"
362 " BEQ loc_FFC84034 \n"
363 " CMP R0, #0x27 \n"
364 " BEQ loc_FFC8400C \n"
365 " ADD R1, SP, #0xC \n"
366 " MOV R0, #0 \n"
367 " BL sub_FFC83E60 \n"
368
369 "loc_FFC83F18:\n"
370 " LDR R0, [SP, #0x1C] \n"
371 " LDR R1, [R0] \n"
372 " CMP R1, #0x2C \n"
373 " BNE loc_FFC83F48 \n"
374 " LDR R0, [SP, #0x1C] \n"
375 " BL sub_FFC8511C \n"
376 " LDR R0, [R7, #0x1C] \n"
377 " MOV R1, #1 \n"
378 " BL sub_FFC166AC /*_SetEventFlag*/ \n"
379 " BL _ExitTask \n"
380 " ADD SP, SP, #0x20 \n"
381 " LDMFD SP!, {R4-R8,PC} \n"
382
383 "loc_FFC83F48:\n"
384 " CMP R1, #0x2B \n"
385 " BNE loc_FFC83F64 \n"
386 " LDR R2, [R0, #0x88]! \n"
387 " LDR R1, [R0, #4] \n"
388 " MOV R0, R1 \n"
389 " BLX R2 \n"
390 " B loc_FFC844A0 \n"
391
392 "loc_FFC83F64:\n"
393 " CMP R1, #0x25 \n"
394 " BNE loc_FFC83FB4 \n"
395 " LDR R0, [R7, #0x1C] \n"
396 " MOV R1, #0x80 \n"
397 " BL sub_FFC166E0 /*_ClearEventFlag*/ \n"
398 " LDR R0, =0xFFC8096C \n"
399 " MOV R1, #0x80 \n"
400 " BL sub_FFCFFF58 \n"
401 " LDR R0, [R7, #0x1C] \n"
402 " MOV R2, R8 \n"
403 " MOV R1, #0x80 \n"
404 " BL sub_FFC165EC /*_WaitForAllEventFlag*/ \n"
405 " TST R0, #1 \n"
406 " LDRNE R1, =0xD36 \n"
407 " BNE loc_FFC83FF8 \n"
408
409 "loc_FFC83FA0:\n"
410 " LDR R1, [SP, #0x1C] \n"
411 " LDR R0, [R1, #0x8C] \n"
412 " LDR R1, [R1, #0x88] \n"
413 " BLX R1 \n"
414 " B loc_FFC844A0 \n"
415
416 "loc_FFC83FB4:\n"
417 " CMP R1, #0x26 \n"
418 " BNE loc_FFC84004 \n"
419 " ADD R1, SP, #0xC \n"
420 " BL sub_FFC83E60 \n"
421 " LDR R0, [R7, #0x1C] \n"
422 " MOV R1, #0x100 \n"
423 " BL sub_FFC166E0 /*_ClearEventFlag*/ \n"
424 " LDR R0, =0xFFC8097C \n"
425 " MOV R1, #0x100 \n"
426 " BL sub_FFD001E0 \n"
427 " LDR R0, [R7, #0x1C] \n"
428 " MOV R2, R8 \n"
429 " MOV R1, #0x100 \n"
430 " BL sub_FFC165EC /*_WaitForAllEventFlag*/ \n"
431 " TST R0, #1 \n"
432 " BEQ loc_FFC83FA0 \n"
433 " MOV R1, #0xD40 \n"
434
435 "loc_FFC83FF8:\n"
436 " LDR R0, =0xFFC8106C /*'ExpDrv.c'*/ \n"
437 " BL _DebugAssert \n"
438 " B loc_FFC83FA0 \n"
439
440 "loc_FFC84004:\n"
441 " CMP R1, #0x27 \n"
442 " BNE loc_FFC8401C \n"
443
444 "loc_FFC8400C:\n"
445 " LDR R0, [SP, #0x1C] \n"
446 " ADD R1, SP, #0xC \n"
447 " BL sub_FFC83E60 \n"
448 " B loc_FFC83FA0 \n"
449
450 "loc_FFC8401C:\n"
451 " CMP R1, #0x2A \n"
452 " BNE loc_FFC84034 \n"
453 " BL sub_FFC6E37C \n"
454 " BL sub_FFC6F008 \n"
455 " BL sub_FFC6EB40 \n"
456 " B loc_FFC83FA0 \n"
457
458 "loc_FFC84034:\n"
459 " LDR R0, [SP, #0x1C] \n"
460 " MOV R4, #1 \n"
461 " LDR R1, [R0] \n"
462 " CMP R1, #0x11 \n"
463 " CMPNE R1, #0x12 \n"
464 " BNE loc_FFC840A4 \n"
465 " LDR R1, [R0, #0x7C] \n"
466 " ADD R1, R1, R1, LSL#1 \n"
467 " ADD R1, R0, R1, LSL#2 \n"
468 " SUB R1, R1, #8 \n"
469 " LDMIA R1, {R2-R4} \n"
470 " STMIA R6, {R2-R4} \n"
471 " BL sub_FFC829EC \n"
472 " LDR R0, [SP, #0x1C] \n"
473 " LDR R1, [R0, #0x7C] \n"
474 " LDR R3, [R0, #0x88] \n"
475 " LDR R2, [R0, #0x8C] \n"
476 " ADD R0, R0, #4 \n"
477 " BLX R3 \n"
478 " LDR R0, [SP, #0x1C] \n"
479 " BL sub_FFC854F4 \n"
480 " LDR R0, [SP, #0x1C] \n"
481 " LDR R1, [R0, #0x7C] \n"
482 " LDR R3, [R0, #0x90] \n"
483 " LDR R2, [R0, #0x94] \n"
484 " ADD R0, R0, #4 \n"
485 " BLX R3 \n"
486 " B loc_FFC843E0 \n"
487
488 "loc_FFC840A4:\n"
489 " CMP R1, #0x13 \n"
490 " CMPNE R1, #0x14 \n"
491 " CMPNE R1, #0x15 \n"
492 " BNE loc_FFC84158 \n"
493 " ADD R3, SP, #0xC \n"
494 " MOV R2, SP \n"
495 " ADD R1, SP, #0x10 \n"
496 " BL sub_FFC82C34 \n"
497 " CMP R0, #1 \n"
498 " MOV R4, R0 \n"
499 " CMPNE R4, #5 \n"
500 " BNE loc_FFC840F4 \n"
501 " LDR R0, [SP, #0x1C] \n"
502 " MOV R2, R4 \n"
503 " LDR R1, [R0, #0x7C]! \n"
504 " LDR R12, [R0, #0xC]! \n"
505 " LDR R3, [R0, #4] \n"
506 " MOV R0, SP \n"
507 " BLX R12 \n"
508 " B loc_FFC8412C \n"
509
510 "loc_FFC840F4:\n"
511 " LDR R0, [SP, #0x1C] \n"
512 " CMP R4, #2 \n"
513 " LDR R3, [R0, #0x8C] \n"
514 " CMPNE R4, #6 \n"
515 " BNE loc_FFC84140 \n"
516 " LDR R12, [R0, #0x88] \n"
517 " MOV R0, SP \n"
518 " MOV R2, R4 \n"
519 " MOV R1, #1 \n"
520 " BLX R12 \n"
521 " LDR R0, [SP, #0x1C] \n"
522 " MOV R2, SP \n"
523 " ADD R1, SP, #0x10 \n"
524 " BL sub_FFC83BAC \n"
525
526 "loc_FFC8412C:\n"
527 " LDR R0, [SP, #0x1C] \n"
528 " LDR R2, [SP, #0xC] \n"
529 " MOV R1, R4 \n"
530 " BL sub_FFC83E00 \n"
531 " B loc_FFC843E0 \n"
532
533 "loc_FFC84140:\n"
534 " LDR R1, [R0, #0x7C] \n"
535 " LDR R12, [R0, #0x88] \n"
536 " ADD R0, R0, #4 \n"
537 " MOV R2, R4 \n"
538 " BLX R12 \n"
539 " B loc_FFC843E0 \n"
540
541 "loc_FFC84158:\n"
542 " CMP R1, #0x21 \n"
543 " CMPNE R1, #0x22 \n"
544 " BNE loc_FFC841A4 \n"
545 " LDR R1, [R0, #0x7C] \n"
546 " ADD R1, R1, R1, LSL#1 \n"
547 " ADD R1, R0, R1, LSL#2 \n"
548 " SUB R1, R1, #8 \n"
549 " LDMIA R1, {R2-R4} \n"
550 " STMIA R6, {R2-R4} \n"
551 " BL sub_FFC81F78 \n"
552 " LDR R0, [SP, #0x1C] \n"
553 " LDR R1, [R0, #0x7C] \n"
554 " LDR R3, [R0, #0x88] \n"
555 " LDR R2, [R0, #0x8C] \n"
556 " ADD R0, R0, #4 \n"
557 " BLX R3 \n"
558 " LDR R0, [SP, #0x1C] \n"
559 " BL sub_FFC82268 \n"
560 " B loc_FFC843E0 \n"
561
562 "loc_FFC841A4:\n"
563 " ADD R1, R0, #4 \n"
564 " LDMIA R1, {R2,R3,R12} \n"
565 " STMIA R6, {R2,R3,R12} \n"
566 " LDR R1, [R0] \n"
567 " CMP R1, #0x24 \n"
568 " ADDLS PC, PC, R1, LSL#2 \n"
569 " B loc_FFC843C0 \n"
570 " B loc_FFC84254 \n"
571 " B loc_FFC84254 \n"
572 " B loc_FFC842A8 \n"
573 " B loc_FFC842B0 \n"
574 " B loc_FFC842B0 \n"
575 " B loc_FFC842B0 \n"
576 " B loc_FFC84254 \n"
577 " B loc_FFC842A8 \n"
578 " B loc_FFC842B0 \n"
579 " B loc_FFC842B0 \n"
580 " B loc_FFC842C8 \n"
581 " B loc_FFC842C8 \n"
582 " B loc_FFC843B4 \n"
583 " B loc_FFC843BC \n"
584 " B loc_FFC843BC \n"
585 " B loc_FFC843BC \n"
586 " B loc_FFC843BC \n"
587 " B loc_FFC843C0 \n"
588 " B loc_FFC843C0 \n"
589 " B loc_FFC843C0 \n"
590 " B loc_FFC843C0 \n"
591 " B loc_FFC843C0 \n"
592 " B loc_FFC842B8 \n"
593 " B loc_FFC842C0 \n"
594 " B loc_FFC842C0 \n"
595 " B loc_FFC842D4 \n"
596 " B loc_FFC842D4 \n"
597 " B loc_FFC842DC \n"
598 " B loc_FFC8430C \n"
599 " B loc_FFC8433C \n"
600 " B loc_FFC8436C \n"
601 " B loc_FFC8439C \n"
602 " B loc_FFC8439C \n"
603 " B loc_FFC843C0 \n"
604 " B loc_FFC843C0 \n"
605 " B loc_FFC843A4 \n"
606 " B loc_FFC843AC \n"
607
608 "loc_FFC84254:\n"
609 " BL sub_FFC80E58 \n"
610 " B loc_FFC843C0 \n"
611
612
613
614 "loc_FFC842A8:\n"
615 " BL sub_FFC810E0 \n"
616 " B loc_FFC843C0 \n"
617
618 "loc_FFC842B0:\n"
619 " BL sub_FFC812E4 \n"
620 " B loc_FFC843C0 \n"
621
622 "loc_FFC842B8:\n"
623 " BL sub_FFC8154C \n"
624 " B loc_FFC843C0 \n"
625
626 "loc_FFC842C0:\n"
627 " BL sub_FFC81740 \n"
628 " B loc_FFC843C0 \n"
629
630 "loc_FFC842C8:\n"
631 " BL sub_FFC819A8_my \n"
632 " MOV R4, #0 \n"
633 " B loc_FFC843C0 \n"
634
635 "loc_FFC842D4:\n"
636 " BL sub_FFC81AE4 \n"
637 " B loc_FFC843C0 \n"
638
639 "loc_FFC842DC:\n"
640 " LDRH R1, [R0, #4] \n"
641 " STRH R1, [SP, #0x10] \n"
642 " LDRH R1, [R5, #2] \n"
643 " STRH R1, [SP, #0x12] \n"
644 " LDRH R1, [R5, #4] \n"
645 " STRH R1, [SP, #0x14] \n"
646 " LDRH R1, [R5, #6] \n"
647 " STRH R1, [SP, #0x16] \n"
648 " LDRH R1, [R0, #0xC] \n"
649 " STRH R1, [SP, #0x18] \n"
650 " BL sub_FFC85190 \n"
651 " B loc_FFC843C0 \n"
652
653 "loc_FFC8430C:\n"
654 " LDRH R1, [R0, #4] \n"
655 " STRH R1, [SP, #0x10] \n"
656 " LDRH R1, [R5, #2] \n"
657 " STRH R1, [SP, #0x12] \n"
658 " LDRH R1, [R5, #4] \n"
659 " STRH R1, [SP, #0x14] \n"
660 " LDRH R1, [R5, #6] \n"
661 " STRH R1, [SP, #0x16] \n"
662 " LDRH R1, [R5, #8] \n"
663 " STRH R1, [SP, #0x18] \n"
664 " BL sub_FFC85310 \n"
665 " B loc_FFC843C0 \n"
666
667 "loc_FFC8433C:\n"
668 " LDRH R1, [R5] \n"
669 " STRH R1, [SP, #0x10] \n"
670 " LDRH R1, [R0, #6] \n"
671 " STRH R1, [SP, #0x12] \n"
672 " LDRH R1, [R5, #4] \n"
673 " STRH R1, [SP, #0x14] \n"
674 " LDRH R1, [R5, #6] \n"
675 " STRH R1, [SP, #0x16] \n"
676 " LDRH R1, [R5, #8] \n"
677 " STRH R1, [SP, #0x18] \n"
678 " BL sub_FFC853BC \n"
679 " B loc_FFC843C0 \n"
680
681 "loc_FFC8436C:\n"
682 " LDRH R1, [R5] \n"
683 " STRH R1, [SP, #0x10] \n"
684 " LDRH R1, [R5, #2] \n"
685 " STRH R1, [SP, #0x12] \n"
686 " LDRH R1, [R5, #4] \n"
687 " STRH R1, [SP, #0x14] \n"
688 " LDRH R1, [R5, #6] \n"
689 " STRH R1, [SP, #0x16] \n"
690 " LDRH R1, [R0, #0xC] \n"
691 " STRH R1, [SP, #0x18] \n"
692 " BL sub_FFC8545C \n"
693 " B loc_FFC843C0 \n"
694
695 "loc_FFC8439C:\n"
696 " BL sub_FFC81D58 \n"
697 " B loc_FFC843C0 \n"
698
699 "loc_FFC843A4:\n"
700 " BL sub_FFC8236C \n"
701 " B loc_FFC843C0 \n"
702
703 "loc_FFC843AC:\n"
704 " BL sub_FFC825A4 \n"
705 " B loc_FFC843C0 \n"
706
707 "loc_FFC843B4:\n"
708 " BL sub_FFC8271C \n"
709 " B loc_FFC843C0 \n"
710
711 "loc_FFC843BC:\n"
712 " BL sub_FFC828B4 \n"
713
714 "loc_FFC843C0:\n"
715 " LDR R0, [SP, #0x1C] \n"
716 " LDR R1, [R0, #0x7C] \n"
717 " LDR R3, [R0, #0x88] \n"
718 " LDR R2, [R0, #0x8C] \n"
719 " ADD R0, R0, #4 \n"
720 " BLX R3 \n"
721 " CMP R4, #1 \n"
722 " BNE loc_FFC84428 \n"
723
724 "loc_FFC843E0:\n"
725 " LDR R0, [SP, #0x1C] \n"
726 " MOV R2, #0xC \n"
727 " LDR R1, [R0, #0x7C] \n"
728 " ADD R1, R1, R1, LSL#1 \n"
729 " ADD R0, R0, R1, LSL#2 \n"
730 " SUB R4, R0, #8 \n"
731 " LDR R0, =0x1DBF8 \n"
732 " ADD R1, SP, #0x10 \n"
733 " BL sub_FFE72174 \n"
734 " LDR R0, =0x1DC04 \n"
735 " MOV R2, #0xC \n"
736 " ADD R1, SP, #0x10 \n"
737 " BL sub_FFE72174 \n"
738 " LDR R0, =0x1DC10 \n"
739 " MOV R2, #0xC \n"
740 " MOV R1, R4 \n"
741 " BL sub_FFE72174 \n"
742 " B loc_FFC844A0 \n"
743
744 "loc_FFC84428:\n"
745 " LDR R0, [SP, #0x1C] \n"
746 " LDR R0, [R0] \n"
747 " CMP R0, #0xB \n"
748 " BNE loc_FFC84470 \n"
749 " MOV R3, #0 \n"
750 " STR R3, [SP] \n"
751 " MOV R3, #1 \n"
752 " MOV R2, #1 \n"
753 " MOV R1, #1 \n"
754 " MOV R0, #0 \n"
755 " BL sub_FFC80C60 \n"
756 " MOV R3, #0 \n"
757 " STR R3, [SP] \n"
758 " MOV R3, #1 \n"
759 " MOV R2, #1 \n"
760 " MOV R1, #1 \n"
761 " MOV R0, #0 \n"
762 " B loc_FFC8449C \n"
763
764 "loc_FFC84470:\n"
765 " MOV R3, #1 \n"
766 " MOV R2, #1 \n"
767 " MOV R1, #1 \n"
768 " MOV R0, #1 \n"
769 " STR R3, [SP] \n"
770 " BL sub_FFC80C60 \n"
771 " MOV R3, #1 \n"
772 " MOV R2, #1 \n"
773 " MOV R1, #1 \n"
774 " MOV R0, #1 \n"
775 " STR R3, [SP] \n"
776
777 "loc_FFC8449C:\n"
778 " BL sub_FFC80DA0 \n"
779
780 "loc_FFC844A0:\n"
781 " LDR R0, [SP, #0x1C] \n"
782 " BL sub_FFC8511C \n"
783 " B loc_FFC83ED0 \n"
784 );
785 }
786
787
788
789 void __attribute__((naked,noinline)) sub_FFC819A8_my() {
790 asm volatile (
791 " STMFD SP!, {R4-R8,LR} \n"
792 " LDR R7, =0x6258 \n"
793 " MOV R4, R0 \n"
794 " LDR R0, [R7, #0x1C] \n"
795 " MOV R1, #0x3E \n"
796 " BL sub_FFC166E0 /*_ClearEventFlag*/ \n"
797 " LDRSH R0, [R4, #4] \n"
798 " MOV R2, #0 \n"
799 " MOV R1, #0 \n"
800 " BL sub_FFC809F0 \n"
801 " MOV R6, R0 \n"
802 " LDRSH R0, [R4, #6] \n"
803 " BL sub_FFC80B00 \n"
804 " LDRSH R0, [R4, #8] \n"
805 " BL sub_FFC80B58 \n"
806 " LDRSH R0, [R4, #0xA] \n"
807 " BL sub_FFC80BB0 \n"
808 " LDRSH R0, [R4, #0xC] \n"
809 " BL sub_FFC80C08 \n"
810 " MOV R5, R0 \n"
811 " LDR R0, [R4] \n"
812 " LDR R8, =0x1DC10 \n"
813 " CMP R0, #0xB \n"
814 " MOVEQ R6, #0 \n"
815 " MOVEQ R5, #0 \n"
816 " BEQ loc_FFC81A38 \n"
817 " CMP R6, #1 \n"
818 " BNE loc_FFC81A38 \n"
819 " LDRSH R0, [R4, #4] \n"
820 " LDR R1, =0xFFC8095C \n"
821 " MOV R2, #2 \n"
822 " BL sub_FFD000AC \n"
823 " STRH R0, [R4, #4] \n"
824 " MOV R0, #0 \n"
825 " STR R0, [R7, #0x28] \n"
826 " B loc_FFC81A40 \n"
827
828 "loc_FFC81A38:\n"
829 " LDRH R0, [R8] \n"
830 " STRH R0, [R4, #4] \n"
831
832 "loc_FFC81A40:\n"
833 " CMP R5, #1 \n"
834 " LDRNEH R0, [R8, #8] \n"
835 " BNE loc_FFC81A5C \n"
836 " LDRSH R0, [R4, #0xC] \n"
837 " LDR R1, =0xFFC809E0 \n"
838 " MOV R2, #0x20 \n"
839 " BL sub_FFC8514C \n"
840
841 "loc_FFC81A5C:\n"
842 " STRH R0, [R4, #0xC] \n"
843 " LDRSH R0, [R4, #6] \n"
844 " BL sub_FFC6E0EC_my \n"
845 " LDR PC, =0xFFC81A68 \n"
846 );
847 }
848
849
850
851 void __attribute__((naked,noinline)) sub_FFC6E0EC_my() {
852 asm volatile (
853 " STMFD SP!, {R4-R6,LR} \n"
854 " LDR R5, =0x5F0C \n"
855 " MOV R4, R0 \n"
856 " LDR R0, [R5, #4] \n"
857 " CMP R0, #1 \n"
858 " MOVNE R1, #0x140 \n"
859 " LDRNE R0, =0xFFC6DEF0 /*'Shutter.c'*/ \n"
860 " BLNE _DebugAssert \n"
861 " CMN R4, #0xC00 \n"
862 " LDREQSH R4, [R5, #2] \n"
863 " CMN R4, #0xC00 \n"
864 " LDREQ R1, =0x146 \n"
865 " LDREQ R0, =0xFFC6DEF0 /*'Shutter.c'*/ \n"
866 " STRH R4, [R5, #2] \n"
867 " BLEQ _DebugAssert \n"
868 " MOV R0, R4 \n"
869 " BL apex2us \n"
870 " MOV R4, R0 \n"
871
872 " MOV R0, R4 \n"
873 " BL sub_FFCA30AC \n"
874 " TST R0, #1 \n"
875 " LDRNE R1, =0x14B \n"
876 " LDMNEFD SP!, {R4-R6,LR} \n"
877 " LDRNE R0, =0xFFC6DEF0 /*'Shutter.c'*/ \n"
878 " BNE _DebugAssert \n"
879 " LDMFD SP!, {R4-R6,PC} \n"
880 );
881 }