This source file includes following definitions.
- capt_seq_hook_set_nr_my
- capt_seq_task
- sub_FF98C47C_my
- sub_FFAE3934_my
- exp_drv_task
- sub_FF8C75EC_my
- sub_FF8B7814_my
1
2
3
4 #include "lolevel.h"
5 #include "platform.h"
6 #include "core.h"
7 #include "conf.h"
8
9
10
11 static long *nrflag = (long*)0x5CB4;
12
13 #define PAUSE_FOR_FILE_COUNTER 150
14
15 #include "../../../generic/capt_seq.c"
16
17
18 int capt_seq_hook_set_nr_my(int orig)
19 {
20
21 camera_info.state.shutter_open_time = _time((void*)0);
22 camera_info.state.shutter_open_tick_count = get_tick_count();
23
24
25 if (orig!=NR_ON && orig!=NR_OFF)
26 return orig;
27
28 switch (conf.raw_nr){
29 case NOISE_REDUCTION_OFF:
30 return NR_OFF;
31 case NOISE_REDUCTION_ON:
32 return NR_ON;
33 case NOISE_REDUCTION_AUTO_CANON:
34 default:
35 return orig;
36 };
37 }
38
39
40
41
42 void __attribute__((naked,noinline)) capt_seq_task() {
43 asm volatile (
44 " STMFD SP!, {R3-R7,LR} \n"
45 " LDR R5, =0x39504 \n"
46 " LDR R6, =0x2DB4 \n"
47
48 "loc_FF881EC0:\n"
49 " MOV R2, #0 \n"
50 " LDR R0, [R6, #4] \n"
51 " MOV R1, SP \n"
52 " BL sub_FF83A27C /*_ReceiveMessageQueue*/ \n"
53 " TST R0, #1 \n"
54 " BEQ loc_FF881EEC \n"
55 " LDR R1, =0x48B \n"
56 " LDR R0, =0xFF8818B0 /*'SsShootTask.c'*/ \n"
57 " BL _DebugAssert \n"
58 " BL _ExitTask \n"
59 " LDMFD SP!, {R3-R7,PC} \n"
60
61 "loc_FF881EEC:\n"
62 " LDR R0, [SP] \n"
63 " LDR R1, [R0] \n"
64 " CMP R1, #0x24 \n"
65 " ADDCC PC, PC, R1, LSL#2 \n"
66 " B loc_FF882150 \n"
67 " B loc_FF881F90 \n"
68 " B loc_FF881F98 \n"
69 " B loc_FF881FF0 \n"
70 " B loc_FF882004 \n"
71 " B loc_FF881FFC \n"
72 " B loc_FF88200C \n"
73 " B loc_FF882014 \n"
74 " B loc_FF882020 \n"
75 " B loc_FF88203C \n"
76 " B loc_FF882004 \n"
77 " B loc_FF882044 \n"
78 " B loc_FF882050 \n"
79 " B loc_FF882058 \n"
80 " B loc_FF882060 \n"
81 " B loc_FF882068 \n"
82 " B loc_FF882070 \n"
83 " B loc_FF882078 \n"
84 " B loc_FF882080 \n"
85 " B loc_FF882088 \n"
86 " B loc_FF882090 \n"
87 " B loc_FF882098 \n"
88 " B loc_FF8820A0 \n"
89 " B loc_FF8820A8 \n"
90 " B loc_FF8820B4 \n"
91 " B loc_FF8820BC \n"
92 " B loc_FF8820C8 \n"
93 " B loc_FF8820D0 \n"
94 " B loc_FF8820D8 \n"
95 " B loc_FF8820E0 \n"
96 " B loc_FF8820E8 \n"
97 " B loc_FF8820F0 \n"
98 " B loc_FF8820F8 \n"
99 " B loc_FF882104 \n"
100 " B loc_FF88210C \n"
101 " B loc_FF882118 \n"
102 " B loc_FF88215C \n"
103
104 "loc_FF881F90:\n"
105 " BL sub_FF882718 \n"
106 " BL shooting_expo_param_override\n"
107 " B loc_FF882018 \n"
108
109 "loc_FF881F98:\n"
110 " LDR R4, [R0, #0x10] \n"
111 " BL sub_FF883BA4 \n"
112 " MOV R1, R4 \n"
113 " BL sub_FF883BFC \n"
114 " LDR R0, =0x10F \n"
115 " MOV R2, #4 \n"
116 " ADD R1, R4, #0x24 \n"
117 " BL _SetPropertyCase \n"
118 " MOV R2, #4 \n"
119 " ADD R1, R4, #0x28 \n"
120 " MOV R0, #0x2C \n"
121 " BL _SetPropertyCase \n"
122 " MOV R0, R4 \n"
123 " BL sub_FF98C47C_my \n"
124 " BL capt_seq_hook_raw_here \n"
125 " MOV R7, R0 \n"
126 " MOV R2, R4 \n"
127 " MOV R1, #1 \n"
128 " BL sub_FF880050 \n"
129 " TST R7, #1 \n"
130 " MOVEQ R0, R4 \n"
131 " BLEQ sub_FF98BE48 \n"
132 " B loc_FF88215C \n"
133
134 "loc_FF881FF0:\n"
135 " MOV R0, #1 \n"
136 " BL sub_FF882A08 \n"
137 " B loc_FF88215C \n"
138
139 "loc_FF881FFC:\n"
140 " BL sub_FF8823B0 \n"
141 " B loc_FF88215C \n"
142
143 "loc_FF882004:\n"
144 " BL sub_FF8826F8 \n"
145 " B loc_FF88215C \n"
146
147 "loc_FF88200C:\n"
148 " BL sub_FF882700 \n"
149 " B loc_FF88215C \n"
150
151 "loc_FF882014:\n"
152 " BL sub_FF8828E0 \n"
153
154 "loc_FF882018:\n"
155 " BL sub_FF87FA30 \n"
156 " B loc_FF88215C \n"
157
158 "loc_FF882020:\n"
159 " LDR R4, [R0, #0x10] \n"
160 " MOV R0, R4 \n"
161 " BL sub_FF98C5CC \n"
162 " MOV R2, R4 \n"
163 " MOV R1, #9 \n"
164 " BL sub_FF880050 \n"
165 " B loc_FF88215C \n"
166
167 "loc_FF88203C:\n"
168 " BL sub_FF882970 \n"
169 " B loc_FF882018 \n"
170
171 "loc_FF882044:\n"
172 " LDR R0, [R5, #0x50] \n"
173 " BL sub_FF882FDC \n"
174 " B loc_FF88215C \n"
175
176 "loc_FF882050:\n"
177 " BL sub_FF883384 \n"
178 " B loc_FF88215C \n"
179
180 "loc_FF882058:\n"
181 " BL sub_FF8833E8 \n"
182 " B loc_FF88215C \n"
183
184 "loc_FF882060:\n"
185 " BL sub_FF98B078 \n"
186 " B loc_FF88215C \n"
187
188 "loc_FF882068:\n"
189 " BL sub_FF98B2DC \n"
190 " B loc_FF88215C \n"
191
192 "loc_FF882070:\n"
193 " BL sub_FF98B398 \n"
194 " B loc_FF88215C \n"
195
196 "loc_FF882078:\n"
197 " BL sub_FF98B480 \n"
198 " B loc_FF88215C \n"
199
200 "loc_FF882080:\n"
201 " BL sub_FF98B554 \n"
202 " B loc_FF88215C \n"
203
204 "loc_FF882088:\n"
205 " MOV R0, #0 \n"
206 " B loc_FF8820AC \n"
207
208 "loc_FF882090:\n"
209 " BL sub_FF98B97C \n"
210 " B loc_FF88215C \n"
211
212 "loc_FF882098:\n"
213 " BL sub_FF98BA10 \n"
214 " B loc_FF88215C \n"
215
216 "loc_FF8820A0:\n"
217 " BL sub_FF98BACC \n"
218 " B loc_FF88215C \n"
219
220 "loc_FF8820A8:\n"
221 " MOV R0, #1 \n"
222
223 "loc_FF8820AC:\n"
224 " BL sub_FF98B80C \n"
225 " B loc_FF88215C \n"
226
227 "loc_FF8820B4:\n"
228 " BL sub_FF882BDC \n"
229 " B loc_FF88215C \n"
230
231 "loc_FF8820BC:\n"
232 " BL sub_FF882C08 \n"
233 " BL sub_FF98D1A0 \n"
234 " B loc_FF88215C \n"
235
236 "loc_FF8820C8:\n"
237 " BL sub_FF98B6E0 \n"
238 " B loc_FF88215C \n"
239
240 "loc_FF8820D0:\n"
241 " BL sub_FF98B778 \n"
242 " B loc_FF88215C \n"
243
244 "loc_FF8820D8:\n"
245 " BL sub_FF98D26C \n"
246 " B loc_FF88215C \n"
247
248 "loc_FF8820E0:\n"
249 " BL sub_FF837BC8 \n"
250 " B loc_FF88215C \n"
251
252 "loc_FF8820E8:\n"
253 " BL sub_FF8858A0 \n"
254 " B loc_FF88215C \n"
255
256 "loc_FF8820F0:\n"
257 " BL sub_FF885914 \n"
258 " B loc_FF88215C \n"
259
260 "loc_FF8820F8:\n"
261 " LDR R0, [R0, #0xC] \n"
262 " BL sub_FF98BBF4 \n"
263 " B loc_FF88215C \n"
264
265 "loc_FF882104:\n"
266 " BL sub_FF98BC64 \n"
267 " B loc_FF88215C \n"
268
269 "loc_FF88210C:\n"
270 " BL sub_FF88597C \n"
271 " BL sub_FF885934 \n"
272 " B loc_FF88215C \n"
273
274 "loc_FF882118:\n"
275 " MOV R0, #1 \n"
276 " BL sub_FF98CCB4 \n"
277 " MOV R0, #1 \n"
278 " BL sub_FF98CDDC \n"
279 " LDRH R0, [R5, #0x98] \n"
280 " CMP R0, #4 \n"
281 " LDRNEH R0, [R5] \n"
282 " SUBNE R1, R0, #0x4200 \n"
283 " SUBNES R1, R1, #0x2B \n"
284 " BNE loc_FF88215C \n"
285 " BL sub_FF885914 \n"
286 " BL sub_FF885F3C \n"
287 " BL sub_FF885DA4 \n"
288 " B loc_FF88215C \n"
289
290 "loc_FF882150:\n"
291 " LDR R1, =0x5EC \n"
292 " LDR R0, =0xFF8818B0 /*'SsShootTask.c'*/ \n"
293 " BL _DebugAssert \n"
294
295 "loc_FF88215C:\n"
296 " LDR R0, [SP] \n"
297 " LDR R1, [R0, #4] \n"
298 " LDR R0, [R6] \n"
299 " BL sub_FF88C868 /*_SetEventFlag*/ \n"
300 " LDR R4, [SP] \n"
301 " LDR R0, [R4, #8] \n"
302 " CMP R0, #0 \n"
303 " LDREQ R1, =0x117 \n"
304 " LDREQ R0, =0xFF8818B0 /*'SsShootTask.c'*/ \n"
305 " BLEQ _DebugAssert \n"
306 " MOV R0, #0 \n"
307 " STR R0, [R4, #8] \n"
308 " B loc_FF881EC0 \n"
309 );
310 }
311
312
313
314 void __attribute__((naked,noinline)) sub_FF98C47C_my() {
315 asm volatile (
316 " STMFD SP!, {R3-R7,LR} \n"
317 " MOV R4, R0 \n"
318 " MOV R0, #0xC \n"
319 " BL sub_FF887700 \n"
320 " TST R0, #1 \n"
321 " MOVNE R0, #1 \n"
322 " BNE loc_FF98C5C8 \n"
323 " LDR R5, =0x39504 \n"
324 " LDRH R0, [R5, #0x96] \n"
325 " CMP R0, #3 \n"
326 " BEQ loc_FF98C538 \n"
327 " LDR R0, [R4, #8] \n"
328 " CMP R0, #1 \n"
329 " BLS loc_FF98C504 \n"
330 " LDRH R0, [R5, #0x94] \n"
331 " CMP R0, #0 \n"
332 " BNE loc_FF98C538 \n"
333 " LDRH R0, [R5, #0x90] \n"
334 " CMP R0, #2 \n"
335 " BNE loc_FF98C510 \n"
336 " BL sub_FF882CDC \n"
337 " LDRH R0, [R5, #0x96] \n"
338 " CMP R0, #3 \n"
339 " BEQ loc_FF98C538 \n"
340 " LDR R0, [R4, #8] \n"
341 " CMP R0, #1 \n"
342 " BLS loc_FF98C504 \n"
343 " LDRH R0, [R5, #0x94] \n"
344 " CMP R0, #0 \n"
345 " BNE loc_FF98C538 \n"
346 " LDRH R0, [R5, #0x90] \n"
347 " CMP R0, #2 \n"
348 " BEQ loc_FF98C534 \n"
349 " B loc_FF98C510 \n"
350
351 "loc_FF98C504:\n"
352 " LDRH R0, [R5, #0x94] \n"
353 " CMP R0, #0 \n"
354 " BNE loc_FF98C538 \n"
355
356 "loc_FF98C510:\n"
357 " LDRH R0, [R5, #0x90] \n"
358 " CMP R0, #1 \n"
359 " BNE loc_FF98C538 \n"
360 " LDR R0, [R4, #8] \n"
361 " CMP R0, #1 \n"
362 " BLS loc_FF98C538 \n"
363 " LDR R0, [R4, #0xC] \n"
364 " CMP R0, #1 \n"
365 " BNE loc_FF98C538 \n"
366
367 "loc_FF98C534:\n"
368 " BL sub_FF98D2A4 \n"
369
370 "loc_FF98C538:\n"
371 " BL sub_FF98D26C \n"
372 " BL sub_FF882708 \n"
373 " MOV R0, R4 \n"
374 " BL sub_FF98BD50 \n"
375 " TST R0, #1 \n"
376 " BNE loc_FF98C5C8 \n"
377 " MOV R0, R4 \n"
378 " BL sub_FF98C0F4 \n"
379 " BL sub_FF98CA8C \n"
380 " MOV R6, #1 \n"
381 " MOV R0, #2 \n"
382 " BL sub_FF888D94 \n"
383 " LDRH R0, [R5] \n"
384 " SUB R1, R0, #0x8200 \n"
385 " SUBS R1, R1, #0x2E \n"
386 " MOVNE R0, R4 \n"
387 " LDMNEFD SP!, {R3-R7,LR} \n"
388 " BNE sub_FFAE3934_my \n"
389 " MOV R2, #2 \n"
390 " MOV R1, SP \n"
391 " ADD R0, R2, #0x15C \n"
392 " STR R6, [SP] \n"
393 " BL _GetPropertyCase \n"
394 " TST R0, #1 \n"
395 " MOVNE R1, #0xC5 \n"
396 " LDRNE R0, =0xFF98C658 /*'SsCaptureSeq.c'*/ \n"
397 " BLNE _DebugAssert \n"
398 " LDRH R0, [SP] \n"
399 " CMP R0, #1 \n"
400 " MOVHI R0, #0x1D \n"
401 " STRHI R6, [R4, #0xD8] \n"
402 " BHI loc_FF98C5C8 \n"
403 " MOV R0, #0 \n"
404 " STR R0, [R4, #0xD8] \n"
405 " MOV R0, R4 \n"
406 " BL sub_FFAE3934_my \n"
407
408 "loc_FF98C5C8:\n"
409 " LDMFD SP!, {R3-R7,PC} \n"
410 );
411 }
412
413
414
415 void __attribute__((naked,noinline)) sub_FFAE3934_my() {
416 asm volatile (
417 " STMFD SP!, {R3-R7,LR} \n"
418 " MOV R4, R0 \n"
419 " MOV R1, R0 \n"
420 " LDR R0, =0xFF98BE90 \n"
421 " BL sub_FF8BFAB4 \n"
422 " MOV R0, R4 \n"
423 " BL sub_FF98BDD0 \n"
424 " MOV R0, R4 \n"
425 " BL sub_FF98C1A4 \n"
426 " MOV R7, R0 \n"
427 " LDR R1, =0xCEA8 \n"
428 " MOV R2, #4 \n"
429 " MOV R0, #0x8A \n"
430 " BL _GetPropertyCase \n"
431 " TST R0, #1 \n"
432 " LDRNE R1, =0x22F \n"
433 " LDRNE R0, =0xFFAE3B08 /*'SsStandardCaptureSeq.c'*/ \n"
434 " BLNE _DebugAssert \n"
435 " BL sub_FF884D50 \n"
436 " BL sub_FF98C3AC \n"
437 " BL wait_until_remote_button_is_released\n"
438 " BL capt_seq_hook_set_nr\n"
439 " LDR PC, =0xFFAE3984 \n"
440 );
441 }
442
443
444
445 void __attribute__((naked,noinline)) exp_drv_task() {
446 asm volatile (
447 " STMFD SP!, {R4-R9,LR} \n"
448 " SUB SP, SP, #0x24 \n"
449 " LDR R6, =0x453C \n"
450 " LDR R7, =0xBB8 \n"
451 " LDR R4, =0x569B0 \n"
452 " MOV R0, #0 \n"
453 " ADD R5, SP, #0x14 \n"
454 " STR R0, [SP, #0x10] \n"
455
456 "loc_FF8CA7B4:\n"
457 " LDR R0, [R6, #0x20] \n"
458 " MOV R2, #0 \n"
459 " ADD R1, SP, #0x20 \n"
460 " BL sub_FF83A27C /*_ReceiveMessageQueue*/ \n"
461 " LDR R0, [SP, #0x10] \n"
462 " CMP R0, #1 \n"
463 " BNE loc_FF8CA800 \n"
464 " LDR R0, [SP, #0x20] \n"
465 " LDR R0, [R0] \n"
466 " CMP R0, #0x14 \n"
467 " CMPNE R0, #0x15 \n"
468 " CMPNE R0, #0x16 \n"
469 " CMPNE R0, #0x17 \n"
470 " BEQ loc_FF8CA960 \n"
471 " CMP R0, #0x29 \n"
472 " BEQ loc_FF8CA8E8 \n"
473 " ADD R1, SP, #0x10 \n"
474 " MOV R0, #0 \n"
475 " BL sub_FF8CA744 \n"
476
477 "loc_FF8CA800:\n"
478 " LDR R0, [SP, #0x20] \n"
479 " LDR R1, [R0] \n"
480 " CMP R1, #0x2F \n"
481 " BNE loc_FF8CA82C \n"
482 " BL sub_FF8CBC38 \n"
483 " LDR R0, [R6, #0x1C] \n"
484 " MOV R1, #1 \n"
485 " BL sub_FF88C868 /*_SetEventFlag*/ \n"
486 " BL _ExitTask \n"
487 " ADD SP, SP, #0x24 \n"
488 " LDMFD SP!, {R4-R9,PC} \n"
489
490 "loc_FF8CA82C:\n"
491 " CMP R1, #0x2E \n"
492 " BNE loc_FF8CA848 \n"
493 " LDR R2, [R0, #0x8C]! \n"
494 " LDR R1, [R0, #4] \n"
495 " MOV R0, R1 \n"
496 " BLX R2 \n"
497 " B loc_FF8CAE58 \n"
498
499 "loc_FF8CA848:\n"
500 " CMP R1, #0x27 \n"
501 " BNE loc_FF8CA898 \n"
502 " LDR R0, [R6, #0x1C] \n"
503 " MOV R1, #0x80 \n"
504 " BL sub_FF88C89C /*_ClearEventFlag*/ \n"
505 " LDR R0, =0xFF8C62FC \n"
506 " MOV R1, #0x80 \n"
507 " BL sub_FF97D2A4 \n"
508 " LDR R0, [R6, #0x1C] \n"
509 " MOV R2, R7 \n"
510 " MOV R1, #0x80 \n"
511 " BL sub_FF88C7A8 /*_WaitForAllEventFlag*/ \n"
512 " TST R0, #1 \n"
513 " LDRNE R1, =0x1447 \n"
514 " BNE loc_FF8CA954 \n"
515
516 "loc_FF8CA884:\n"
517 " LDR R1, [SP, #0x20] \n"
518 " LDR R0, [R1, #0x90] \n"
519 " LDR R1, [R1, #0x8C] \n"
520 " BLX R1 \n"
521 " B loc_FF8CAE58 \n"
522
523 "loc_FF8CA898:\n"
524 " CMP R1, #0x28 \n"
525 " BNE loc_FF8CA8E0 \n"
526 " ADD R1, SP, #0x10 \n"
527 " BL sub_FF8CA744 \n"
528 " LDR R0, [R6, #0x1C] \n"
529 " MOV R1, #0x100 \n"
530 " BL sub_FF88C89C /*_ClearEventFlag*/ \n"
531 " LDR R0, =0xFF8C630C \n"
532 " MOV R1, #0x100 \n"
533 " BL sub_FF97E05C \n"
534 " LDR R0, [R6, #0x1C] \n"
535 " MOV R2, R7 \n"
536 " MOV R1, #0x100 \n"
537 " BL sub_FF88C7A8 /*_WaitForAllEventFlag*/ \n"
538 " TST R0, #1 \n"
539 " BEQ loc_FF8CA884 \n"
540 " LDR R1, =0x1451 \n"
541 " B loc_FF8CA954 \n"
542
543 "loc_FF8CA8E0:\n"
544 " CMP R1, #0x29 \n"
545 " BNE loc_FF8CA8F8 \n"
546
547 "loc_FF8CA8E8:\n"
548 " LDR R0, [SP, #0x20] \n"
549 " ADD R1, SP, #0x10 \n"
550 " BL sub_FF8CA744 \n"
551 " B loc_FF8CA884 \n"
552
553 "loc_FF8CA8F8:\n"
554 " CMP R1, #0x2C \n"
555 " BNE loc_FF8CA910 \n"
556 " BL sub_FF8B7AA4 \n"
557 " BL sub_FF8B876C \n"
558 " BL sub_FF8B82D0 \n"
559 " B loc_FF8CA884 \n"
560
561 "loc_FF8CA910:\n"
562 " CMP R1, #0x2D \n"
563 " BNE loc_FF8CA960 \n"
564 " LDR R0, [R6, #0x1C] \n"
565 " MOV R1, #4 \n"
566 " BL sub_FF88C89C /*_ClearEventFlag*/ \n"
567 " LDR R1, =0xFF8C632C \n"
568 " LDR R0, =0xFFFFF400 \n"
569 " MOV R2, #4 \n"
570 " BL sub_FF8B7518 \n"
571 " BL sub_FF8B77A8 \n"
572 " LDR R0, [R6, #0x1C] \n"
573 " MOV R2, R7 \n"
574 " MOV R1, #4 \n"
575 " BL sub_FF88C6C4 /*_WaitForAnyEventFlag*/ \n"
576 " TST R0, #1 \n"
577 " BEQ loc_FF8CA884 \n"
578 " LDR R1, =0x1479 \n"
579
580 "loc_FF8CA954:\n"
581 " LDR R0, =0xFF8C6A2C /*'ExpDrv.c'*/ \n"
582 " BL _DebugAssert \n"
583 " B loc_FF8CA884 \n"
584
585 "loc_FF8CA960:\n"
586 " LDR R0, [SP, #0x20] \n"
587 " MOV R8, #1 \n"
588 " LDR R1, [R0] \n"
589 " CMP R1, #0x12 \n"
590 " CMPNE R1, #0x13 \n"
591 " BNE loc_FF8CA9C8 \n"
592 " LDR R1, [R0, #0x7C] \n"
593 " ADD R1, R1, R1, LSL#1 \n"
594 " ADD R1, R0, R1, LSL#2 \n"
595 " SUB R1, R1, #8 \n"
596 " LDMIA R1, {R2,R3,R9} \n"
597 " STMIA R5, {R2,R3,R9} \n"
598 " BL sub_FF8C8E14 \n"
599 " LDR R0, [SP, #0x20] \n"
600 " LDR R1, [R0, #0x7C] \n"
601 " LDR R3, [R0, #0x8C] \n"
602 " LDR R2, [R0, #0x90] \n"
603 " ADD R0, R0, #4 \n"
604 " BLX R3 \n"
605 " LDR R0, [SP, #0x20] \n"
606 " BL sub_FF8CBFD4 \n"
607 " LDR R0, [SP, #0x20] \n"
608 " LDR R1, [R0, #0x7C] \n"
609 " LDR R2, [R0, #0x98] \n"
610 " LDR R3, [R0, #0x94] \n"
611 " B loc_FF8CAD44 \n"
612
613 "loc_FF8CA9C8:\n"
614 " CMP R1, #0x14 \n"
615 " CMPNE R1, #0x15 \n"
616 " CMPNE R1, #0x16 \n"
617 " CMPNE R1, #0x17 \n"
618 " BNE loc_FF8CAAE8 \n"
619 " ADD R3, SP, #0x10 \n"
620 " ADD R2, SP, #4 \n"
621 " ADD R1, SP, #0x14 \n"
622 " BL sub_FF8C907C \n"
623 " CMP R0, #1 \n"
624 " MOV R9, R0 \n"
625 " CMPNE R9, #5 \n"
626 " BNE loc_FF8CAA84 \n"
627 " LDR R0, [SP, #0x20] \n"
628 " MOV R2, R9 \n"
629 " LDR R1, [R0, #0x7C]! \n"
630 " LDR R12, [R0, #0x10]! \n"
631 " LDR R3, [R0, #4] \n"
632 " ADD R0, SP, #4 \n"
633 " BLX R12 \n"
634 " B loc_FF8CAABC \n"
635
636 "loc_FF8CAA84:\n"
637 " LDR R0, [SP, #0x20] \n"
638 " CMP R9, #2 \n"
639 " LDR R3, [R0, #0x90] \n"
640 " CMPNE R9, #6 \n"
641 " BNE loc_FF8CAAD0 \n"
642 " LDR R12, [R0, #0x8C] \n"
643 " MOV R2, R9 \n"
644 " MOV R1, #1 \n"
645 " ADD R0, SP, #4 \n"
646 " BLX R12 \n"
647 " LDR R0, [SP, #0x20] \n"
648 " ADD R2, SP, #4 \n"
649 " ADD R1, SP, #0x14 \n"
650 " BL sub_FF8CA490 \n"
651
652 "loc_FF8CAABC:\n"
653 " LDR R0, [SP, #0x20] \n"
654 " LDR R2, [SP, #0x10] \n"
655 " MOV R1, R9 \n"
656 " BL sub_FF8CA6E4 \n"
657 " B loc_FF8CAD4C \n"
658
659 "loc_FF8CAAD0:\n"
660 " LDR R1, [R0, #0x7C] \n"
661 " LDR R12, [R0, #0x8C] \n"
662 " MOV R2, R9 \n"
663 " ADD R0, R0, #4 \n"
664 " BLX R12 \n"
665 " B loc_FF8CAD4C \n"
666
667 "loc_FF8CAAE8:\n"
668 " CMP R1, #0x23 \n"
669 " CMPNE R1, #0x24 \n"
670 " BNE loc_FF8CAB34 \n"
671 " LDR R1, [R0, #0x7C] \n"
672 " ADD R1, R1, R1, LSL#1 \n"
673 " ADD R1, R0, R1, LSL#2 \n"
674 " SUB R1, R1, #8 \n"
675 " LDMIA R1, {R2,R3,R9} \n"
676 " STMIA R5, {R2,R3,R9} \n"
677 " BL sub_FF8C7EB4 \n"
678 " LDR R0, [SP, #0x20] \n"
679 " LDR R1, [R0, #0x7C] \n"
680 " LDR R3, [R0, #0x8C] \n"
681 " LDR R2, [R0, #0x90] \n"
682 " ADD R0, R0, #4 \n"
683 " BLX R3 \n"
684 " LDR R0, [SP, #0x20] \n"
685 " BL sub_FF8C82C8 \n"
686 " B loc_FF8CAD4C \n"
687
688 "loc_FF8CAB34:\n"
689 " ADD R1, R0, #4 \n"
690 " LDMIA R1, {R2,R3,R9} \n"
691 " STMIA R5, {R2,R3,R9} \n"
692 " LDR R1, [R0] \n"
693 " CMP R1, #0x27 \n"
694 " ADDCC PC, PC, R1, LSL#2 \n"
695 " B loc_FF8CAD34 \n"
696 " B loc_FF8CABEC \n"
697 " B loc_FF8CABEC \n"
698 " B loc_FF8CABF4 \n"
699 " B loc_FF8CABFC \n"
700 " B loc_FF8CABFC \n"
701 " B loc_FF8CABFC \n"
702 " B loc_FF8CABEC \n"
703 " B loc_FF8CABF4 \n"
704 " B loc_FF8CABFC \n"
705 " B loc_FF8CABFC \n"
706 " B loc_FF8CAC14 \n"
707 " B loc_FF8CAC14 \n"
708 " B loc_FF8CAD20 \n"
709 " B loc_FF8CAD28 \n"
710 " B loc_FF8CAD28 \n"
711 " B loc_FF8CAD28 \n"
712 " B loc_FF8CAD28 \n"
713 " B loc_FF8CAD30 \n"
714 " B loc_FF8CAD34 \n"
715 " B loc_FF8CAD34 \n"
716 " B loc_FF8CAD34 \n"
717 " B loc_FF8CAD34 \n"
718 " B loc_FF8CAD34 \n"
719 " B loc_FF8CAD34 \n"
720 " B loc_FF8CAC04 \n"
721 " B loc_FF8CAC0C \n"
722 " B loc_FF8CAC0C \n"
723 " B loc_FF8CAC20 \n"
724 " B loc_FF8CAC20 \n"
725 " B loc_FF8CAC28 \n"
726 " B loc_FF8CAC60 \n"
727 " B loc_FF8CAC98 \n"
728 " B loc_FF8CACD0 \n"
729 " B loc_FF8CAD08 \n"
730 " B loc_FF8CAD08 \n"
731 " B loc_FF8CAD34 \n"
732 " B loc_FF8CAD34 \n"
733 " B loc_FF8CAD10 \n"
734 " B loc_FF8CAD18 \n"
735
736 "loc_FF8CABEC:\n"
737 " BL sub_FF8C68B0 \n"
738 " B loc_FF8CAD34 \n"
739
740 "loc_FF8CABF4:\n"
741 " BL sub_FF8C6B54 \n"
742 " B loc_FF8CAD34 \n"
743
744 "loc_FF8CABFC:\n"
745 " BL sub_FF8C6D7C \n"
746 " B loc_FF8CAD34 \n"
747
748 "loc_FF8CAC04:\n"
749 " BL sub_FF8C7054 \n"
750 " B loc_FF8CAD34 \n"
751
752 "loc_FF8CAC0C:\n"
753 " BL sub_FF8C726C \n"
754 " B loc_FF8CAD34 \n"
755
756 "loc_FF8CAC14:\n"
757 " BL sub_FF8C75EC_my \n"
758 " MOV R8, #0 \n"
759 " B loc_FF8CAD34 \n"
760
761 "loc_FF8CAC20:\n"
762 " BL sub_FF8C7734 \n"
763 " B loc_FF8CAD34 \n"
764
765 "loc_FF8CAC28:\n"
766 " LDRH R1, [R0, #4] \n"
767 " STRH R1, [SP, #0x14] \n"
768 " LDRH R1, [R4, #2] \n"
769 " STRH R1, [SP, #0x16] \n"
770 " LDRH R1, [R4, #4] \n"
771 " STRH R1, [SP, #0x18] \n"
772 " LDRH R1, [R4, #6] \n"
773 " STRH R1, [SP, #0x1A] \n"
774 " LDRH R1, [R0, #0xC] \n"
775 " STRH R1, [SP, #0x1C] \n"
776 " LDRH R1, [R4, #0xA] \n"
777 " STRH R1, [SP, #0x1E] \n"
778 " BL sub_FF8CBCCC \n"
779 " B loc_FF8CAD34 \n"
780
781 "loc_FF8CAC60:\n"
782 " LDRH R1, [R0, #4] \n"
783 " STRH R1, [SP, #0x14] \n"
784 " LDRH R1, [R4, #2] \n"
785 " STRH R1, [SP, #0x16] \n"
786 " LDRH R1, [R4, #4] \n"
787 " STRH R1, [SP, #0x18] \n"
788 " LDRH R1, [R4, #6] \n"
789 " STRH R1, [SP, #0x1A] \n"
790 " LDRH R1, [R4, #8] \n"
791 " STRH R1, [SP, #0x1C] \n"
792 " LDRH R1, [R4, #0xA] \n"
793 " STRH R1, [SP, #0x1E] \n"
794 " BL sub_FF8CBDD4 \n"
795 " B loc_FF8CAD34 \n"
796
797 "loc_FF8CAC98:\n"
798 " LDRH R1, [R4] \n"
799 " STRH R1, [SP, #0x14] \n"
800 " LDRH R1, [R0, #6] \n"
801 " STRH R1, [SP, #0x16] \n"
802 " LDRH R1, [R4, #4] \n"
803 " STRH R1, [SP, #0x18] \n"
804 " LDRH R1, [R4, #6] \n"
805 " STRH R1, [SP, #0x1A] \n"
806 " LDRH R1, [R4, #8] \n"
807 " STRH R1, [SP, #0x1C] \n"
808 " LDRH R1, [R4, #0xA] \n"
809 " STRH R1, [SP, #0x1E] \n"
810 " BL sub_FF8CBE88 \n"
811 " B loc_FF8CAD34 \n"
812
813 "loc_FF8CACD0:\n"
814 " LDRH R1, [R4] \n"
815 " STRH R1, [SP, #0x14] \n"
816 " LDRH R1, [R4, #2] \n"
817 " STRH R1, [SP, #0x16] \n"
818 " LDRH R1, [R4, #4] \n"
819 " STRH R1, [SP, #0x18] \n"
820 " LDRH R1, [R4, #6] \n"
821 " STRH R1, [SP, #0x1A] \n"
822 " LDRH R1, [R0, #0xC] \n"
823 " STRH R1, [SP, #0x1C] \n"
824 " LDRH R1, [R4, #0xA] \n"
825 " STRH R1, [SP, #0x1E] \n"
826 " BL sub_FF8CBF30 \n"
827 " B loc_FF8CAD34 \n"
828
829 "loc_FF8CAD08:\n"
830 " BL sub_FF8C7C8C \n"
831 " B loc_FF8CAD34 \n"
832
833 "loc_FF8CAD10:\n"
834 " BL sub_FF8C83CC \n"
835 " B loc_FF8CAD34 \n"
836
837 "loc_FF8CAD18:\n"
838 " BL sub_FF8C8674 \n"
839 " B loc_FF8CAD34 \n"
840
841 "loc_FF8CAD20:\n"
842 " BL sub_FF8C8854 \n"
843 " B loc_FF8CAD34 \n"
844
845 "loc_FF8CAD28:\n"
846 " BL sub_FF8C8A9C \n"
847 " B loc_FF8CAD34 \n"
848
849 "loc_FF8CAD30:\n"
850 " BL sub_FF8C8C0C \n"
851
852 "loc_FF8CAD34:\n"
853 " LDR R0, [SP, #0x20] \n"
854 " LDR R1, [R0, #0x7C] \n"
855 " LDR R2, [R0, #0x90] \n"
856 " LDR R3, [R0, #0x8C] \n"
857
858 "loc_FF8CAD44:\n"
859 " ADD R0, R0, #4 \n"
860 " BLX R3 \n"
861
862 "loc_FF8CAD4C:\n"
863 " LDR R1, [SP, #0x20] \n"
864 " LDR R0, [R1] \n"
865 " CMP R0, #0x10 \n"
866 " BEQ loc_FF8CAD84 \n"
867 " BGT loc_FF8CAD74 \n"
868 " CMP R0, #1 \n"
869 " CMPNE R0, #4 \n"
870 " CMPNE R0, #0xE \n"
871 " BNE loc_FF8CAD94 \n"
872 " B loc_FF8CAD84 \n"
873
874 "loc_FF8CAD74:\n"
875 " CMP R0, #0x13 \n"
876 " CMPNE R0, #0x17 \n"
877 " CMPNE R0, #0x1A \n"
878 " BNE loc_FF8CAD94 \n"
879
880 "loc_FF8CAD84:\n"
881 " LDRH R0, [R4] \n"
882 " STRH R0, [SP, #0x14] \n"
883 " LDRH R0, [R4, #8] \n"
884 " STRH R0, [SP, #0x1C] \n"
885
886 "loc_FF8CAD94:\n"
887 " CMP R8, #1 \n"
888 " BNE loc_FF8CADE0 \n"
889 " LDR R0, [R1, #0x7C] \n"
890 " MOV R2, #0xC \n"
891 " ADD R0, R0, R0, LSL#1 \n"
892 " ADD R0, R1, R0, LSL#2 \n"
893 " SUB R8, R0, #8 \n"
894 " LDR R0, =0x569B0 \n"
895 " ADD R1, SP, #0x14 \n"
896 " BL sub_FFB8B798 \n"
897 " LDR R0, =0x569BC \n"
898 " MOV R2, #0xC \n"
899 " ADD R1, SP, #0x14 \n"
900 " BL sub_FFB8B798 \n"
901 " LDR R0, =0x569C8 \n"
902 " MOV R2, #0xC \n"
903 " MOV R1, R8 \n"
904 " BL sub_FFB8B798 \n"
905 " B loc_FF8CAE58 \n"
906
907 "loc_FF8CADE0:\n"
908 " LDR R0, [R1] \n"
909 " MOV R3, #1 \n"
910 " CMP R0, #0xB \n"
911 " BNE loc_FF8CAE24 \n"
912 " MOV R2, #0 \n"
913 " STRD R2, [SP] \n"
914 " MOV R2, R3 \n"
915 " MOV R1, R3 \n"
916 " MOV R0, #0 \n"
917 " BL sub_FF8C6684 \n"
918 " MOV R3, #1 \n"
919 " MOV R2, #0 \n"
920 " STRD R2, [SP] \n"
921 " MOV R2, R3 \n"
922 " MOV R1, R3 \n"
923 " MOV R0, #0 \n"
924 " B loc_FF8CAE54 \n"
925
926 "loc_FF8CAE24:\n"
927 " MOV R2, #1 \n"
928 " STRD R2, [SP] \n"
929 " MOV R3, R2 \n"
930 " MOV R1, R2 \n"
931 " MOV R0, R2 \n"
932 " BL sub_FF8C6684 \n"
933 " MOV R3, #1 \n"
934 " MOV R2, R3 \n"
935 " MOV R1, R3 \n"
936 " MOV R0, R3 \n"
937 " STR R3, [SP] \n"
938 " STR R3, [SP, #4] \n"
939
940 "loc_FF8CAE54:\n"
941 " BL sub_FF8C67FC \n"
942
943 "loc_FF8CAE58:\n"
944 " LDR R0, [SP, #0x20] \n"
945 " BL sub_FF8CBC38 \n"
946 " B loc_FF8CA7B4 \n"
947 );
948 }
949
950
951
952 void __attribute__((naked,noinline)) sub_FF8C75EC_my() {
953 asm volatile (
954 " STMFD SP!, {R4-R8,LR} \n"
955 " LDR R7, =0x453C \n"
956 " MOV R4, R0 \n"
957 " LDR R0, [R7, #0x1C] \n"
958 " MOV R1, #0x3E \n"
959 " BL sub_FF88C89C /*_ClearEventFlag*/ \n"
960 " MOV R2, #0 \n"
961 " LDRSH R0, [R4, #4] \n"
962 " MOV R1, R2 \n"
963 " BL sub_FF8C638C \n"
964 " MOV R5, R0 \n"
965 " LDRSH R0, [R4, #6] \n"
966 " BL sub_FF8C64DC \n"
967 " LDRSH R0, [R4, #8] \n"
968 " BL sub_FF8C6534 \n"
969 " LDRSH R0, [R4, #0xA] \n"
970 " BL sub_FF8C658C \n"
971 " LDRSH R0, [R4, #0xC] \n"
972 " MOV R1, #0 \n"
973 " BL sub_FF8C65E4 \n"
974 " MOV R6, R0 \n"
975 " LDRSH R0, [R4, #0xE] \n"
976 " BL sub_FF8CBC68 \n"
977 " LDR R0, [R4] \n"
978 " LDR R8, =0x569C8 \n"
979 " CMP R0, #0xB \n"
980 " MOVEQ R5, #0 \n"
981 " MOVEQ R6, R5 \n"
982 " BEQ loc_FF8C7688 \n"
983 " CMP R5, #1 \n"
984 " BNE loc_FF8C7688 \n"
985 " LDRSH R0, [R4, #4] \n"
986 " LDR R1, =0xFF8C62EC \n"
987 " MOV R2, #2 \n"
988 " BL sub_FF97D5C8 \n"
989 " STRH R0, [R4, #4] \n"
990 " MOV R0, #0 \n"
991 " STR R0, [R7, #0x28] \n"
992 " B loc_FF8C7690 \n"
993
994 "loc_FF8C7688:\n"
995 " LDRH R0, [R8] \n"
996 " STRH R0, [R4, #4] \n"
997
998 "loc_FF8C7690:\n"
999 " CMP R6, #1 \n"
1000 " LDRNEH R0, [R8, #8] \n"
1001 " BNE loc_FF8C76AC \n"
1002 " LDRSH R0, [R4, #0xC] \n"
1003 " LDR R1, =0xFF8C6370 \n"
1004 " MOV R2, #0x20 \n"
1005 " BL sub_FF8CBC88 \n"
1006
1007 "loc_FF8C76AC:\n"
1008 " STRH R0, [R4, #0xC] \n"
1009 " LDRSH R0, [R4, #6] \n"
1010 " BL sub_FF8B7814_my \n"
1011 " LDR PC, =0xFF8C76B8 \n"
1012 );
1013 }
1014
1015
1016
1017 void __attribute__((naked,noinline)) sub_FF8B7814_my() {
1018 asm volatile (
1019 " STMFD SP!, {R4-R6,LR} \n"
1020 " LDR R5, =0x41F0 \n"
1021 " MOV R4, R0 \n"
1022 " LDR R0, [R5, #4] \n"
1023 " CMP R0, #1 \n"
1024 " LDRNE R1, =0x14D \n"
1025 " LDRNE R0, =0xFF8B764C /*'Shutter.c'*/ \n"
1026 " BLNE _DebugAssert \n"
1027 " CMN R4, #0xC00 \n"
1028 " LDREQSH R4, [R5, #2] \n"
1029 " CMN R4, #0xC00 \n"
1030 " LDREQ R1, =0x153 \n"
1031 " LDREQ R0, =0xFF8B764C /*'Shutter.c'*/ \n"
1032 " STRH R4, [R5, #2] \n"
1033 " BLEQ _DebugAssert \n"
1034 " MOV R0, R4 \n"
1035 " BL apex2us \n"
1036 " LDR PC, =0xFF8B7858 \n"
1037 );
1038 }