This source file includes following definitions.
- capt_seq_task
- sub_FF94DDF4_my
- sub_FF950D44_my
- exp_drv_task
- sub_FF8F4A54_my
- sub_FF8AB5FC_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!, {R4,LR} \n"
17 " SUB SP, SP, #4 \n"
18 " MOV R4, SP \n"
19 " B loc_FF94E180 \n"
20
21 "loc_FF94E038:\n"
22 " LDR R2, [SP] \n"
23 " LDR R3, [R2] \n"
24 " MOV R0, R2 \n"
25 " CMP R3, #0x14 \n"
26 " LDRLS PC, [PC, R3, LSL#2] \n"
27 " B loc_FF94E154 \n"
28 " .long loc_FF94E0A4 \n"
29 " .long loc_FF94E0B0 \n"
30 " .long loc_FF94E0B8 \n"
31 " .long loc_FF94E0C8 \n"
32 " .long loc_FF94E0C0 \n"
33 " .long loc_FF94E0D0 \n"
34 " .long loc_FF94E0D8 \n"
35 " .long loc_FF94E0E4 \n"
36 " .long loc_FF94E0EC \n"
37 " .long loc_FF94E0F8 \n"
38 " .long loc_FF94E100 \n"
39 " .long loc_FF94E108 \n"
40 " .long loc_FF94E110 \n"
41 " .long loc_FF94E118 \n"
42 " .long loc_FF94E120 \n"
43 " .long loc_FF94E12C \n"
44 " .long loc_FF94E134 \n"
45 " .long loc_FF94E13C \n"
46 " .long loc_FF94E144 \n"
47 " .long loc_FF94E14C \n"
48 " .long loc_FF94E168 \n"
49
50 "loc_FF94E0A4:\n"
51 " BL sub_FF94F808 \n"
52 " BL shooting_expo_param_override\n"
53 " BL sub_FF94BF50 \n"
54 " B loc_FF94E164 \n"
55
56 "loc_FF94E0B0:\n"
57 " BL sub_FF94DDF4_my \n"
58 " B loc_FF94E164 \n"
59
60 "loc_FF94E0B8:\n"
61 " BL sub_FF94FB9C \n"
62 " B loc_FF94E164 \n"
63
64 "loc_FF94E0C0:\n"
65 " BL sub_FF94EABC \n"
66 " B loc_FF94E164 \n"
67
68 "loc_FF94E0C8:\n"
69 " BL sub_FF94EB18 \n"
70 " B loc_FF94E164 \n"
71
72 "loc_FF94E0D0:\n"
73 " BL sub_FF94ED0C \n"
74 " B loc_FF94E164 \n"
75
76 "loc_FF94E0D8:\n"
77 " BL sub_FF94F8FC \n"
78 " BL sub_FF94BF50 \n"
79 " B loc_FF94E164 \n"
80
81 "loc_FF94E0E4:\n"
82 " BL sub_FF94DEA8 \n"
83 " B loc_FF94E164 \n"
84
85 "loc_FF94E0EC:\n"
86 " BL sub_FF94F964 \n"
87 " BL sub_FF94BF50 \n"
88 " B loc_FF94E164 \n"
89
90 "loc_FF94E0F8:\n"
91 " BL sub_FF94EB18 \n"
92 " B loc_FF94E164 \n"
93
94 "loc_FF94E100:\n"
95 " BL sub_FF95022C \n"
96 " B loc_FF94E164 \n"
97
98 "loc_FF94E108:\n"
99 " BL sub_FF9504B4 \n"
100 " B loc_FF94E164 \n"
101
102 "loc_FF94E110:\n"
103 " BL sub_FF950528 \n"
104 " B loc_FF94E164 \n"
105
106 "loc_FF94E118:\n"
107 " BL sub_FF9505E0 \n"
108 " B loc_FF94E164 \n"
109
110 "loc_FF94E120:\n"
111 " MOV R0, #0 \n"
112 " BL sub_FF950678 \n"
113 " B loc_FF94E164 \n"
114
115 "loc_FF94E12C:\n"
116 " BL sub_FF9507C8 \n"
117 " B loc_FF94E164 \n"
118
119 "loc_FF94E134:\n"
120 " BL sub_FF95083C \n"
121 " B loc_FF94E164 \n"
122
123 "loc_FF94E13C:\n"
124 " BL sub_FF9508F4 \n"
125 " B loc_FF94E164 \n"
126
127 "loc_FF94E144:\n"
128 " BL sub_FF9509C4 \n"
129 " B loc_FF94E164 \n"
130
131 "loc_FF94E14C:\n"
132 " BL sub_FF9509F0 \n"
133 " B loc_FF94E164 \n"
134
135 "loc_FF94E154:\n"
136 " MOV R1, #0x2DC \n"
137 " LDR R0, =0xFF94DBA0 /*'ShootTask.c'*/ \n"
138 " ADD R1, R1, #2 \n"
139 " BL _DebugAssert \n"
140
141 "loc_FF94E164:\n"
142 " LDR R2, [SP] \n"
143
144 "loc_FF94E168:\n"
145 " LDR R3, =0x73EF4 \n"
146 " LDR R1, [R2, #4] \n"
147 " LDR R0, [R3] \n"
148 " BL sub_FF8206E8 /*_SetEventFlag*/ \n"
149 " LDR R0, [SP] \n"
150 " BL sub_FF94DC1C \n"
151
152 "loc_FF94E180:\n"
153 " LDR R3, =0x73EF8 \n"
154 " MOV R1, R4 \n"
155 " LDR R0, [R3] \n"
156 " MOV R2, #0 \n"
157 " BL sub_FF820EA4 /*_ReceiveMessageQueue*/ \n"
158 " TST R0, #1 \n"
159 " BEQ loc_FF94E038 \n"
160 " MOV R1, #0x24C \n"
161 " LDR R0, =0xFF94DBA0 /*'ShootTask.c'*/ \n"
162 " ADD R1, R1, #3 \n"
163 " BL _DebugAssert \n"
164 " BL _ExitTask \n"
165 " ADD SP, SP, #4 \n"
166 " LDMFD SP!, {R4,PC} \n"
167 );
168 }
169
170
171
172 void __attribute__((naked,noinline)) sub_FF94DDF4_my() {
173 asm volatile (
174 " STMFD SP!, {R4,R5,LR} \n"
175 " LDR R5, [R0, #0xC] \n"
176 " BL sub_FF956524 \n"
177 " CMP R0, #0 \n"
178 " BNE loc_FF94DE0C \n"
179 " BL sub_FF956530 \n"
180
181 "loc_FF94DE0C:\n"
182 " MOV R0, R5 \n"
183 " BL sub_FF94FBAC \n"
184 " TST R0, #1 \n"
185 " MOV R2, R5 \n"
186 " MOV R1, #1 \n"
187 " BEQ loc_FF94DE2C \n"
188 " LDMFD SP!, {R4,R5,LR} \n"
189 " B sub_FF94C3F4 \n"
190
191 "loc_FF94DE2C:\n"
192 " BL sub_FF989BEC \n"
193 " BL sub_FF94B82C \n"
194 " MOV R4, R0 \n"
195 " BL sub_FF82572C \n"
196 " ADD R3, R5, R5, LSL#1 \n"
197 " ADD R4, R4, R3, LSL#5 \n"
198 " STR R0, [R4, #4] \n"
199 " MOV R0, R5 \n"
200 " BL sub_FF951558 \n"
201 " BL sub_FF9500F0 \n"
202 " BL sub_FF950090 \n"
203 " MOV R0, R5 \n"
204 " BL sub_FF950D44_my \n"
205 " BL capt_seq_hook_raw_here\n"
206 " MOV R2, R5 \n"
207 " MOV R1, #1 \n"
208 " BL sub_FF94C3F4 \n"
209 " LDMFD SP!, {R4,R5,LR} \n"
210 " B sub_FF950F40 \n"
211 );
212 }
213
214
215
216 void __attribute__((naked,noinline)) sub_FF950D44_my() {
217 asm volatile (
218 " STMFD SP!, {R4,R5,LR} \n"
219 " LDR R3, =0x73F6C \n"
220 " LDR R5, =0x6DB0 \n"
221 " SUB SP, SP, #4 \n"
222 " MVN R1, #0 \n"
223 " STR R0, [R5] \n"
224 " LDR R0, [R3] \n"
225 " BL sub_FF820884 /*_ClearEventFlag*/ \n"
226 " BL sub_FF956780 \n"
227 " LDR R0, [R0, #0x7C] \n"
228 " BL sub_FF89F644 \n"
229 " BL sub_FF950CB8 \n"
230 " BL wait_until_remote_button_is_released\n"
231 " BL capt_seq_hook_set_nr\n"
232 " LDR R3, =0x6DB8 \n"
233 " LDR R0, [R3] \n"
234 " LDR PC, =0xFF950D7C \n"
235 );
236 }
237
238
239
240 void __attribute__((naked,noinline)) exp_drv_task() {
241 asm volatile (
242 " STMFD SP!, {R4-R8,LR} \n"
243 " SUB SP, SP, #0x14 \n"
244 " MOV R7, SP \n"
245 " B loc_FF8F5E44 \n"
246
247 "loc_FF8F5B60:\n"
248 " CMP R2, #0x19 \n"
249 " BNE loc_FF8F5B78 \n"
250 " LDR R0, [R12, #0x34] \n"
251 " MOV LR, PC \n"
252 " LDR PC, [R12, #0x30] \n"
253 " B loc_FF8F5BB0 \n"
254
255 "loc_FF8F5B78:\n"
256 " SUB R3, R2, #0x16 \n"
257 " CMP R3, #1 \n"
258 " BHI loc_FF8F5B90 \n"
259 " MOV R0, R12 \n"
260 " BL sub_FF8F5AF8 \n"
261 " B loc_FF8F5BA0 \n"
262
263 "loc_FF8F5B90:\n"
264 " CMP R2, #0x18 \n"
265 " BNE loc_FF8F5BBC \n"
266 " BL sub_FF8AB964 \n"
267 " BL sub_FF8AD7DC \n"
268
269 "loc_FF8F5BA0:\n"
270 " LDR R3, [SP] \n"
271 " LDR R0, [R3, #0x34] \n"
272 " MOV LR, PC \n"
273 " LDR PC, [R3, #0x30] \n"
274
275 "loc_FF8F5BB0:\n"
276 " LDR R0, [SP] \n"
277 " BL sub_FF8F3F6C \n"
278 " B loc_FF8F5E44 \n"
279
280 "loc_FF8F5BBC:\n"
281 " CMP R2, #0xC \n"
282 " MOV R8, #1 \n"
283 " BNE loc_FF8F5C2C \n"
284 " LDR R1, [R12, #0x24] \n"
285 " ADD R1, R1, R1, LSL#1 \n"
286 " ADD R1, R12, R1, LSL#1 \n"
287 " ADD R6, SP, #0xC \n"
288 " SUB R1, R1, #2 \n"
289 " MOV R2, #6 \n"
290 " MOV R0, R6 \n"
291 " BL _memcpy \n"
292 " LDR R0, [SP] \n"
293 " BL sub_FF8F5198 \n"
294 " LDR R3, [SP] \n"
295 " LDR R1, [R3, #0x24] \n"
296 " LDR R2, [R3, #0x34] \n"
297 " ADD R0, R3, #4 \n"
298 " MOV LR, PC \n"
299 " LDR PC, [R3, #0x30] \n"
300 " LDR R0, [SP] \n"
301 " BL sub_FF8F531C \n"
302 " LDR R3, [SP] \n"
303 " ADD R0, R3, #4 \n"
304 " LDR R1, [R3, #0x24] \n"
305 " LDR R2, [R3, #0x3C] \n"
306 " MOV LR, PC \n"
307 " LDR PC, [R3, #0x38] \n"
308 " B loc_FF8F5DF4 \n"
309
310 "loc_FF8F5C2C:\n"
311 " SUB R3, R2, #0xD \n"
312 " CMP R3, #1 \n"
313 " BHI loc_FF8F5CAC \n"
314 " ADD R6, SP, #0xC \n"
315 " ADD R5, SP, #4 \n"
316 " MOV R0, R12 \n"
317 " MOV R1, R6 \n"
318 " MOV R2, R5 \n"
319 " BL sub_FF8F5398 \n"
320 " MOV R4, R0 \n"
321 " CMP R4, #3 \n"
322 " CMPNE R4, #1 \n"
323 " BNE loc_FF8F5C8C \n"
324 " LDR R12, [SP] \n"
325 " MOV R0, R5 \n"
326 " LDR R1, [R12, #0x24] \n"
327 " MOV R2, R4 \n"
328 " LDR R3, [R12, #0x34] \n"
329 " MOV LR, PC \n"
330 " LDR PC, [R12, #0x30] \n"
331 " MOV R1, R4 \n"
332 " LDR R0, [SP] \n"
333 " BL sub_FF8F5AD8 \n"
334 " B loc_FF8F5DF4 \n"
335
336 "loc_FF8F5C8C:\n"
337 " LDR R12, [SP] \n"
338 " MOV R2, R4 \n"
339 " ADD R0, R12, #4 \n"
340 " LDR R1, [R12, #0x24] \n"
341 " LDR R3, [R12, #0x34] \n"
342 " MOV LR, PC \n"
343 " LDR PC, [R12, #0x30] \n"
344 " B loc_FF8F5DF4 \n"
345
346 "loc_FF8F5CAC:\n"
347 " CMP R2, #0x14 \n"
348 " BNE loc_FF8F5D00 \n"
349 " LDR R1, [R12, #0x24] \n"
350 " ADD R1, R1, R1, LSL#1 \n"
351 " ADD R1, R12, R1, LSL#1 \n"
352 " ADD R6, SP, #0xC \n"
353 " SUB R1, R1, #2 \n"
354 " MOV R2, #6 \n"
355 " MOV R0, R6 \n"
356 " BL _memcpy \n"
357 " LDR R0, [SP] \n"
358 " BL sub_FF8F4CF8 \n"
359 " LDR R3, [SP] \n"
360 " ADD R0, R3, #4 \n"
361 " LDR R1, [R3, #0x24] \n"
362 " LDR R2, [R3, #0x34] \n"
363 " MOV LR, PC \n"
364 " LDR PC, [R3, #0x30] \n"
365 " LDR R0, [SP] \n"
366 " BL sub_FF8F4EC8 \n"
367 " B loc_FF8F5DF4 \n"
368
369 "loc_FF8F5D00:\n"
370 " ADD R6, SP, #0xC \n"
371 " ADD R1, R12, #4 \n"
372 " MOV R0, R6 \n"
373 " MOV R2, #6 \n"
374 " BL _memcpy \n"
375 " LDR R12, [SP] \n"
376 " LDR R3, [R12] \n"
377 " MOV R0, R12 \n"
378 " CMP R3, #0x15 \n"
379 " LDRLS PC, [PC, R3, LSL#2] \n"
380 " B loc_FF8F5DE0 \n"
381 " .long loc_FF8F5D84 \n"
382 " .long loc_FF8F5D8C \n"
383 " .long loc_FF8F5D94 \n"
384 " .long loc_FF8F5D94 \n"
385 " .long loc_FF8F5D84 \n"
386 " .long loc_FF8F5D8C \n"
387 " .long loc_FF8F5D94 \n"
388 " .long loc_FF8F5D94 \n"
389 " .long loc_FF8F5DAC \n"
390 " .long loc_FF8F5DAC \n"
391 " .long loc_FF8F5DD0 \n"
392 " .long loc_FF8F5DD8 \n"
393 " .long loc_FF8F5DE0 \n"
394 " .long loc_FF8F5DE0 \n"
395 " .long loc_FF8F5DE0 \n"
396 " .long loc_FF8F5D9C \n"
397 " .long loc_FF8F5DA4 \n"
398 " .long loc_FF8F5DB8 \n"
399 " .long loc_FF8F5DC0 \n"
400 " .long loc_FF8F5DC0 \n"
401 " .long loc_FF8F5DE0 \n"
402 " .long loc_FF8F5DC8 \n"
403
404 "loc_FF8F5D84:\n"
405 " BL sub_FF8F4448 \n"
406 " B loc_FF8F5DDC \n"
407
408 "loc_FF8F5D8C:\n"
409 " BL sub_FF8F4584 \n"
410 " B loc_FF8F5DDC \n"
411
412 "loc_FF8F5D94:\n"
413 " BL sub_FF8F46B4 \n"
414 " B loc_FF8F5DDC \n"
415
416 "loc_FF8F5D9C:\n"
417 " BL sub_FF8F4888 \n"
418 " B loc_FF8F5DDC \n"
419
420 "loc_FF8F5DA4:\n"
421 " BL sub_FF8F4990 \n"
422 " B loc_FF8F5DDC \n"
423
424 "loc_FF8F5DAC:\n"
425 " BL sub_FF8F4A54_my \n"
426 " MOV R8, #0 \n"
427 " B loc_FF8F5DDC \n"
428
429 "loc_FF8F5DB8:\n"
430 " BL sub_FF8F4B18 \n"
431 " B loc_FF8F5DDC \n"
432
433 "loc_FF8F5DC0:\n"
434 " BL sub_FF8F4C00 \n"
435 " B loc_FF8F5DDC \n"
436
437 "loc_FF8F5DC8:\n"
438 " BL sub_FF8F4F58 \n"
439 " B loc_FF8F5DDC \n"
440
441 "loc_FF8F5DD0:\n"
442 " BL sub_FF8F502C \n"
443 " B loc_FF8F5DDC \n"
444
445 "loc_FF8F5DD8:\n"
446 " BL sub_FF8F5118 \n"
447
448 "loc_FF8F5DDC:\n"
449 " LDR R12, [SP] \n"
450
451 "loc_FF8F5DE0:\n"
452 " ADD R0, R12, #4 \n"
453 " LDR R1, [R12, #0x24] \n"
454 " LDR R2, [R12, #0x34] \n"
455 " MOV LR, PC \n"
456 " LDR PC, [R12, #0x30] \n"
457
458 "loc_FF8F5DF4:\n"
459 " CMP R8, #1 \n"
460 " BNE loc_FF8F5E1C \n"
461 " LDR R1, [SP] \n"
462 " LDR R3, [R1, #0x24] \n"
463 " ADD R3, R3, R3, LSL#1 \n"
464 " ADD R1, R1, R3, LSL#1 \n"
465 " MOV R0, R6 \n"
466 " SUB R1, R1, #2 \n"
467 " BL sub_FF8F4300 \n"
468 " B loc_FF8F5E3C \n"
469
470 "loc_FF8F5E1C:\n"
471 " MOV R0, #1 \n"
472 " MOV R1, R0 \n"
473 " MOV R2, R0 \n"
474 " BL sub_FF8F42A4 \n"
475 " MOV R0, #1 \n"
476 " MOV R1, R0 \n"
477 " MOV R2, R0 \n"
478 " BL sub_FF8F43C0 \n"
479
480 "loc_FF8F5E3C:\n"
481 " LDR R0, [SP] \n"
482 " BL sub_FF8F3F6C \n"
483
484 "loc_FF8F5E44:\n"
485 " LDR R3, =0x4FB18 \n"
486 " MOV R2, #0 \n"
487 " LDR R0, [R3] \n"
488 " MOV R1, R7 \n"
489 " BL sub_FF820EA4 /*_ReceiveMessageQueue*/ \n"
490 " LDR R12, [SP] \n"
491 " LDR R2, [R12] \n"
492 " CMP R2, #0x1A \n"
493 " BNE loc_FF8F5B60 \n"
494 " MOV R0, R12 \n"
495 " BL sub_FF8F3F6C \n"
496 " LDR R3, =0x4FB14 \n"
497 " MOV R1, #1 \n"
498 " LDR R0, [R3] \n"
499 " BL sub_FF8206E8 /*_SetEventFlag*/ \n"
500 " BL _ExitTask \n"
501 " ADD SP, SP, #0x14 \n"
502 " LDMFD SP!, {R4-R8,PC} \n"
503 );
504 }
505
506
507
508 void __attribute__((naked,noinline)) sub_FF8F4A54_my() {
509 asm volatile (
510 " STMFD SP!, {R4,R5,LR} \n"
511 " LDR R3, =0x4FB14 \n"
512 " MOV R4, R0 \n"
513 " MOV R1, #0xE \n"
514 " LDR R0, [R3] \n"
515 " BL sub_FF820884 /*_ClearEventFlag*/ \n"
516 " MOV R1, #0 \n"
517 " LDRSH R0, [R4, #4] \n"
518 " BL sub_FF8F400C \n"
519 " MOV R5, R0 \n"
520 " LDRSH R0, [R4, #6] \n"
521 " BL sub_FF8F413C \n"
522 " LDRSH R0, [R4, #8] \n"
523 " BL sub_FF8F41D8 \n"
524 " LDR R3, [R4] \n"
525 " CMP R3, #9 \n"
526 " MOVEQ R5, #0 \n"
527 " CMP R5, #1 \n"
528 " LDR R1, =0xFF8F3F9C \n"
529 " MOV R2, #2 \n"
530 " BNE loc_FF8F4AC0 \n"
531 " LDRSH R0, [R4, #4] \n"
532 " BL sub_FFA75964 \n"
533 " LDR R2, =0x4FB40 \n"
534 " MOV R3, #0 \n"
535 " STR R3, [R2] \n"
536 " B loc_FF8F4AC4 \n"
537
538 "loc_FF8F4AC0:\n"
539 " BL sub_FF8F4274 \n"
540
541 "loc_FF8F4AC4:\n"
542 " STRH R0, [R4, #4] \n"
543 " LDRSH R0, [R4, #6] \n"
544 " BL sub_FF8AB5FC_my \n"
545 " BL sub_FF8AD580 \n"
546 " LDRSH R0, [R4, #8] \n"
547 " MOV R1, #1 \n"
548 " BL sub_FF8AD39C \n"
549 " MOV R1, #0 \n"
550 " ADD R0, R4, #8 \n"
551 " BL sub_FF8AD460 \n"
552 " CMP R5, #1 \n"
553 " MOV R1, #2 \n"
554 " MOV R2, #0 \n"
555 " LDMNEFD SP!, {R4,R5,PC} \n"
556 " LDR R3, =0x4FB14 \n"
557 " LDR R0, [R3] \n"
558 " LDMFD SP!, {R4,R5,LR} \n"
559 " B sub_FF8206D8 /*_WaitForAllEventFlag*/ \n"
560 );
561 }
562
563
564
565 void __attribute__((naked,noinline)) sub_FF8AB5FC_my() {
566 asm volatile (
567 " STMFD SP!, {R4,LR} \n"
568 " LDR R3, =0x53B8 \n"
569 " LDR R2, [R3] \n"
570 " MOV R3, R0, LSL#16 \n"
571 " CMP R2, #1 \n"
572 " MOV R1, #0x110 \n"
573 " LDR R0, =0xFF8AAF98 /*'Shutter.c'*/ \n"
574 " MOV R4, R3, ASR#16 \n"
575 " BEQ loc_FF8AB624 \n"
576 " BL _DebugAssert \n"
577
578 "loc_FF8AB624:\n"
579 " MOV R1, #0x114 \n"
580 " CMN R4, #0xC00 \n"
581 " LDR R3, =0x35FD6 \n"
582 " LDR R0, =0xFF8AAF98 /*'Shutter.c'*/ \n"
583 " ADD R1, R1, #2 \n"
584 " LDREQSH R4, [R3] \n"
585 " LDRNE R3, =0x35FD6 \n"
586 " CMN R4, #0xC00 \n"
587 " STRH R4, [R3] \n"
588 " BNE loc_FF8AB650 \n"
589 " BL _DebugAssert \n"
590
591 "loc_FF8AB650:\n"
592 " MOV R0, R4 \n"
593 " BL apex2us \n"
594 " LDR PC, =0xFF8AB658 \n"
595 );
596 }