This source file includes following definitions.
- capt_seq_task
- sub_FF91F5BC_my
- sub_FF85DB34_my
- exp_drv_task
- sub_FF897634_my
- sub_FF888F0C_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-R9,LR} \n"
17 " LDR R6, =0x291C \n"
18 " LDR R4, =0x14520 \n"
19 " MOV R9, #1 \n"
20 " MOV R7, #0 \n"
21
22 "loc_FF85D768:\n"
23 " LDR R0, [R6, #4] \n"
24 " MOV R2, #0 \n"
25 " MOV R1, SP \n"
26 " BL sub_FF826978 /*_ReceiveMessageQueue*/ \n"
27 " TST R0, #1 \n"
28 " BEQ loc_FF85D794 \n"
29 " LDR R1, =0x588 \n"
30 " LDR R0, =0xFF85D2E0 /*'SsShootTask.c'*/ \n"
31 " BL _DebugAssert \n"
32 " BL _ExitTask \n"
33 " LDMFD SP!, {R3-R9,PC} \n"
34
35 "loc_FF85D794:\n"
36 " LDR R0, [SP] \n"
37 " LDR R1, [R0] \n"
38 " CMP R1, #0x1D \n"
39 " ADDLS PC, PC, R1, LSL#2 \n"
40 " B loc_FF85DA10 \n"
41 " B loc_FF85D820 \n"
42 " B loc_FF85D884 \n"
43 " B loc_FF85D8C0 \n"
44 " B loc_FF85D8D4 \n"
45 " B loc_FF85D8CC \n"
46 " B loc_FF85D8DC \n"
47 " B loc_FF85D8E4 \n"
48 " B loc_FF85D8EC \n"
49 " B loc_FF85D944 \n"
50 " B loc_FF85D96C \n"
51 " B loc_FF85D950 \n"
52 " B loc_FF85D95C \n"
53 " B loc_FF85D964 \n"
54 " B loc_FF85D974 \n"
55 " B loc_FF85D97C \n"
56 " B loc_FF85D984 \n"
57 " B loc_FF85D98C \n"
58 " B loc_FF85D994 \n"
59 " B loc_FF85D9A0 \n"
60 " B loc_FF85D9A8 \n"
61 " B loc_FF85D9B0 \n"
62 " B loc_FF85D9B8 \n"
63 " B loc_FF85D9C0 \n"
64 " B loc_FF85D9CC \n"
65 " B loc_FF85D9D4 \n"
66 " B loc_FF85D9DC \n"
67 " B loc_FF85D9E4 \n"
68 " B loc_FF85D9EC \n"
69 " B loc_FF85D9F8 \n"
70 " B loc_FF85DA1C \n"
71
72 "loc_FF85D820:\n"
73 " BL sub_FF85E074 \n"
74
75
76 " BL captseq_hack_override_active\n"
77 " STR R0,[SP,#-4]!\n"
78 " BL shooting_expo_param_override\n"
79
80 " BL sub_FF85B5A8 \n"
81
82 " LDR R0, [SP], #4\n"
83 " CMP R0, #1\n"
84 " MOVEQ R0, #0\n"
85 " STREQ R0, [R4, #0x24]\n"
86 " LDRNE R0, [R4, #0x24]\n"
87 " CMPNE R0, #0\n"
88
89
90
91 " BEQ loc_FF85DA1C \n"
92 " BL sub_FF85CFBC \n"
93 " MOV R5, R0 \n"
94 " LDR R0, [R4, #0x24] \n"
95 " CMP R0, #0 \n"
96 " BEQ loc_FF85D868 \n"
97 " MOV R0, #0xC \n"
98 " BL sub_FF862090 \n"
99 " TST R0, #1 \n"
100 " STRNE R9, [R6, #0x10] \n"
101 " LDRNE R0, [R5, #8] \n"
102 " ORRNE R0, R0, #0x40000000 \n"
103 " STRNE R0, [R5, #8] \n"
104 " BNE loc_FF85DA1C \n"
105
106 "loc_FF85D868:\n"
107 " MOV R0, R5 \n"
108 " BL sub_FF85D260 \n"
109 " MOV R0, R5 \n"
110 " BL sub_FF91F5BC_my \n"
111 " TST R0, #1 \n"
112 " STRNE R9, [R6, #0x10] \n"
113 " B loc_FF85DA1C \n"
114
115 "loc_FF85D884:\n"
116 " LDR R0, [R4, #0x24] \n"
117 " CMP R0, #0 \n"
118 " BNE loc_FF85D8B0 \n"
119 " MOV R0, #0xC \n"
120 " BL sub_FF862090 \n"
121 " TST R0, #1 \n"
122 " LDRNE R0, [SP] \n"
123 " MOVNE R1, #1 \n"
124 " LDRNE R2, [R0, #0xC] \n"
125 " MOVNE R0, #1 \n"
126 " BNE loc_FF85D93C \n"
127
128 "loc_FF85D8B0:\n"
129 " LDR R0, [SP] \n"
130 " BL sub_FF85DB34_my \n"
131
132 "loc_FF85D8B8:\n"
133 " STR R7, [R4, #0x24] \n"
134 " B loc_FF85DA1C \n"
135
136 "loc_FF85D8C0:\n"
137 " MOV R0, #1 \n"
138 " BL sub_FF85E28C \n"
139 " B loc_FF85DA1C \n"
140
141 "loc_FF85D8CC:\n"
142 " BL sub_FF85DCBC \n"
143 " B loc_FF85D8B8 \n"
144
145 "loc_FF85D8D4:\n"
146 " BL sub_FF85E054 \n"
147 " B loc_FF85D8B8 \n"
148
149 "loc_FF85D8DC:\n"
150 " BL sub_FF85E05C \n"
151 " B loc_FF85DA1C \n"
152
153 "loc_FF85D8E4:\n"
154 " BL sub_FF85E1AC \n"
155 " B loc_FF85D948 \n"
156
157 "loc_FF85D8EC:\n"
158 " LDR R5, [R0, #0xC] \n"
159 " BL sub_FF85E064 \n"
160 " MOV R0, R5 \n"
161 " BL sub_FF91E5A0 \n"
162 " TST R0, #1 \n"
163 " MOV R8, R0 \n"
164 " BNE loc_FF85D92C \n"
165 " BL sub_FF86E414 \n"
166 " STR R0, [R5, #0x18] \n"
167 " MOV R0, R5 \n"
168 " BL sub_FF91F4D4 \n"
169 " MOV R0, R5 \n"
170 " BL sub_FF91F8C4 \n"
171 " MOV R8, R0 \n"
172 " LDR R0, [R5, #0x18] \n"
173 " BL sub_FF86E628 \n"
174
175 "loc_FF85D92C:\n"
176 " BL sub_FF85E054 \n"
177 " MOV R2, R5 \n"
178 " MOV R1, #9 \n"
179 " MOV R0, R8 \n"
180
181 "loc_FF85D93C:\n"
182 " BL sub_FF85BABC \n"
183 " B loc_FF85DA1C \n"
184
185 "loc_FF85D944:\n"
186 " BL sub_FF85E20C \n"
187
188 "loc_FF85D948:\n"
189 " BL sub_FF85B5A8 \n"
190 " B loc_FF85DA1C \n"
191
192 "loc_FF85D950:\n"
193 " LDR R0, [R4, #0x54] \n"
194 " BL sub_FF85E620 \n"
195 " B loc_FF85DA1C \n"
196
197 "loc_FF85D95C:\n"
198 " BL sub_FF85E8D4 \n"
199 " B loc_FF85DA1C \n"
200
201 "loc_FF85D964:\n"
202 " BL sub_FF85E968 \n"
203 " B loc_FF85DA1C \n"
204
205 "loc_FF85D96C:\n"
206 " BL sub_FF85E054 \n"
207 " B loc_FF85DA1C \n"
208
209 "loc_FF85D974:\n"
210 " BL sub_FF91E7B0 \n"
211 " B loc_FF85DA1C \n"
212
213 "loc_FF85D97C:\n"
214 " BL sub_FF91E998 \n"
215 " B loc_FF85DA1C \n"
216
217 "loc_FF85D984:\n"
218 " BL sub_FF91EA28 \n"
219 " B loc_FF85DA1C \n"
220
221 "loc_FF85D98C:\n"
222 " BL sub_FF91EADC \n"
223 " B loc_FF85DA1C \n"
224
225 "loc_FF85D994:\n"
226 " MOV R0, #0 \n"
227 " BL sub_FF91ED00 \n"
228 " B loc_FF85DA1C \n"
229
230 "loc_FF85D9A0:\n"
231 " BL sub_FF91EE38 \n"
232 " B loc_FF85DA1C \n"
233
234 "loc_FF85D9A8:\n"
235 " BL sub_FF91EEC8 \n"
236 " B loc_FF85DA1C \n"
237
238 "loc_FF85D9B0:\n"
239 " BL sub_FF91EF88 \n"
240 " B loc_FF85DA1C \n"
241
242 "loc_FF85D9B8:\n"
243 " BL sub_FF85E40C \n"
244 " B loc_FF85DA1C \n"
245
246 "loc_FF85D9C0:\n"
247 " BL sub_FF85E4AC \n"
248 " BL sub_FF824A04 \n"
249 " B loc_FF85DA1C \n"
250
251 "loc_FF85D9CC:\n"
252 " BL sub_FF91EB98 \n"
253 " B loc_FF85DA1C \n"
254
255 "loc_FF85D9D4:\n"
256 " BL sub_FF91EC04 \n"
257 " B loc_FF85DA1C \n"
258
259 "loc_FF85D9DC:\n"
260 " BL sub_FF8608A0 \n"
261 " B loc_FF85DA1C \n"
262
263 "loc_FF85D9E4:\n"
264 " BL sub_FF860908 \n"
265 " B loc_FF85DA1C \n"
266
267 "loc_FF85D9EC:\n"
268 " BL sub_FF860964 \n"
269 " BL sub_FF860924 \n"
270 " B loc_FF85DA1C \n"
271
272 "loc_FF85D9F8:\n"
273 " MOV R0, #1 \n"
274 " BL sub_FF9201A4 \n"
275 " LDRH R0, [R4, #0x98] \n"
276 " CMP R0, #4 \n"
277 " BLNE sub_FF860BD0 \n"
278 " B loc_FF85DA1C \n"
279
280 "loc_FF85DA10:\n"
281 " LDR R1, =0x6C9 \n"
282 " LDR R0, =0xFF85D2E0 /*'SsShootTask.c'*/ \n"
283 " BL _DebugAssert \n"
284
285 "loc_FF85DA1C:\n"
286 " LDR R0, [SP] \n"
287 " LDR R1, [R0, #4] \n"
288 " LDR R0, [R6] \n"
289 " BL sub_FF866178 /*_SetEventFlag*/ \n"
290 " LDR R5, [SP] \n"
291 " LDR R0, [R5, #8] \n"
292 " CMP R0, #0 \n"
293 " LDREQ R1, =0x12B \n"
294 " LDREQ R0, =0xFF85D2E0 /*'SsShootTask.c'*/ \n"
295 " BLEQ _DebugAssert \n"
296 " STR R7, [R5, #8] \n"
297 " B loc_FF85D768 \n"
298 );
299 }
300
301
302
303 void __attribute__((naked,noinline)) sub_FF91F5BC_my() {
304 asm volatile (
305 " STMFD SP!, {R0-R8,LR} \n"
306 " MOV R4, R0 \n"
307 " BL sub_FF920314 \n"
308 " MVN R1, #0 \n"
309 " BL sub_FF8661AC /*_ClearEventFlag*/ \n"
310 " LDR R5, =0x6048 \n"
311 " LDR R0, [R5, #0xC] \n"
312 " CMP R0, #0 \n"
313 " BNE loc_FF91F60C \n"
314 " MOV R1, #1 \n"
315 " MOV R0, #0 \n"
316 " BL sub_FF8271C0 /*_CreateMessageQueueStrictly*/ \n"
317 " STR R0, [R5, #0xC] \n"
318 " MOV R3, #0 \n"
319 " STR R3, [SP] \n"
320 " LDR R3, =0xFF91F078 \n"
321 " LDR R0, =0xFF91F83C /*'ShutterSoundTask'*/ \n"
322 " MOV R2, #0x400 \n"
323 " MOV R1, #0x17 \n"
324 " BL sub_FF82718C /*_CreateTaskStrictly*/ \n"
325
326 "loc_FF91F60C:\n"
327 " MOV R2, #4 \n"
328 " ADD R1, SP, #8 \n"
329 " MOV R0, #0x8A \n"
330 " BL _GetPropertyCase \n"
331 " TST R0, #1 \n"
332 " LDRNE R1, =0x3AE \n"
333 " LDRNE R0, =0xFF91F310 /*'SsCaptureSeq.c'*/ \n"
334 " BLNE _DebugAssert \n"
335 " LDR R8, =0x145E4 \n"
336 " LDR R7, =0x14520 \n"
337 " LDRSH R1, [R8, #0xE] \n"
338 " LDR R0, [R7, #0x8C] \n"
339 " BL sub_FF8E18CC \n"
340 " BL _GetCCDTemperature \n"
341 " LDR R3, =0x6050 \n"
342 " STRH R0, [R4, #0x9C] \n"
343 " SUB R2, R3, #4 \n"
344 " STRD R2, [SP] \n"
345 " MOV R1, R0 \n"
346 " LDRH R0, [R7, #0x5C] \n"
347 " LDRSH R2, [R8, #0xC] \n"
348 " SUB R3, R3, #8 \n"
349 " BL sub_FF92194C \n"
350 " BL wait_until_remote_button_is_released\n"
351 " BL capt_seq_hook_set_nr\n"
352 " LDR PC, =0xFF91F668 \n"
353 );
354 }
355
356
357
358 void __attribute__((naked,noinline)) sub_FF85DB34_my() {
359 asm volatile (
360 " STMFD SP!, {R4-R6,LR} \n"
361 " LDR R4, [R0, #0xC] \n"
362 " LDR R6, =0x14520 \n"
363 " LDR R0, [R4, #8] \n"
364 " MOV R5, #0 \n"
365 " ORR R0, R0, #1 \n"
366 " STR R0, [R4, #8] \n"
367 " LDR R0, [R6, #0x24] \n"
368 " CMP R0, #0 \n"
369 " MOVEQ R0, #2 \n"
370 " BLEQ sub_FF858E7C \n"
371 " BL sub_FF85E064 \n"
372 " LDR R0, [R6, #0x24] \n"
373 " CMP R0, #0 \n"
374 " BNE loc_FF85DBE4 \n"
375 " MOV R0, #0 \n"
376 " BL sub_FF9201A4 \n"
377 " MOV R0, R4 \n"
378 " BL sub_FF85E3B4 \n"
379 " MOV R0, R4 \n"
380 " BL sub_FF91E1F0 \n"
381 " CMP R0, #0 \n"
382 " BEQ loc_FF85DBB4 \n"
383 " BL sub_FF9201E4 \n"
384 " MOV R0, R4 \n"
385 " BL sub_FF91E2D4 \n"
386 " TST R0, #1 \n"
387 " MOVNE R2, R4 \n"
388 " LDMNEFD SP!, {R4-R6,LR} \n"
389 " MOVNE R1, #1 \n"
390 " BNE sub_FF85BABC \n"
391 " B loc_FF85DBC0 \n"
392
393 "loc_FF85DBB4:\n"
394 " MOV R0, R4 \n"
395 " BL sub_FF91E270 \n"
396 " BL sub_FF9201E4 \n"
397
398 "loc_FF85DBC0:\n"
399 " MOV R0, R4 \n"
400 " BL sub_FF85D260 \n"
401 " MOV R0, R4 \n"
402 " BL sub_FF91F4D4 \n"
403 " BL sub_FF920034 \n"
404 " MOV R0, R4 \n"
405 " BL sub_FF91F5BC_my \n"
406 " MOV R5, R0 \n"
407 " B loc_FF85DBF4 \n"
408
409 "loc_FF85DBE4:\n"
410 " LDR R0, =0x291C \n"
411 " LDR R0, [R0, #0x10] \n"
412 " CMP R0, #0 \n"
413 " MOVNE R5, #0x1D \n"
414
415 "loc_FF85DBF4:\n"
416 " BL capt_seq_hook_raw_here\n"
417 " BL sub_FF860908 \n"
418 " BL sub_FF860950 \n"
419 " BL sub_FF860990 \n"
420 " MOV R2, R4 \n"
421 " MOV R1, #1 \n"
422 " MOV R0, R5 \n"
423 " BL sub_FF85BABC \n"
424 " BL sub_FF91F868 \n"
425 " CMP R0, #0 \n"
426 " LDRNE R0, [R4, #8] \n"
427 " ORRNE R0, R0, #0x2000 \n"
428 " STRNE R0, [R4, #8] \n"
429 " LDMFD SP!, {R4-R6,PC} \n"
430 );
431 }
432
433
434
435 void __attribute__((naked,noinline)) exp_drv_task() {
436 asm volatile (
437 " STMFD SP!, {R4-R8,LR} \n"
438 " SUB SP, SP, #0x20 \n"
439 " LDR R8, =0xBB8 \n"
440 " LDR R7, =0x3B64 \n"
441 " LDR R5, =0x19174 \n"
442 " MOV R0, #0 \n"
443 " ADD R6, SP, #0x10 \n"
444 " STR R0, [SP, #0xC] \n"
445
446 "loc_FF899CE4:\n"
447 " LDR R0, [R7, #0x20] \n"
448 " MOV R2, #0 \n"
449 " ADD R1, SP, #0x1C \n"
450 " BL sub_FF826978 /*_ReceiveMessageQueue*/ \n"
451 " LDR R0, [SP, #0xC] \n"
452 " CMP R0, #1 \n"
453 " BNE loc_FF899D30 \n"
454 " LDR R0, [SP, #0x1C] \n"
455 " LDR R0, [R0] \n"
456 " CMP R0, #0x13 \n"
457 " CMPNE R0, #0x14 \n"
458 " CMPNE R0, #0x15 \n"
459 " CMPNE R0, #0x16 \n"
460 " BEQ loc_FF899E4C \n"
461 " CMP R0, #0x28 \n"
462 " BEQ loc_FF899E24 \n"
463 " ADD R1, SP, #0xC \n"
464 " MOV R0, #0 \n"
465 " BL sub_FF899C74 \n"
466
467 "loc_FF899D30:\n"
468 " LDR R0, [SP, #0x1C] \n"
469 " LDR R1, [R0] \n"
470 " CMP R1, #0x2D \n"
471 " BNE loc_FF899D60 \n"
472 " LDR R0, [SP, #0x1C] \n"
473 " BL sub_FF89AF78 \n"
474 " LDR R0, [R7, #0x1C] \n"
475 " MOV R1, #1 \n"
476 " BL sub_FF866178 /*_SetEventFlag*/ \n"
477 " BL _ExitTask \n"
478 " ADD SP, SP, #0x20 \n"
479 " LDMFD SP!, {R4-R8,PC} \n"
480
481 "loc_FF899D60:\n"
482 " CMP R1, #0x2C \n"
483 " BNE loc_FF899D7C \n"
484 " LDR R2, [R0, #0x88]! \n"
485 " LDR R1, [R0, #4] \n"
486 " MOV R0, R1 \n"
487 " BLX R2 \n"
488 " B loc_FF89A274 \n"
489
490 "loc_FF899D7C:\n"
491 " CMP R1, #0x26 \n"
492 " BNE loc_FF899DCC \n"
493 " LDR R0, [R7, #0x1C] \n"
494 " MOV R1, #0x80 \n"
495 " BL sub_FF8661AC /*_ClearEventFlag*/ \n"
496 " LDR R0, =0xFF8965E4 \n"
497 " MOV R1, #0x80 \n"
498 " BL sub_FF91307C \n"
499 " LDR R0, [R7, #0x1C] \n"
500 " MOV R2, R8 \n"
501 " MOV R1, #0x80 \n"
502 " BL sub_FF8660B8 /*_WaitForAllEventFlag*/ \n"
503 " TST R0, #1 \n"
504 " LDRNE R1, =0xDC6 \n"
505 " BNE loc_FF899E10 \n"
506
507 "loc_FF899DB8:\n"
508 " LDR R1, [SP, #0x1C] \n"
509 " LDR R0, [R1, #0x8C] \n"
510 " LDR R1, [R1, #0x88] \n"
511 " BLX R1 \n"
512 " B loc_FF89A274 \n"
513
514 "loc_FF899DCC:\n"
515 " CMP R1, #0x27 \n"
516 " BNE loc_FF899E1C \n"
517 " ADD R1, SP, #0xC \n"
518 " BL sub_FF899C74 \n"
519 " LDR R0, [R7, #0x1C] \n"
520 " MOV R1, #0x100 \n"
521 " BL sub_FF8661AC /*_ClearEventFlag*/ \n"
522 " MOV R1, #0x100 \n"
523 " LDR R0, =0xFF8965F4 \n"
524 " BL sub_FF913304 \n"
525 " LDR R0, [R7, #0x1C] \n"
526 " MOV R2, R8 \n"
527 " MOV R1, #0x100 \n"
528 " BL sub_FF8660B8 /*_WaitForAllEventFlag*/ \n"
529 " TST R0, #1 \n"
530 " BEQ loc_FF899DB8 \n"
531 " MOV R1, #0xDD0 \n"
532
533 "loc_FF899E10:\n"
534 " LDR R0, =0xFF896C24 /*'ExpDrv.c'*/ \n"
535 " BL _DebugAssert \n"
536 " B loc_FF899DB8 \n"
537
538 "loc_FF899E1C:\n"
539 " CMP R1, #0x28 \n"
540 " BNE loc_FF899E34 \n"
541
542 "loc_FF899E24:\n"
543 " LDR R0, [SP, #0x1C] \n"
544 " ADD R1, SP, #0xC \n"
545 " BL sub_FF899C74 \n"
546 " B loc_FF899DB8 \n"
547
548 "loc_FF899E34:\n"
549 " CMP R1, #0x2B \n"
550 " BNE loc_FF899E4C \n"
551 " BL sub_FF88919C \n"
552 " BL sub_FF889E28 \n"
553 " BL sub_FF889960 \n"
554 " B loc_FF899DB8 \n"
555
556 "loc_FF899E4C:\n"
557 " LDR R0, [SP, #0x1C] \n"
558 " MOV R4, #1 \n"
559 " LDR R1, [R0] \n"
560 " CMP R1, #0x11 \n"
561 " CMPNE R1, #0x12 \n"
562 " BNE loc_FF899EBC \n"
563 " LDR R1, [R0, #0x7C] \n"
564 " ADD R1, R1, R1, LSL#1 \n"
565 " ADD R1, R0, R1, LSL#2 \n"
566 " SUB R1, R1, #8 \n"
567 " LDMIA R1, {R2-R4} \n"
568 " STMIA R6, {R2-R4} \n"
569 " BL sub_FF8986BC \n"
570 " LDR R0, [SP, #0x1C] \n"
571 " LDR R1, [R0, #0x7C] \n"
572 " LDR R3, [R0, #0x88] \n"
573 " LDR R2, [R0, #0x8C] \n"
574 " ADD R0, R0, #4 \n"
575 " BLX R3 \n"
576 " LDR R0, [SP, #0x1C] \n"
577 " BL sub_FF89B330 \n"
578 " LDR R0, [SP, #0x1C] \n"
579 " LDR R1, [R0, #0x7C] \n"
580 " LDR R3, [R0, #0x90] \n"
581 " LDR R2, [R0, #0x94] \n"
582 " ADD R0, R0, #4 \n"
583 " BLX R3 \n"
584 " B loc_FF89A1B4 \n"
585
586 "loc_FF899EBC:\n"
587 " CMP R1, #0x13 \n"
588 " CMPNE R1, #0x14 \n"
589 " CMPNE R1, #0x15 \n"
590 " CMPNE R1, #0x16 \n"
591 " BNE loc_FF899F74 \n"
592 " ADD R3, SP, #0xC \n"
593 " MOV R2, SP \n"
594 " ADD R1, SP, #0x10 \n"
595 " BL sub_FF898900 \n"
596 " CMP R0, #1 \n"
597 " MOV R4, R0 \n"
598 " CMPNE R4, #5 \n"
599 " BNE loc_FF899F10 \n"
600 " LDR R0, [SP, #0x1C] \n"
601 " MOV R2, R4 \n"
602 " LDR R1, [R0, #0x7C]! \n"
603 " LDR R12, [R0, #0xC]! \n"
604 " LDR R3, [R0, #4] \n"
605 " MOV R0, SP \n"
606 " BLX R12 \n"
607 " B loc_FF899F48 \n"
608
609 "loc_FF899F10:\n"
610 " LDR R0, [SP, #0x1C] \n"
611 " CMP R4, #2 \n"
612 " LDR R3, [R0, #0x8C] \n"
613 " CMPNE R4, #6 \n"
614 " BNE loc_FF899F5C \n"
615 " LDR R12, [R0, #0x88] \n"
616 " MOV R0, SP \n"
617 " MOV R2, R4 \n"
618 " MOV R1, #1 \n"
619 " BLX R12 \n"
620 " LDR R0, [SP, #0x1C] \n"
621 " MOV R2, SP \n"
622 " ADD R1, SP, #0x10 \n"
623 " BL sub_FF89995C \n"
624
625 "loc_FF899F48:\n"
626 " LDR R0, [SP, #0x1C] \n"
627 " LDR R2, [SP, #0xC] \n"
628 " MOV R1, R4 \n"
629 " BL sub_FF899C14 \n"
630 " B loc_FF89A1B4 \n"
631
632 "loc_FF899F5C:\n"
633 " LDR R1, [R0, #0x7C] \n"
634 " LDR R12, [R0, #0x88] \n"
635 " ADD R0, R0, #4 \n"
636 " MOV R2, R4 \n"
637 " BLX R12 \n"
638 " B loc_FF89A1B4 \n"
639
640 "loc_FF899F74:\n"
641 " CMP R1, #0x22 \n"
642 " CMPNE R1, #0x23 \n"
643 " BNE loc_FF899FC0 \n"
644 " LDR R1, [R0, #0x7C] \n"
645 " ADD R1, R1, R1, LSL#1 \n"
646 " ADD R1, R0, R1, LSL#2 \n"
647 " SUB R1, R1, #8 \n"
648 " LDMIA R1, {R2-R4} \n"
649 " STMIA R6, {R2-R4} \n"
650 " BL sub_FF897C48 \n"
651 " LDR R0, [SP, #0x1C] \n"
652 " LDR R1, [R0, #0x7C] \n"
653 " LDR R3, [R0, #0x88] \n"
654 " LDR R2, [R0, #0x8C] \n"
655 " ADD R0, R0, #4 \n"
656 " BLX R3 \n"
657 " LDR R0, [SP, #0x1C] \n"
658 " BL sub_FF897F38 \n"
659 " B loc_FF89A1B4 \n"
660
661 "loc_FF899FC0:\n"
662 " ADD R1, R0, #4 \n"
663 " LDMIA R1, {R2,R3,R12} \n"
664 " STMIA R6, {R2,R3,R12} \n"
665 " LDR R1, [R0] \n"
666 " CMP R1, #0x25 \n"
667 " ADDLS PC, PC, R1, LSL#2 \n"
668 " B loc_FF89A194 \n"
669 " B loc_FF89A074 \n"
670 " B loc_FF89A074 \n"
671 " B loc_FF89A07C \n"
672 " B loc_FF89A084 \n"
673 " B loc_FF89A084 \n"
674 " B loc_FF89A084 \n"
675 " B loc_FF89A074 \n"
676 " B loc_FF89A07C \n"
677 " B loc_FF89A084 \n"
678 " B loc_FF89A084 \n"
679 " B loc_FF89A09C \n"
680 " B loc_FF89A09C \n"
681 " B loc_FF89A188 \n"
682 " B loc_FF89A190 \n"
683 " B loc_FF89A190 \n"
684 " B loc_FF89A190 \n"
685 " B loc_FF89A190 \n"
686 " B loc_FF89A194 \n"
687 " B loc_FF89A194 \n"
688 " B loc_FF89A194 \n"
689 " B loc_FF89A194 \n"
690 " B loc_FF89A194 \n"
691 " B loc_FF89A194 \n"
692 " B loc_FF89A08C \n"
693 " B loc_FF89A094 \n"
694 " B loc_FF89A094 \n"
695 " B loc_FF89A0A8 \n"
696 " B loc_FF89A0A8 \n"
697 " B loc_FF89A0B0 \n"
698 " B loc_FF89A0E0 \n"
699 " B loc_FF89A110 \n"
700 " B loc_FF89A140 \n"
701 " B loc_FF89A170 \n"
702 " B loc_FF89A170 \n"
703 " B loc_FF89A194 \n"
704 " B loc_FF89A194 \n"
705 " B loc_FF89A178 \n"
706 " B loc_FF89A180 \n"
707
708 "loc_FF89A074:\n"
709 " BL sub_FF896AD0 \n"
710 " B loc_FF89A194 \n"
711
712 "loc_FF89A07C:\n"
713 " BL sub_FF896D44 \n"
714 " B loc_FF89A194 \n"
715
716 "loc_FF89A084:\n"
717 " BL sub_FF896F48 \n"
718 " B loc_FF89A194 \n"
719
720 "loc_FF89A08C:\n"
721 " BL sub_FF8971B0 \n"
722 " B loc_FF89A194 \n"
723
724 "loc_FF89A094:\n"
725 " BL sub_FF8973A4 \n"
726 " B loc_FF89A194 \n"
727
728 "loc_FF89A09C:\n"
729 " BL sub_FF897634_my \n"
730 " MOV R4, #0 \n"
731 " B loc_FF89A194 \n"
732
733 "loc_FF89A0A8:\n"
734 " BL sub_FF897770 \n"
735 " B loc_FF89A194 \n"
736
737 "loc_FF89A0B0:\n"
738 " LDRH R1, [R0, #4] \n"
739 " STRH R1, [SP, #0x10] \n"
740 " LDRH R1, [R5, #2] \n"
741 " STRH R1, [SP, #0x12] \n"
742 " LDRH R1, [R5, #4] \n"
743 " STRH R1, [SP, #0x14] \n"
744 " LDRH R1, [R5, #6] \n"
745 " STRH R1, [SP, #0x16] \n"
746 " LDRH R1, [R0, #0xC] \n"
747 " STRH R1, [SP, #0x18] \n"
748 " BL sub_FF89AFEC \n"
749 " B loc_FF89A194 \n"
750
751 "loc_FF89A0E0:\n"
752 " LDRH R1, [R0, #4] \n"
753 " STRH R1, [SP, #0x10] \n"
754 " LDRH R1, [R5, #2] \n"
755 " STRH R1, [SP, #0x12] \n"
756 " LDRH R1, [R5, #4] \n"
757 " STRH R1, [SP, #0x14] \n"
758 " LDRH R1, [R5, #6] \n"
759 " STRH R1, [SP, #0x16] \n"
760 " LDRH R1, [R5, #8] \n"
761 " STRH R1, [SP, #0x18] \n"
762 " BL sub_FF89B14C \n"
763 " B loc_FF89A194 \n"
764
765 "loc_FF89A110:\n"
766 " LDRH R1, [R5] \n"
767 " STRH R1, [SP, #0x10] \n"
768 " LDRH R1, [R0, #6] \n"
769 " STRH R1, [SP, #0x12] \n"
770 " LDRH R1, [R5, #4] \n"
771 " STRH R1, [SP, #0x14] \n"
772 " LDRH R1, [R5, #6] \n"
773 " STRH R1, [SP, #0x16] \n"
774 " LDRH R1, [R5, #8] \n"
775 " STRH R1, [SP, #0x18] \n"
776 " BL sub_FF89B1F8 \n"
777 " B loc_FF89A194 \n"
778
779 "loc_FF89A140:\n"
780 " LDRH R1, [R5] \n"
781 " STRH R1, [SP, #0x10] \n"
782 " LDRH R1, [R5, #2] \n"
783 " STRH R1, [SP, #0x12] \n"
784 " LDRH R1, [R5, #4] \n"
785 " STRH R1, [SP, #0x14] \n"
786 " LDRH R1, [R5, #6] \n"
787 " STRH R1, [SP, #0x16] \n"
788 " LDRH R1, [R0, #0xC] \n"
789 " STRH R1, [SP, #0x18] \n"
790 " BL sub_FF89B298 \n"
791 " B loc_FF89A194 \n"
792
793 "loc_FF89A170:\n"
794 " BL sub_FF897A10 \n"
795 " B loc_FF89A194 \n"
796
797 "loc_FF89A178:\n"
798 " BL sub_FF89803C \n"
799 " B loc_FF89A194 \n"
800
801 "loc_FF89A180:\n"
802 " BL sub_FF898274 \n"
803 " B loc_FF89A194 \n"
804
805 "loc_FF89A188:\n"
806 " BL sub_FF8983EC \n"
807 " B loc_FF89A194 \n"
808
809 "loc_FF89A190:\n"
810 " BL sub_FF898584 \n"
811
812 "loc_FF89A194:\n"
813 " LDR R0, [SP, #0x1C] \n"
814 " LDR R1, [R0, #0x7C] \n"
815 " LDR R3, [R0, #0x88] \n"
816 " LDR R2, [R0, #0x8C] \n"
817 " ADD R0, R0, #4 \n"
818 " BLX R3 \n"
819 " CMP R4, #1 \n"
820 " BNE loc_FF89A1FC \n"
821
822 "loc_FF89A1B4:\n"
823 " LDR R0, [SP, #0x1C] \n"
824 " MOV R2, #0xC \n"
825 " LDR R1, [R0, #0x7C] \n"
826 " ADD R1, R1, R1, LSL#1 \n"
827 " ADD R0, R0, R1, LSL#2 \n"
828 " SUB R4, R0, #8 \n"
829 " LDR R0, =0x19174 \n"
830 " ADD R1, SP, #0x10 \n"
831 " BL sub_FFAC7CA0 \n"
832 " LDR R0, =0x19180 \n"
833 " MOV R2, #0xC \n"
834 " ADD R1, SP, #0x10 \n"
835 " BL sub_FFAC7CA0 \n"
836 " LDR R0, =0x1918C \n"
837 " MOV R2, #0xC \n"
838 " MOV R1, R4 \n"
839 " BL sub_FFAC7CA0 \n"
840 " B loc_FF89A274 \n"
841
842 "loc_FF89A1FC:\n"
843 " LDR R0, [SP, #0x1C] \n"
844 " LDR R0, [R0] \n"
845 " CMP R0, #0xB \n"
846 " BNE loc_FF89A244 \n"
847 " MOV R3, #0 \n"
848 " STR R3, [SP] \n"
849 " MOV R3, #1 \n"
850 " MOV R2, #1 \n"
851 " MOV R1, #1 \n"
852 " MOV R0, #0 \n"
853 " BL sub_FF8968D8 \n"
854 " MOV R3, #0 \n"
855 " STR R3, [SP] \n"
856 " MOV R3, #1 \n"
857 " MOV R2, #1 \n"
858 " MOV R1, #1 \n"
859 " MOV R0, #0 \n"
860 " B loc_FF89A270 \n"
861
862 "loc_FF89A244:\n"
863 " MOV R3, #1 \n"
864 " MOV R2, #1 \n"
865 " MOV R1, #1 \n"
866 " MOV R0, #1 \n"
867 " STR R3, [SP] \n"
868 " BL sub_FF8968D8 \n"
869 " MOV R3, #1 \n"
870 " MOV R2, #1 \n"
871 " MOV R1, #1 \n"
872 " MOV R0, #1 \n"
873 " STR R3, [SP] \n"
874
875 "loc_FF89A270:\n"
876 " BL sub_FF896A18 \n"
877
878 "loc_FF89A274:\n"
879 " LDR R0, [SP, #0x1C] \n"
880 " BL sub_FF89AF78 \n"
881 " B loc_FF899CE4 \n"
882 );
883 }
884
885
886
887 void __attribute__((naked,noinline)) sub_FF897634_my() {
888 asm volatile (
889 " STMFD SP!, {R4-R8,LR} \n"
890 " LDR R7, =0x3B64 \n"
891 " MOV R4, R0 \n"
892 " LDR R0, [R7, #0x1C] \n"
893 " MOV R1, #0x3E \n"
894 " BL sub_FF8661AC /*_ClearEventFlag*/ \n"
895 " LDRSH R0, [R4, #4] \n"
896 " MOV R2, #0 \n"
897 " MOV R1, #0 \n"
898 " BL sub_FF896668 \n"
899 " MOV R6, R0 \n"
900 " LDRSH R0, [R4, #6] \n"
901 " BL sub_FF896778 \n"
902 " LDRSH R0, [R4, #8] \n"
903 " BL sub_FF8967D0 \n"
904 " LDRSH R0, [R4, #0xA] \n"
905 " BL sub_FF896828 \n"
906 " LDRSH R0, [R4, #0xC] \n"
907 " BL sub_FF896880 \n"
908 " MOV R5, R0 \n"
909 " LDR R0, [R4] \n"
910 " LDR R8, =0x1918C \n"
911 " CMP R0, #0xB \n"
912 " MOVEQ R6, #0 \n"
913 " MOVEQ R5, #0 \n"
914 " BEQ loc_FF8976C4 \n"
915 " CMP R6, #1 \n"
916 " BNE loc_FF8976C4 \n"
917 " LDRSH R0, [R4, #4] \n"
918 " LDR R1, =0xFF8965D4 \n"
919 " MOV R2, #2 \n"
920 " BL sub_FF9131D0 \n"
921 " STRH R0, [R4, #4] \n"
922 " MOV R0, #0 \n"
923 " STR R0, [R7, #0x28] \n"
924 " B loc_FF8976CC \n"
925
926 "loc_FF8976C4:\n"
927 " LDRH R0, [R8] \n"
928 " STRH R0, [R4, #4] \n"
929
930 "loc_FF8976CC:\n"
931 " CMP R5, #1 \n"
932 " LDRNEH R0, [R8, #8] \n"
933 " BNE loc_FF8976E8 \n"
934 " LDRSH R0, [R4, #0xC] \n"
935 " LDR R1, =0xFF896658 \n"
936 " MOV R2, #0x20 \n"
937 " BL sub_FF89AFA8 \n"
938
939 "loc_FF8976E8:\n"
940 " STRH R0, [R4, #0xC] \n"
941 " LDRSH R0, [R4, #6] \n"
942 " BL sub_FF888F0C_my \n"
943 " LDR PC, =0xFF8976F4 \n"
944 );
945 }
946
947
948
949 void __attribute__((naked,noinline)) sub_FF888F0C_my() {
950 asm volatile (
951 " STMFD SP!, {R4-R6,LR} \n"
952 " LDR R5, =0x3860 \n"
953 " MOV R4, R0 \n"
954 " LDR R0, [R5, #4] \n"
955 " CMP R0, #1 \n"
956 " MOVNE R1, #0x140 \n"
957 " LDRNE R0, =0xFF888D10 /*'Shutter.c'*/ \n"
958 " BLNE _DebugAssert \n"
959 " CMN R4, #0xC00 \n"
960 " LDREQSH R4, [R5, #2] \n"
961 " CMN R4, #0xC00 \n"
962 " LDREQ R1, =0x146 \n"
963 " LDREQ R0, =0xFF888D10 /*'Shutter.c'*/ \n"
964 " STRH R4, [R5, #2] \n"
965 " BLEQ _DebugAssert \n"
966 " MOV R0, R4 \n"
967 " BL apex2us \n"
968 " MOV R4, R0 \n"
969
970 " MOV R0, R4 \n"
971 " BL sub_FF8B2850 \n"
972 " TST R0, #1 \n"
973 " LDRNE R1, =0x14B \n"
974 " LDMNEFD SP!, {R4-R6,LR} \n"
975 " LDRNE R0, =0xFF888D10 /*'Shutter.c'*/ \n"
976 " BNE _DebugAssert \n"
977 " LDMFD SP!, {R4-R6,PC} \n"
978 );
979 }