This source file includes following definitions.
- capt_seq_task
- sub_FF99E970_my
- sub_FF99E7A4_my
- sub_FFAD1A90_my
- exp_drv_task
- sub_FF8D9998_my
- sub_FF8C65E0_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 #define NR_AUTO (0)
11
12
13
14 #include "../../../generic/capt_seq.c"
15
16
17
18 void __attribute__((naked,noinline)) capt_seq_task() {
19 asm volatile (
20 " STMFD SP!, {R3-R7,LR} \n"
21 " LDR R5, =0x1D6B4 \n"
22 " LDR R7, =0x35C0 \n"
23 " MOV R6, #0 \n"
24
25 "loc_FF88F798:\n"
26 " LDR R0, [R7, #4] \n"
27 " MOV R2, #0 \n"
28 " MOV R1, SP \n"
29 " BL sub_FF829E30 /*_ReceiveMessageQueue*/ \n"
30 " TST R0, #1 \n"
31 " BEQ loc_FF88F7C8 \n"
32 " LDR R2, =0x443 \n"
33 " LDR R1, =0xFF88F0FC /*'SsShootTask.c'*/ \n"
34 " MOV R0, #0 \n"
35 " BL _DebugAssert \n"
36 " BL _ExitTask \n"
37 " LDMFD SP!, {R3-R7,PC} \n"
38
39 "loc_FF88F7C8:\n"
40 " LDR R0, [SP] \n"
41 " LDR R0, [R0] \n"
42 " CMP R0, #1 \n"
43 " CMPNE R0, #0x23 \n"
44 " CMPNE R0, #0x19 \n"
45 " BLNE sub_FF99FA5C \n"
46 " LDR R0, [SP] \n"
47 " LDR R1, [R0] \n"
48 " CMP R1, #0x25 \n"
49 " ADDCC PC, PC, R1, LSL#2 \n"
50 " B loc_FF88FA18 \n"
51 " B loc_FF88F888 \n"
52 " B loc_FF88F8A0 \n"
53 " B loc_FF88F8AC \n"
54 " B loc_FF88F8C0 \n"
55 " B loc_FF88F8B8 \n"
56 " B loc_FF88F8CC \n"
57 " B loc_FF88F8D4 \n"
58 " B loc_FF88F8DC \n"
59 " B loc_FF88F8E8 \n"
60 " B loc_FF88F914 \n"
61 " B loc_FF88F8F4 \n"
62 " B loc_FF88F900 \n"
63 " B loc_FF88F908 \n"
64 " B loc_FF88F91C \n"
65 " B loc_FF88F924 \n"
66 " B loc_FF88F92C \n"
67 " B loc_FF88F934 \n"
68 " B loc_FF88F93C \n"
69 " B loc_FF88F948 \n"
70 " B loc_FF88F950 \n"
71 " B loc_FF88F958 \n"
72 " B loc_FF88F960 \n"
73 " B loc_FF88F968 \n"
74 " B loc_FF88F970 \n"
75 " B loc_FF88F978 \n"
76 " B loc_FF88F980 \n"
77 " B loc_FF88F98C \n"
78 " B loc_FF88F994 \n"
79 " B loc_FF88F99C \n"
80 " B loc_FF88F9A4 \n"
81 " B loc_FF88F9AC \n"
82 " B loc_FF88F9B8 \n"
83 " B loc_FF88F9C0 \n"
84 " B loc_FF88F9CC \n"
85 " B loc_FF88F9F8 \n"
86 " B loc_FF88FA04 \n"
87 " B loc_FF88FA28 \n"
88
89 "loc_FF88F888:\n"
90 " BL shooting_expo_iso_override\n"
91 " BL sub_FF88FFC4 \n"
92 " BL shooting_expo_param_override\n"
93 " BL sub_FF88CD14 \n"
94
95
96
97 " LDR R0, [R5, #0x28] \n"
98 " CMP R0, #0 \n"
99 " BLNE sub_FF99E970_my \n"
100 " B loc_FF88FA28 \n"
101
102 "loc_FF88F8A0:\n"
103 " LDR R0, [R0, #0x10] \n"
104 " BL sub_FF99E7A4_my \n"
105 " B loc_FF88FA28 \n"
106
107 "loc_FF88F8AC:\n"
108 " MOV R0, #1 \n"
109 " BL sub_FF89031C \n"
110 " B loc_FF88FA28 \n"
111
112 "loc_FF88F8B8:\n"
113 " BL sub_FF88FBFC \n"
114 " B loc_FF88F8C4 \n"
115
116 "loc_FF88F8C0:\n"
117 " BL sub_FF88FFA0 \n"
118
119 "loc_FF88F8C4:\n"
120 " STR R6, [R5, #0x28] \n"
121 " B loc_FF88FA28 \n"
122
123 "loc_FF88F8CC:\n"
124 " BL sub_FF88FFA8 \n"
125 " B loc_FF88FA28 \n"
126
127 "loc_FF88F8D4:\n"
128 " BL sub_FF8901E0 \n"
129 " B loc_FF88F8EC \n"
130
131 "loc_FF88F8DC:\n"
132 " LDR R0, [R0, #0x10] \n"
133 " BL sub_FF99EA58 \n"
134 " B loc_FF88FA28 \n"
135
136 "loc_FF88F8E8:\n"
137 " BL sub_FF890274 \n"
138
139 "loc_FF88F8EC:\n"
140 " BL sub_FF88CD14 \n"
141 " B loc_FF88FA28 \n"
142
143 "loc_FF88F8F4:\n"
144 " LDR R0, [R5, #0x54] \n"
145 " BL sub_FF8908E0 \n"
146 " B loc_FF88FA28 \n"
147
148 "loc_FF88F900:\n"
149 " BL sub_FF890D34 \n"
150 " B loc_FF88FA28 \n"
151
152 "loc_FF88F908:\n"
153 " LDR R0, [R0, #0xC] \n"
154 " BL sub_FF890D9C \n"
155 " B loc_FF88FA28 \n"
156
157 "loc_FF88F914:\n"
158 " BL sub_FF88FFA0 \n"
159 " B loc_FF88FA28 \n"
160
161 "loc_FF88F91C:\n"
162 " BL sub_FF99D300 \n"
163 " B loc_FF88FA28 \n"
164
165 "loc_FF88F924:\n"
166 " BL sub_FF99D538 \n"
167 " B loc_FF88FA28 \n"
168
169 "loc_FF88F92C:\n"
170 " BL sub_FF99D5F4 \n"
171 " B loc_FF88FA28 \n"
172
173 "loc_FF88F934:\n"
174 " BL sub_FF99D6CC \n"
175 " B loc_FF88FA28 \n"
176
177 "loc_FF88F93C:\n"
178 " MOV R0, #0 \n"
179 " BL sub_FF99D934 \n"
180 " B loc_FF88FA28 \n"
181
182 "loc_FF88F948:\n"
183 " BL sub_FF99DA94 \n"
184 " B loc_FF88FA28 \n"
185
186 "loc_FF88F950:\n"
187 " BL sub_FF896970 \n"
188 " B loc_FF88FA28 \n"
189
190 "loc_FF88F958:\n"
191 " BL sub_FF89697C \n"
192 " B loc_FF88FA28 \n"
193
194 "loc_FF88F960:\n"
195 " BL sub_FF99DB30 \n"
196 " B loc_FF88FA28 \n"
197
198 "loc_FF88F968:\n"
199 " BL sub_FF99DBDC \n"
200 " B loc_FF88FA28 \n"
201
202 "loc_FF88F970:\n"
203 " BL sub_FF890464 \n"
204 " B loc_FF88FA28 \n"
205
206 "loc_FF88F978:\n"
207 " MOV R0, #0 \n"
208 " B loc_FF88F984 \n"
209
210 "loc_FF88F980:\n"
211 " LDR R0, [R0, #0xC] \n"
212
213 "loc_FF88F984:\n"
214 " BL sub_FF8904F4 \n"
215 " B loc_FF88FA28 \n"
216
217 "loc_FF88F98C:\n"
218 " BL sub_FF99D79C \n"
219 " B loc_FF88FA28 \n"
220
221 "loc_FF88F994:\n"
222 " BL sub_FF99D7DC \n"
223 " B loc_FF88FA28 \n"
224
225 "loc_FF88F99C:\n"
226 " BL sub_FF893304 \n"
227 " B loc_FF88FA28 \n"
228
229 "loc_FF88F9A4:\n"
230 " BL sub_FF8933F4 \n"
231 " B loc_FF88FA28 \n"
232
233 "loc_FF88F9AC:\n"
234 " LDR R0, [R0, #0xC] \n"
235 " BL sub_FF99DCEC \n"
236 " B loc_FF88FA28 \n"
237
238 "loc_FF88F9B8:\n"
239 " BL sub_FF99DD74 \n"
240 " B loc_FF88FA28 \n"
241
242 "loc_FF88F9C0:\n"
243 " BL sub_FF893584 \n"
244 " BL sub_FF89344C \n"
245 " B loc_FF88FA28 \n"
246
247 "loc_FF88F9CC:\n"
248 " BL sub_FF895620 \n"
249 " LDR R0, =0x1D7B4 \n"
250 " LDRH R0, [R0, #0x9C] \n"
251 " CMP R0, #4 \n"
252 " LDRNEH R0, [R5] \n"
253 " SUBNE R1, R0, #0x8200 \n"
254 " SUBNES R1, R1, #0x36 \n"
255 " BNE loc_FF88FA28 \n"
256 " BL sub_FF8933F4 \n"
257 " BL sub_FF89391C \n"
258 " B loc_FF88FA28 \n"
259
260 "loc_FF88F9F8:\n"
261 " MOV R2, #0 \n"
262 " MOV R1, #0x11 \n"
263 " B loc_FF88FA0C \n"
264
265 "loc_FF88FA04:\n"
266 " MOV R2, #0 \n"
267 " MOV R1, #0x10 \n"
268
269 "loc_FF88FA0C:\n"
270 " MOV R0, #0 \n"
271 " BL sub_FF88D82C \n"
272 " B loc_FF88FA28 \n"
273
274 "loc_FF88FA18:\n"
275 " LDR R2, =0x57B \n"
276 " LDR R1, =0xFF88F0FC /*'SsShootTask.c'*/ \n"
277 " MOV R0, #0 \n"
278 " BL _DebugAssert \n"
279
280 "loc_FF88FA28:\n"
281 " LDR R0, [SP] \n"
282 " LDR R1, [R0, #4] \n"
283 " LDR R0, [R7] \n"
284 " BL sub_FF829BC4 /*_SetEventFlag*/ \n"
285 " LDR R4, [SP] \n"
286 " LDR R0, [R4, #8] \n"
287 " CMP R0, #0 \n"
288 " LDREQ R1, =0xFF88F0FC /*'SsShootTask.c'*/ \n"
289 " MOVEQ R2, #0x124 \n"
290 " BLEQ _DebugAssert \n"
291 " STR R6, [R4, #8] \n"
292 " B loc_FF88F798 \n"
293 );
294 }
295
296
297
298 void __attribute__((naked,noinline)) sub_FF99E970_my() {
299 asm volatile (
300 " STMFD SP!, {R3-R7,LR} \n"
301 " BL sub_FF88ED08 \n"
302 " MOV R4, R0 \n"
303 " MOV R0, #0xC \n"
304 " BL sub_FF894F40 \n"
305 " LDR R6, =0x7790 \n"
306 " TST R0, #1 \n"
307 " MOV R5, #1 \n"
308 " BNE loc_FF99EA44 \n"
309 " BL sub_FF894F9C \n"
310 " TST R0, #1 \n"
311 " BNE loc_FF99EA44 \n"
312 " MOV R2, #2 \n"
313 " MOV R1, SP \n"
314 " ADD R0, R5, #0x108 \n"
315 " BL _GetPropertyCase \n"
316 " TST R0, #1 \n"
317 " ADDNE R2, R5, #0x174 \n"
318 " LDRNE R1, =0xFF99EAEC /*'SsCaptureCtrl.c'*/ \n"
319 " MOVNE R0, #0 \n"
320 " BLNE _DebugAssert \n"
321 " LDRSH R0, [SP] \n"
322 " BL sub_FF82CB64 \n"
323 " BL sub_FF82C980 \n"
324 " CMP R0, #1 \n"
325 " BLS loc_FF99EA4C \n"
326 " MOV R0, #0 \n"
327 " BL sub_FF82CAD8 \n"
328 " BL sub_FF88FFB0 \n"
329 " BL sub_FF8910E4 \n"
330 " MOV R1, R4 \n"
331 " BL sub_FF891140 \n"
332 " LDR R0, =0x10E \n"
333 " MOV R2, #4 \n"
334 " ADD R1, R4, #0x30 \n"
335 " BL _SetPropertyCase \n"
336 " MOV R2, #4 \n"
337 " ADD R1, R4, #0x34 \n"
338 " MOV R0, #0x2C \n"
339 " BL _SetPropertyCase \n"
340 " MOV R2, #4 \n"
341 " ADD R1, R4, #8 \n"
342 " MOV R0, #0x3F \n"
343 " BL _SetPropertyCase \n"
344 " BL sub_FF99F248 \n"
345 " MVN R1, #0x1000 \n"
346 " BL sub_FF829C0C /*_ClearEventFlag*/ \n"
347 " MOV R0, R4 \n"
348 " BL sub_FF99E468 \n"
349 " MOV R0, R4 \n"
350 " BL sub_FFAD1A90_my \n"
351 " TST R0, #1 \n"
352 " BEQ loc_FF99EA48 \n"
353
354 "loc_FF99EA44:\n"
355 " STR R5, [R6] \n"
356
357 "loc_FF99EA48:\n"
358 " LDMFD SP!, {R3-R7,PC} \n"
359
360 "loc_FF99EA4C:\n"
361 " BL sub_FF88D60C \n"
362 " BL sub_FF894FF8 \n"
363 " LDMFD SP!, {R3-R7,PC} \n"
364 );
365 }
366
367
368
369 void __attribute__((naked,noinline)) sub_FF99E7A4_my() {
370 asm volatile (
371 " STMFD SP!, {R3-R7,LR} \n"
372 " LDR R7, =0x1D6B4 \n"
373 " MOV R5, R0 \n"
374 " LDR R0, [R7, #0x28] \n"
375 " MOV R4, #0 \n"
376 " CMP R0, #0 \n"
377 " BEQ loc_FF99E7F0 \n"
378 " LDR R0, =0x7790 \n"
379 " MOV R2, R5 \n"
380 " LDR R0, [R0] \n"
381 " MOV R1, #2 \n"
382 " CMP R0, #0 \n"
383 " MOVNE R4, #0x1D \n"
384 " MOV R0, R4 \n"
385 " BL sub_FF88D82C \n"
386 " MOV R1, R4 \n"
387 " MOV R0, R5 \n"
388 " BL sub_FF99F7E4 \n"
389 " B loc_FF99E964 \n"
390
391 "loc_FF99E7F0:\n"
392 " BL sub_FF8910E4 \n"
393 " MOV R1, R5 \n"
394 " BL sub_FF891140 \n"
395 " LDR R0, =0x10E \n"
396 " MOV R2, #4 \n"
397 " ADD R1, R5, #0x30 \n"
398 " BL _SetPropertyCase \n"
399 " MOV R2, #4 \n"
400 " ADD R1, R5, #0x34 \n"
401 " MOV R0, #0x2C \n"
402 " BL _SetPropertyCase \n"
403 " LDR R0, [R7, #0x104] \n"
404 " LDR R6, =0x1D7B4 \n"
405 " CMP R0, #0 \n"
406 " BNE loc_FF99E844 \n"
407 " LDRH R0, [R6, #0x9A] \n"
408 " CMP R0, #3 \n"
409 " LDRNE R0, [R5, #8] \n"
410 " CMPNE R0, #1 \n"
411 " BHI loc_FF99E874 \n"
412 " B loc_FF99E850 \n"
413
414 "loc_FF99E844:\n"
415 " LDR R0, [R5, #0xC] \n"
416 " CMP R0, #1 \n"
417 " BNE loc_FF99E874 \n"
418
419 "loc_FF99E850:\n"
420 " MOV R0, #0xC \n"
421 " BL sub_FF894F40 \n"
422 " TST R0, #1 \n"
423 " BNE loc_FF99E86C \n"
424 " BL sub_FF894F9C \n"
425 " TST R0, #1 \n"
426 " BEQ loc_FF99E874 \n"
427
428 "loc_FF99E86C:\n"
429 " BL sub_FF88D60C \n"
430 " MOV R4, #1 \n"
431
432 "loc_FF99E874:\n"
433 " TST R4, #1 \n"
434 " BNE loc_FF99E948 \n"
435 " LDR R0, [R7, #0xE4] \n"
436 " CMP R0, #0 \n"
437 " BEQ loc_FF99E8B0 \n"
438 " LDRH R0, [R6, #0x9A] \n"
439 " CMP R0, #3 \n"
440 " LDRNE R0, [R5, #8] \n"
441 " CMPNE R0, #1 \n"
442 " BHI loc_FF99E908 \n"
443 " LDR R0, [R7, #0x104] \n"
444 " CMP R0, #0 \n"
445 " LDRNE R0, [R5, #0xC] \n"
446 " CMPNE R0, #1 \n"
447 " BHI loc_FF99E908 \n"
448
449 "loc_FF99E8B0:\n"
450 " LDR R0, =0x109 \n"
451 " MOV R2, #2 \n"
452 " MOV R1, SP \n"
453 " BL _GetPropertyCase \n"
454 " TST R0, #1 \n"
455 " MOVNE R2, #0xCA \n"
456 " LDRNE R1, =0xFF99EAEC /*'SsCaptureCtrl.c'*/ \n"
457 " MOVNE R0, #0 \n"
458 " BLNE _DebugAssert \n"
459 " LDRSH R0, [SP] \n"
460 " BL sub_FF82CB64 \n"
461 " BL sub_FF82C980 \n"
462 " CMP R0, #1 \n"
463 " BLS loc_FF99E8F4 \n"
464 " MOV R0, #0 \n"
465 " BL sub_FF82CAD8 \n"
466 " B loc_FF99E908 \n"
467
468 "loc_FF99E8F4:\n"
469 " BL sub_FF88D60C \n"
470 " BL sub_FF894FF8 \n"
471 " MOV R4, #1 \n"
472 " CMP R4, #0 \n"
473 " BNE loc_FF99E948 \n"
474
475 "loc_FF99E908:\n"
476 " BL sub_FF99F248 \n"
477 " MVN R1, #0x1000 \n"
478 " BL sub_FF829C0C /*_ClearEventFlag*/ \n"
479 " MOV R0, R5 \n"
480 " BL sub_FFAD16E8 \n"
481 " TST R0, #1 \n"
482 " MOV R4, R0 \n"
483 " BNE loc_FF99E948 \n"
484 " BL sub_FF88FFB0 \n"
485 " MOV R0, R5 \n"
486 " BL sub_FF99E468 \n"
487 " MOV R0, #2 \n"
488 " BL sub_FF896AFC \n"
489 " MOV R0, R5 \n"
490 " BL sub_FFAD1A90_my \n"
491 " B loc_FF99E964 \n"
492
493 "loc_FF99E948:\n"
494 " MOV R2, R5 \n"
495 " MOV R1, #2 \n"
496 " MOV R0, R4 \n"
497 " BL sub_FF88D82C \n"
498 " MOV R1, R4 \n"
499 " MOV R0, R5 \n"
500 " BL sub_FF99F9F8 \n"
501
502 "loc_FF99E964:\n"
503 " MOV R0, #0 \n"
504 " STR R0, [R7, #0x28] \n"
505 " LDMFD SP!, {R3-R7,PC} \n"
506 );
507 }
508
509
510
511 void __attribute__((naked,noinline)) sub_FFAD1A90_my() {
512 asm volatile (
513 " STMFD SP!, {R2-R10,LR} \n"
514 " MOV R4, R0 \n"
515 " BL sub_FF99E3D0 \n"
516 " BL sub_FF99F0A4 \n"
517 " LDR R7, =0x1D6B4 \n"
518 " LDR R0, [R7, #0x190] \n"
519 " CMP R0, #2 \n"
520 " BNE loc_FFAD1ACC \n"
521 " ADD R0, R7, #0x100 \n"
522 " LDRH R0, [R0, #0x9A] \n"
523 " CMP R0, #3 \n"
524 " LDRNE R0, [R4, #8] \n"
525 " CMPNE R0, #1 \n"
526 " MOVLS R0, #4 \n"
527 " BLLS sub_FF90D5E0 \n"
528
529 "loc_FFAD1ACC:\n"
530 " LDR R0, =0x12F \n"
531 " MOV R2, #4 \n"
532 " ADD R1, SP, #4 \n"
533 " BL _GetPropertyCase \n"
534 " TST R0, #1 \n"
535 " LDRNE R2, =0x191 \n"
536 " LDRNE R1, =0xFFAD1D3C /*'SsStandardCaptureSeq.c'*/ \n"
537 " MOVNE R0, #0 \n"
538 " BLNE _DebugAssert \n"
539 " LDR R0, [SP, #4] \n"
540 " AND R0, R0, #0xFF00 \n"
541 " CMP R0, #0x600 \n"
542 " LDRNE R0, =0xFF99E064 \n"
543 " LDREQ R0, =0xFFAD1A0C \n"
544 " MOVNE R1, R4 \n"
545 " MOVEQ R1, #0 \n"
546 " BL sub_FF8CEDF4 \n"
547 " LDR R0, [R7, #0x184] \n"
548 " CMP R0, #0 \n"
549 " BLNE sub_FF99E2BC \n"
550 " MOV R0, #0 \n"
551
552 " BL wait_until_remote_button_is_released\n"
553 " BL capt_seq_hook_set_nr\n"
554 " MOV R0, R4 \n"
555 " BL sub_FF99E4F8 \n"
556 " LDR R1, =0xCFFC \n"
557 " MOV R2, #4 \n"
558 " MOV R0, #0x8A \n"
559 " BL _GetPropertyCase \n"
560 " TST R0, #1 \n"
561 " LDRNE R2, =0x1A5 \n"
562 " LDRNE R1, =0xFFAD1D3C /*'SsStandardCaptureSeq.c'*/ \n"
563 " MOVNE R0, #0 \n"
564 " BLNE _DebugAssert \n"
565 " BL sub_FF892574 \n"
566 " BL sub_FF87F6F4 \n"
567 " MOV R1, #0 \n"
568 " MOV R0, R4 \n"
569 " BL sub_FFAD1A10 \n"
570 " MOV R6, R0 \n"
571 " LDR R0, [SP, #4] \n"
572 " LDR R8, =0xCFFC \n"
573 " AND R0, R0, #0xFF00 \n"
574 " CMP R0, #0x600 \n"
575 " LDRH R0, [R4, #0x18] \n"
576 " LDRNE R2, =0xFF99E2A4 \n"
577 " LDREQ R2, =0xFF99E210 \n"
578 " CMP R0, #0 \n"
579 " BEQ loc_FFAD1B9C \n"
580 " CMP R0, #1 \n"
581 " BEQ loc_FFAD1BC0 \n"
582 " CMP R0, #4 \n"
583 " BNE loc_FFAD1C34 \n"
584
585 "loc_FFAD1B9C:\n"
586 " STR R6, [SP] \n"
587 " MOV R3, R2 \n"
588 " LDR R1, [R4, #0x34] \n"
589 " LDR R2, [R8] \n"
590 " MOV R0, R4 \n"
591 " BL sub_FF99DE78 \n"
592 " MOV R5, R0 \n"
593 " BL sub_FF8CBCD8 \n"
594 " B loc_FFAD1C48 \n"
595
596 "loc_FFAD1BC0:\n"
597 " STR R6, [SP] \n"
598 " MOV R3, R2 \n"
599 " LDR R1, [R4, #0x34] \n"
600 " LDR R2, [R8] \n"
601 " MOV R0, R4 \n"
602 " BL sub_FF99DF04 \n"
603 " MOV R5, R0 \n"
604 " MOV R1, #0 \n"
605 " MOV R0, #0x45 \n"
606 " BL sub_FF834034 \n"
607 " TST R5, #1 \n"
608 " BNE loc_FFAD1C48 \n"
609 " LDR R0, =0xFFAD1A0C \n"
610 " MOV R1, #0 \n"
611 " BL sub_FF8CEDF4 \n"
612 " MOV R1, #1 \n"
613 " MOV R0, R4 \n"
614 " BL sub_FFAD1A10 \n"
615 " MOV R6, R0 \n"
616 " LDR R0, [R8] \n"
617 " BL sub_FF99E354 \n"
618 " LDR R1, [R4, #0x34] \n"
619 " LDR R2, [R8] \n"
620 " MOV R3, R6 \n"
621 " MOV R0, R4 \n"
622 " BL sub_FF99DF9C \n"
623 " MOV R5, R0 \n"
624 " BL sub_FF99DE00 \n"
625 " B loc_FFAD1C48 \n"
626
627 "loc_FFAD1C34:\n"
628 " MOV R2, #0x1D8 \n"
629 " LDR R1, =0xFFAD1D3C /*'SsStandardCaptureSeq.c'*/ \n"
630 " MOV R0, #0 \n"
631 " BL _DebugAssert \n"
632 " MOV R5, #0x1D \n"
633
634 "loc_FFAD1C48:\n"
635 " BL sub_FF87F70C \n"
636 " LDR R8, =0xFFAD1A0C \n"
637 " TST R5, #1 \n"
638 " BNE loc_FFAD1CC8 \n"
639 " LDR R0, [R7, #0x100] \n"
640 " CMP R0, #0 \n"
641 " BNE loc_FFAD1C80 \n"
642 " MOV R0, R4 \n"
643 " BL sub_FF99FFE8 \n"
644 " TST R0, #1 \n"
645 " LDRNE R2, =0x1FD \n"
646 " LDRNE R1, =0xFFAD1D3C /*'SsStandardCaptureSeq.c'*/ \n"
647 " MOVNE R0, #0 \n"
648 " BLNE _DebugAssert \n"
649 " BL capt_seq_hook_raw_here \n"
650
651 "loc_FFAD1C80:\n"
652 " MOV R0, R4 \n"
653 " BL sub_FF99E5E0 \n"
654 " MOV R0, R4 \n"
655 " BL sub_FF99E598 \n"
656 " CMP R6, R8 \n"
657 " BEQ loc_FFAD1CC8 \n"
658 " BL sub_FF99F248 \n"
659 " LDR R9, =0x20A \n"
660 " LDR R2, =0x3A98 \n"
661 " LDR R3, =0xFFAD1D3C /*'SsStandardCaptureSeq.c'*/ \n"
662 " MOV R1, #4 \n"
663 " STR R9, [SP] \n"
664 " BL sub_FF895224 \n"
665 " CMP R0, #0 \n"
666 " MOVNE R2, R9 \n"
667 " LDRNE R1, =0xFFAD1D3C /*'SsStandardCaptureSeq.c'*/ \n"
668 " MOVNE R0, #0 \n"
669 " BLNE _DebugAssert \n"
670
671 "loc_FFAD1CC8:\n"
672 " MOV R2, R4 \n"
673 " MOV R1, #2 \n"
674 " MOV R0, R5 \n"
675 " BL sub_FF88D82C \n"
676 " LDR R0, [R7, #0x28] \n"
677 " CMP R0, #0 \n"
678 " BEQ loc_FFAD1CFC \n"
679 " SUBS R1, R6, R8 \n"
680 " MOVNE R1, #1 \n"
681 " MOV R2, R5 \n"
682 " MOV R0, R4 \n"
683 " BL sub_FF99F77C \n"
684 " B loc_FFAD1D10 \n"
685
686 "loc_FFAD1CFC:\n"
687 " SUBS R1, R6, R8 \n"
688 " MOVNE R1, #1 \n"
689 " MOV R2, R5 \n"
690 " MOV R0, R4 \n"
691 " BL sub_FF99F710 \n"
692
693 "loc_FFAD1D10:\n"
694 " MOV R0, R5 \n"
695 " LDMFD SP!, {R2-R10,PC} \n"
696 " .ltorg\n"
697 );
698 }
699
700
701
702 void __attribute__((naked,noinline)) exp_drv_task() {
703 asm volatile (
704 " STMFD SP!, {R4-R9,LR} \n"
705 " SUB SP, SP, #0x2C \n"
706 " LDR R6, =0x447C \n"
707 " LDR R7, =0xBB8 \n"
708 " LDR R4, =0x5A4B4 \n"
709 " MOV R0, #0 \n"
710 " ADD R5, SP, #0x1C \n"
711 " STR R0, [SP, #0xC] \n"
712
713 "loc_FF8DD154:\n"
714 " LDR R0, [R6, #0x20] \n"
715 " MOV R2, #0 \n"
716 " ADD R1, SP, #0x28 \n"
717 " BL sub_FF829E30 /*_ReceiveMessageQueue*/ \n"
718 " LDR R0, [SP, #0xC] \n"
719 " CMP R0, #1 \n"
720 " BNE loc_FF8DD1A4 \n"
721 " LDR R0, [SP, #0x28] \n"
722 " LDR R0, [R0] \n"
723 " CMP R0, #0x14 \n"
724 " CMPNE R0, #0x15 \n"
725 " CMPNE R0, #0x16 \n"
726 " CMPNE R0, #0x17 \n"
727 " CMPNE R0, #0x18 \n"
728 " BEQ loc_FF8DD308 \n"
729 " CMP R0, #0x2E \n"
730 " BEQ loc_FF8DD28C \n"
731 " ADD R1, SP, #0xC \n"
732 " MOV R0, #0 \n"
733 " BL sub_FF8DD0D4 \n"
734
735 "loc_FF8DD1A4:\n"
736 " LDR R0, [SP, #0x28] \n"
737 " LDR R1, [R0] \n"
738 " CMP R1, #0x34 \n"
739 " BNE loc_FF8DD1D0 \n"
740 " BL sub_FF8DE974 \n"
741 " LDR R0, [R6, #0x1C] \n"
742 " MOV R1, #1 \n"
743 " BL sub_FF829BC4 /*_SetEventFlag*/ \n"
744 " BL _ExitTask \n"
745 " ADD SP, SP, #0x2C \n"
746 " LDMFD SP!, {R4-R9,PC} \n"
747
748 "loc_FF8DD1D0:\n"
749 " CMP R1, #0x33 \n"
750 " BNE loc_FF8DD1EC \n"
751 " LDR R2, [R0, #0xAC]! \n"
752 " LDR R1, [R0, #4] \n"
753 " MOV R0, R1 \n"
754 " BLX R2 \n"
755 " B loc_FF8DD7C8 \n"
756
757 "loc_FF8DD1EC:\n"
758 " CMP R1, #0x2C \n"
759 " BNE loc_FF8DD23C \n"
760 " LDR R0, [R6, #0x1C] \n"
761 " MOV R1, #0x80 \n"
762 " BL sub_FF829C0C /*_ClearEventFlag*/ \n"
763 " LDR R0, =0xFF8D84D8 \n"
764 " MOV R1, #0x80 \n"
765 " BL sub_FF88799C \n"
766 " LDR R0, [R6, #0x1C] \n"
767 " MOV R2, R7 \n"
768 " MOV R1, #0x80 \n"
769 " BL sub_FF829AF8 /*_WaitForAllEventFlag*/ \n"
770 " TST R0, #1 \n"
771 " LDRNE R2, =0x1798 \n"
772 " BNE loc_FF8DD2F8 \n"
773
774 "loc_FF8DD228:\n"
775 " LDR R1, [SP, #0x28] \n"
776 " LDR R0, [R1, #0xB0] \n"
777 " LDR R1, [R1, #0xAC] \n"
778 " BLX R1 \n"
779 " B loc_FF8DD7C8 \n"
780
781 "loc_FF8DD23C:\n"
782 " CMP R1, #0x2D \n"
783 " BNE loc_FF8DD284 \n"
784 " ADD R1, SP, #0xC \n"
785 " BL sub_FF8DD0D4 \n"
786 " LDR R0, [R6, #0x1C] \n"
787 " MOV R1, #0x100 \n"
788 " BL sub_FF829C0C /*_ClearEventFlag*/ \n"
789 " LDR R0, =0xFF8D84E8 \n"
790 " MOV R1, #0x100 \n"
791 " BL sub_FF887BB4 \n"
792 " LDR R0, [R6, #0x1C] \n"
793 " MOV R2, R7 \n"
794 " MOV R1, #0x100 \n"
795 " BL sub_FF829AF8 /*_WaitForAllEventFlag*/ \n"
796 " TST R0, #1 \n"
797 " BEQ loc_FF8DD228 \n"
798 " LDR R2, =0x17A2 \n"
799 " B loc_FF8DD2F8 \n"
800
801 "loc_FF8DD284:\n"
802 " CMP R1, #0x2E \n"
803 " BNE loc_FF8DD29C \n"
804
805 "loc_FF8DD28C:\n"
806 " LDR R0, [SP, #0x28] \n"
807 " ADD R1, SP, #0xC \n"
808 " BL sub_FF8DD0D4 \n"
809 " B loc_FF8DD228 \n"
810
811 "loc_FF8DD29C:\n"
812 " CMP R1, #0x31 \n"
813 " BNE loc_FF8DD2B4 \n"
814 " BL sub_FF8C68D4 \n"
815 " BL sub_FF8C774C \n"
816 " BL sub_FF8C722C \n"
817 " B loc_FF8DD228 \n"
818
819 "loc_FF8DD2B4:\n"
820 " CMP R1, #0x32 \n"
821 " BNE loc_FF8DD308 \n"
822 " LDR R0, [R6, #0x1C] \n"
823 " MOV R1, #4 \n"
824 " BL sub_FF829C0C /*_ClearEventFlag*/ \n"
825 " LDR R1, =0xFF8D8508 \n"
826 " LDR R0, =0xFFFFF400 \n"
827 " MOV R2, #4 \n"
828 " BL sub_FF8DE9D8 \n"
829 " BL sub_FF8C6568 \n"
830 " LDR R0, [R6, #0x1C] \n"
831 " MOV R2, R7 \n"
832 " MOV R1, #4 \n"
833 " BL sub_FF829A0C /*_WaitForAnyEventFlag*/ \n"
834 " TST R0, #1 \n"
835 " BEQ loc_FF8DD228 \n"
836 " LDR R2, =0x17DA \n"
837
838 "loc_FF8DD2F8:\n"
839 " LDR R1, =0xFF8D8CA4 /*'ExpDrv.c'*/ \n"
840 " MOV R0, #0 \n"
841 " BL _DebugAssert \n"
842 " B loc_FF8DD228 \n"
843
844 "loc_FF8DD308:\n"
845 " LDR R0, [SP, #0x28] \n"
846 " MOV R8, #1 \n"
847 " LDR R1, [R0] \n"
848 " CMP R1, #0x12 \n"
849 " CMPNE R1, #0x13 \n"
850 " BNE loc_FF8DD370 \n"
851 " LDR R1, [R0, #0x94] \n"
852 " ADD R1, R1, R1, LSL#1 \n"
853 " ADD R1, R0, R1, LSL#2 \n"
854 " SUB R1, R1, #8 \n"
855 " LDMIA R1, {R2,R3,R9} \n"
856 " STMIA R5, {R2,R3,R9} \n"
857 " BL sub_FF8DB520 \n"
858 " LDR R0, [SP, #0x28] \n"
859 " LDR R1, [R0, #0x94] \n"
860 " LDR R3, [R0, #0xAC] \n"
861 " LDR R2, [R0, #0xB0] \n"
862 " ADD R0, R0, #4 \n"
863 " BLX R3 \n"
864 " LDR R0, [SP, #0x28] \n"
865 " BL sub_FF8DECC0 \n"
866 " LDR R0, [SP, #0x28] \n"
867 " LDR R1, [R0, #0x94] \n"
868 " LDR R2, [R0, #0xB8] \n"
869 " LDR R3, [R0, #0xB4] \n"
870 " B loc_FF8DD68C \n"
871
872 "loc_FF8DD370:\n"
873 " CMP R1, #0x14 \n"
874 " CMPNE R1, #0x15 \n"
875 " CMPNE R1, #0x16 \n"
876 " CMPNE R1, #0x17 \n"
877 " CMPNE R1, #0x18 \n"
878 " BNE loc_FF8DD41C \n"
879 " ADD R3, SP, #0xC \n"
880 " MOV R2, SP \n"
881 " ADD R1, SP, #0x1C \n"
882 " BL sub_FF8DB790 \n"
883 " CMP R0, #1 \n"
884 " MOV R9, R0 \n"
885 " CMPNE R9, #5 \n"
886 " BNE loc_FF8DD3C8 \n"
887 " LDR R0, [SP, #0x28] \n"
888 " MOV R2, R9 \n"
889 " LDR R1, [R0, #0x94] \n"
890 " LDR R12, [R0, #0xAC] \n"
891 " LDR R3, [R0, #0xB0] \n"
892 " ADD R0, R0, #4 \n"
893 " BLX R12 \n"
894 " B loc_FF8DD400 \n"
895
896 "loc_FF8DD3C8:\n"
897 " LDR R0, [SP, #0x28] \n"
898 " CMP R9, #2 \n"
899 " LDR R1, [R0, #0x94] \n"
900 " LDR R12, [R0, #0xAC] \n"
901 " LDR R3, [R0, #0xB0] \n"
902 " CMPNE R9, #6 \n"
903 " MOV R2, R9 \n"
904 " ADD R0, R0, #4 \n"
905 " BNE loc_FF8DD414 \n"
906 " BLX R12 \n"
907 " LDR R0, [SP, #0x28] \n"
908 " MOV R2, SP \n"
909 " ADD R1, SP, #0x1C \n"
910 " BL sub_FF8DCDE0 \n"
911
912 "loc_FF8DD400:\n"
913 " LDR R0, [SP, #0x28] \n"
914 " LDR R2, [SP, #0xC] \n"
915 " MOV R1, R9 \n"
916 " BL sub_FF8DD064 \n"
917 " B loc_FF8DD694 \n"
918
919 "loc_FF8DD414:\n"
920 " BLX R12 \n"
921 " B loc_FF8DD694 \n"
922
923 "loc_FF8DD41C:\n"
924 " CMP R1, #0x28 \n"
925 " CMPNE R1, #0x29 \n"
926 " BNE loc_FF8DD468 \n"
927 " LDR R1, [R0, #0x94] \n"
928 " ADD R1, R1, R1, LSL#1 \n"
929 " ADD R1, R0, R1, LSL#2 \n"
930 " SUB R1, R1, #8 \n"
931 " LDMIA R1, {R2,R3,R9} \n"
932 " STMIA R5, {R2,R3,R9} \n"
933 " BL sub_FF8DA44C \n"
934 " LDR R0, [SP, #0x28] \n"
935 " LDR R1, [R0, #0x94] \n"
936 " LDR R3, [R0, #0xAC] \n"
937 " LDR R2, [R0, #0xB0] \n"
938 " ADD R0, R0, #4 \n"
939 " BLX R3 \n"
940 " LDR R0, [SP, #0x28] \n"
941 " BL sub_FF8DA89C \n"
942 " B loc_FF8DD694 \n"
943
944 "loc_FF8DD468:\n"
945 " ADD R1, R0, #4 \n"
946 " LDMIA R1, {R2,R3,R9} \n"
947 " STMIA R5, {R2,R3,R9} \n"
948 " LDR R1, [R0] \n"
949 " CMP R1, #0x2C \n"
950 " ADDCC PC, PC, R1, LSL#2 \n"
951 " B loc_FF8DD67C \n"
952 " B loc_FF8DD534 \n"
953 " B loc_FF8DD534 \n"
954 " B loc_FF8DD53C \n"
955 " B loc_FF8DD544 \n"
956 " B loc_FF8DD544 \n"
957 " B loc_FF8DD544 \n"
958 " B loc_FF8DD534 \n"
959 " B loc_FF8DD53C \n"
960 " B loc_FF8DD544 \n"
961 " B loc_FF8DD544 \n"
962 " B loc_FF8DD55C \n"
963 " B loc_FF8DD55C \n"
964 " B loc_FF8DD668 \n"
965 " B loc_FF8DD670 \n"
966 " B loc_FF8DD670 \n"
967 " B loc_FF8DD670 \n"
968 " B loc_FF8DD670 \n"
969 " B loc_FF8DD678 \n"
970 " B loc_FF8DD67C \n"
971 " B loc_FF8DD67C \n"
972 " B loc_FF8DD67C \n"
973 " B loc_FF8DD67C \n"
974 " B loc_FF8DD67C \n"
975 " B loc_FF8DD67C \n"
976 " B loc_FF8DD67C \n"
977 " B loc_FF8DD54C \n"
978 " B loc_FF8DD554 \n"
979 " B loc_FF8DD554 \n"
980 " B loc_FF8DD554 \n"
981 " B loc_FF8DD568 \n"
982 " B loc_FF8DD568 \n"
983 " B loc_FF8DD568 \n"
984 " B loc_FF8DD570 \n"
985 " B loc_FF8DD5A8 \n"
986 " B loc_FF8DD67C \n"
987 " B loc_FF8DD67C \n"
988 " B loc_FF8DD5E0 \n"
989 " B loc_FF8DD618 \n"
990 " B loc_FF8DD650 \n"
991 " B loc_FF8DD650 \n"
992 " B loc_FF8DD67C \n"
993 " B loc_FF8DD67C \n"
994 " B loc_FF8DD658 \n"
995 " B loc_FF8DD660 \n"
996
997 "loc_FF8DD534:\n"
998 " BL sub_FF8D8B24 \n"
999 " B loc_FF8DD67C \n"
1000
1001 "loc_FF8DD53C:\n"
1002 " BL sub_FF8D8DF0 \n"
1003 " B loc_FF8DD67C \n"
1004
1005 "loc_FF8DD544:\n"
1006 " BL sub_FF8D9030 \n"
1007 " B loc_FF8DD67C \n"
1008
1009 "loc_FF8DD54C:\n"
1010 " BL sub_FF8D9378 \n"
1011 " B loc_FF8DD67C \n"
1012
1013 "loc_FF8DD554:\n"
1014 " BL sub_FF8D95A8 \n"
1015 " B loc_FF8DD67C \n"
1016
1017 "loc_FF8DD55C:\n"
1018 " BL sub_FF8D9998_my \n"
1019 " MOV R8, #0 \n"
1020 " B loc_FF8DD67C \n"
1021
1022 "loc_FF8DD568:\n"
1023 " BL sub_FF8D9B6C \n"
1024 " B loc_FF8DD67C \n"
1025
1026 "loc_FF8DD570:\n"
1027 " LDRH R1, [R0, #4] \n"
1028 " STRH R1, [SP, #0x1C] \n"
1029 " LDRH R1, [R4, #2] \n"
1030 " STRH R1, [SP, #0x1E] \n"
1031 " LDRH R1, [R4, #4] \n"
1032 " STRH R1, [SP, #0x20] \n"
1033 " LDRH R1, [R4, #6] \n"
1034 " STRH R1, [SP, #0x22] \n"
1035 " LDRH R1, [R0, #0xC] \n"
1036 " STRH R1, [SP, #0x24] \n"
1037 " LDRH R1, [R4, #0xA] \n"
1038 " STRH R1, [SP, #0x26] \n"
1039 " BL sub_FF8DA0D4 \n"
1040 " B loc_FF8DD67C \n"
1041
1042 "loc_FF8DD5A8:\n"
1043 " LDRH R1, [R0, #4] \n"
1044 " STRH R1, [SP, #0x1C] \n"
1045 " LDRH R1, [R4, #2] \n"
1046 " STRH R1, [SP, #0x1E] \n"
1047 " LDRH R1, [R4, #4] \n"
1048 " STRH R1, [SP, #0x20] \n"
1049 " LDRH R1, [R4, #6] \n"
1050 " STRH R1, [SP, #0x22] \n"
1051 " LDRH R1, [R4, #8] \n"
1052 " STRH R1, [SP, #0x24] \n"
1053 " LDRH R1, [R4, #0xA] \n"
1054 " STRH R1, [SP, #0x26] \n"
1055 " BL sub_FF8DEA38 \n"
1056 " B loc_FF8DD67C \n"
1057
1058 "loc_FF8DD5E0:\n"
1059 " LDRH R1, [R4] \n"
1060 " STRH R1, [SP, #0x1C] \n"
1061 " LDRH R1, [R0, #6] \n"
1062 " STRH R1, [SP, #0x1E] \n"
1063 " LDRH R1, [R4, #4] \n"
1064 " STRH R1, [SP, #0x20] \n"
1065 " LDRH R1, [R4, #6] \n"
1066 " STRH R1, [SP, #0x22] \n"
1067 " LDRH R1, [R4, #8] \n"
1068 " STRH R1, [SP, #0x24] \n"
1069 " LDRH R1, [R4, #0xA] \n"
1070 " STRH R1, [SP, #0x26] \n"
1071 " BL sub_FF8DEB6C \n"
1072 " B loc_FF8DD67C \n"
1073
1074 "loc_FF8DD618:\n"
1075 " LDRH R1, [R4] \n"
1076 " STRH R1, [SP, #0x1C] \n"
1077 " LDRH R1, [R4, #2] \n"
1078 " STRH R1, [SP, #0x1E] \n"
1079 " LDRH R1, [R4, #4] \n"
1080 " STRH R1, [SP, #0x20] \n"
1081 " LDRH R1, [R4, #6] \n"
1082 " STRH R1, [SP, #0x22] \n"
1083 " LDRH R1, [R0, #0xC] \n"
1084 " STRH R1, [SP, #0x24] \n"
1085 " LDRH R1, [R4, #0xA] \n"
1086 " STRH R1, [SP, #0x26] \n"
1087 " BL sub_FF8DEC18 \n"
1088 " B loc_FF8DD67C \n"
1089
1090 "loc_FF8DD650:\n"
1091 " BL sub_FF8DA1E8 \n"
1092 " B loc_FF8DD67C \n"
1093
1094 "loc_FF8DD658:\n"
1095 " BL sub_FF8DA9B4 \n"
1096 " B loc_FF8DD67C \n"
1097
1098 "loc_FF8DD660:\n"
1099 " BL sub_FF8DAD4C \n"
1100 " B loc_FF8DD67C \n"
1101
1102 "loc_FF8DD668:\n"
1103 " BL sub_FF8DAFBC \n"
1104 " B loc_FF8DD67C \n"
1105
1106 "loc_FF8DD670:\n"
1107 " BL sub_FF8DB188 \n"
1108 " B loc_FF8DD67C \n"
1109
1110 "loc_FF8DD678:\n"
1111 " BL sub_FF8DB300 \n"
1112
1113 "loc_FF8DD67C:\n"
1114 " LDR R0, [SP, #0x28] \n"
1115 " LDR R1, [R0, #0x94] \n"
1116 " LDR R2, [R0, #0xB0] \n"
1117 " LDR R3, [R0, #0xAC] \n"
1118
1119 "loc_FF8DD68C:\n"
1120 " ADD R0, R0, #4 \n"
1121 " BLX R3 \n"
1122
1123 "loc_FF8DD694:\n"
1124 " LDR R0, [SP, #0x28] \n"
1125 " LDR R0, [R0] \n"
1126 " CMP R0, #0x10 \n"
1127 " BEQ loc_FF8DD6CC \n"
1128 " BGT loc_FF8DD6BC \n"
1129 " CMP R0, #1 \n"
1130 " CMPNE R0, #4 \n"
1131 " CMPNE R0, #0xE \n"
1132 " BNE loc_FF8DD700 \n"
1133 " B loc_FF8DD6CC \n"
1134
1135 "loc_FF8DD6BC:\n"
1136 " CMP R0, #0x13 \n"
1137 " CMPNE R0, #0x18 \n"
1138 " CMPNE R0, #0x1B \n"
1139 " BNE loc_FF8DD700 \n"
1140
1141 "loc_FF8DD6CC:\n"
1142 " LDRSH R0, [R4] \n"
1143 " CMN R0, #0xC00 \n"
1144 " LDRNESH R1, [R4, #8] \n"
1145 " CMNNE R1, #0xC00 \n"
1146 " STRNEH R0, [SP, #0x1C] \n"
1147 " STRNEH R1, [SP, #0x24] \n"
1148 " BNE loc_FF8DD700 \n"
1149 " ADD R0, SP, #0x10 \n"
1150 " BL sub_FF8DEEF0 /*_get_current_exp*/ \n"
1151 " LDRH R0, [SP, #0x10] \n"
1152 " STRH R0, [SP, #0x1C] \n"
1153 " LDRH R0, [SP, #0x18] \n"
1154 " STRH R0, [SP, #0x24] \n"
1155
1156 "loc_FF8DD700:\n"
1157 " LDR R0, [SP, #0x28] \n"
1158 " CMP R8, #1 \n"
1159 " BNE loc_FF8DD750 \n"
1160 " LDR R1, [R0, #0x94] \n"
1161 " MOV R2, #0xC \n"
1162 " ADD R1, R1, R1, LSL#1 \n"
1163 " ADD R0, R0, R1, LSL#2 \n"
1164 " SUB R8, R0, #8 \n"
1165 " LDR R0, =0x5A4B4 \n"
1166 " ADD R1, SP, #0x1C \n"
1167 " BL sub_006BA828 \n"
1168 " LDR R0, =0x5A4C0 \n"
1169 " MOV R2, #0xC \n"
1170 " ADD R1, SP, #0x1C \n"
1171 " BL sub_006BA828 \n"
1172 " LDR R0, =0x5A4CC \n"
1173 " MOV R2, #0xC \n"
1174 " MOV R1, R8 \n"
1175 " BL sub_006BA828 \n"
1176 " B loc_FF8DD7C8 \n"
1177
1178 "loc_FF8DD750:\n"
1179 " LDR R0, [R0] \n"
1180 " MOV R3, #1 \n"
1181 " CMP R0, #0xB \n"
1182 " BNE loc_FF8DD794 \n"
1183 " MOV R2, #0 \n"
1184 " STRD R2, [SP] \n"
1185 " MOV R2, R3 \n"
1186 " MOV R1, R3 \n"
1187 " MOV R0, #0 \n"
1188 " BL sub_FF8D88F0 \n"
1189 " MOV R3, #1 \n"
1190 " MOV R2, #0 \n"
1191 " STRD R2, [SP] \n"
1192 " MOV R2, R3 \n"
1193 " MOV R1, R3 \n"
1194 " MOV R0, #0 \n"
1195 " B loc_FF8DD7C4 \n"
1196
1197 "loc_FF8DD794:\n"
1198 " MOV R2, #1 \n"
1199 " STRD R2, [SP] \n"
1200 " MOV R3, R2 \n"
1201 " MOV R1, R2 \n"
1202 " MOV R0, R2 \n"
1203 " BL sub_FF8D88F0 \n"
1204 " MOV R3, #1 \n"
1205 " MOV R2, R3 \n"
1206 " MOV R1, R3 \n"
1207 " MOV R0, R3 \n"
1208 " STR R3, [SP] \n"
1209 " STR R3, [SP, #4] \n"
1210
1211 "loc_FF8DD7C4:\n"
1212 " BL sub_FF8D8A6C \n"
1213
1214 "loc_FF8DD7C8:\n"
1215 " LDR R0, [SP, #0x28] \n"
1216 " BL sub_FF8DE974 \n"
1217 " B loc_FF8DD154 \n"
1218 );
1219 }
1220
1221
1222
1223 void __attribute__((naked,noinline)) sub_FF8D9998_my() {
1224 asm volatile (
1225 " STMFD SP!, {R4-R8,LR} \n"
1226 " LDR R7, =0x447C \n"
1227 " MOV R4, R0 \n"
1228 " LDR R0, [R7, #0x1C] \n"
1229 " MOV R1, #0x3E \n"
1230 " BL sub_FF829C0C /*_ClearEventFlag*/ \n"
1231 " MOV R2, #0 \n"
1232 " LDRSH R0, [R4, #4] \n"
1233 " MOV R3, #1 \n"
1234 " MOV R1, R2 \n"
1235 " BL sub_FF8D8570 \n"
1236 " MOV R6, R0 \n"
1237 " LDRSH R0, [R4, #6] \n"
1238 " BL sub_FF8D8750 \n"
1239 " LDRSH R0, [R4, #8] \n"
1240 " BL sub_FF8D87A8 \n"
1241 " LDRSH R0, [R4, #0xA] \n"
1242 " BL sub_FF8D8800 \n"
1243 " LDRSH R0, [R4, #0xC] \n"
1244 " MOV R1, #0 \n"
1245 " BL sub_FF8D8858 \n"
1246 " MOV R5, R0 \n"
1247 " LDR R0, [R4] \n"
1248 " LDR R8, =0x5A4CC \n"
1249 " CMP R0, #0xB \n"
1250 " MOVEQ R6, #0 \n"
1251 " MOVEQ R5, R6 \n"
1252 " BEQ loc_FF8D9A30 \n"
1253 " CMP R6, #1 \n"
1254 " BNE loc_FF8D9A30 \n"
1255 " LDRSH R0, [R4, #4] \n"
1256 " LDR R1, =0xFF8D84C8 \n"
1257 " MOV R2, #2 \n"
1258 " BL sub_FF887A28 \n"
1259 " STRH R0, [R4, #4] \n"
1260 " MOV R0, #0 \n"
1261 " STR R0, [R7, #0x28] \n"
1262 " B loc_FF8D9A38 \n"
1263
1264 "loc_FF8D9A30:\n"
1265 " LDRH R0, [R8] \n"
1266 " STRH R0, [R4, #4] \n"
1267
1268 "loc_FF8D9A38:\n"
1269 " CMP R5, #1 \n"
1270 " LDRNEH R0, [R8, #8] \n"
1271 " BNE loc_FF8D9A54 \n"
1272 " LDRSH R0, [R4, #0xC] \n"
1273 " LDR R1, =0xFF8D854C \n"
1274 " MOV R2, #0x20 \n"
1275 " BL sub_FF8DE9F4 \n"
1276
1277 "loc_FF8D9A54:\n"
1278 " STRH R0, [R4, #0xC] \n"
1279 " LDRSH R0, [R4, #6] \n"
1280 " BL sub_FF8C65E0_my \n"
1281 " LDR PC, =0xFF8D9A60 \n"
1282 );
1283 }
1284
1285
1286
1287 void __attribute__((naked,noinline)) sub_FF8C65E0_my() {
1288 asm volatile (
1289 " STMFD SP!, {R4-R6,LR} \n"
1290 " LDR R5, =0x409C \n"
1291 " MOV R4, R0 \n"
1292 " LDR R0, [R5, #4] \n"
1293 " CMP R0, #1 \n"
1294 " LDRNE R2, =0x16B \n"
1295 " LDRNE R1, =0xFF8C6384 /*'Shutter.c'*/ \n"
1296 " MOVNE R0, #0 \n"
1297 " BLNE _DebugAssert \n"
1298 " CMN R4, #0xC00 \n"
1299 " LDREQSH R4, [R5, #2] \n"
1300 " CMN R4, #0xC00 \n"
1301 " LDREQ R2, =0x171 \n"
1302 " LDREQ R1, =0xFF8C6384 /*'Shutter.c'*/ \n"
1303 " MOVEQ R0, #0 \n"
1304 " STRH R4, [R5, #2] \n"
1305 " BLEQ _DebugAssert \n"
1306 " MOV R0, R4 \n"
1307 " BL apex2us \n"
1308 " LDR PC, =0xFF8C662C \n"
1309 );
1310 }