This source file includes following definitions.
- capt_seq_task
- sub_FF94242C_my
- sub_FF873374_my
- exp_drv_task
- sub_FF8B0758_my
- sub_FF8A2F04_my
1 #include "lolevel.h"
2 #include "platform.h"
3 #include "core.h"
4 #include "conf.h"
5
6 static long *nrflag = (long*)0x6718;
7
8 #include "../../../generic/capt_seq.c"
9
10
11
12
13 void __attribute__((naked,noinline)) capt_seq_task() {
14 asm volatile (
15 " STMFD SP!, {R3-R9,LR} \n"
16 " LDR R6, =0x2988 \n"
17 " LDR R4, =0x37B08 \n"
18 " MOV R9, #1 \n"
19 " MOV R7, #0 \n"
20 "loc_FF872F98: \n"
21 " LDR R0, [R6,#4] \n"
22 " MOV R2, #0 \n"
23 " MOV R1, SP \n"
24 " BL sub_FF837DC8 \n"
25 " TST R0, #1 \n"
26 " BEQ loc_FF872FC4 \n"
27 " LDR R1, =0x5B4 \n"
28 " LDR R0, =0xFF872B14 \n"
29 " BL sub_FF81E88C\n"
30 " BL sub_FF81E844\n"
31 " LDMFD SP!, {R3-R9,PC} \n"
32 "loc_FF872FC4: \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_FF873250 \n"
38
39 "loc_FF872FD8: B loc_FF873050 \n"
40 "loc_FF872FDC: B loc_FF8730B4 \n"
41 "loc_FF872FE0: B loc_FF8730F0 \n"
42 "loc_FF872FE4: B loc_FF873104 \n"
43 "loc_FF872FE8: B loc_FF8730FC \n"
44 "loc_FF872FEC: B loc_FF87310C \n"
45 "loc_FF872FF0: B loc_FF873114 \n"
46 "loc_FF872FF4: B loc_FF87311C \n"
47 "loc_FF872FF8: B loc_FF873174 \n"
48 "loc_FF872FFC: B loc_FF87319C \n"
49 "loc_FF873000: B loc_FF873180 \n"
50 "loc_FF873004: B loc_FF87318C \n"
51 "loc_FF873008: B loc_FF873194 \n"
52 "loc_FF87300C: B loc_FF8731A4 \n"
53 "loc_FF873010: B loc_FF8731AC \n"
54 "loc_FF873014: B loc_FF8731B4 \n"
55 "loc_FF873018: B loc_FF8731BC \n"
56 "loc_FF87301C: B loc_FF8731C4 \n"
57 "loc_FF873020: B loc_FF8731D0 \n"
58 "loc_FF873024: B loc_FF8731D8 \n"
59 "loc_FF873028: B loc_FF8731E0 \n"
60 "loc_FF87302C: B loc_FF8731E8 \n"
61 "loc_FF873030: B loc_FF8731F0 \n"
62 "loc_FF873034: B loc_FF8731FC \n"
63 "loc_FF873038: B loc_FF873204 \n"
64 "loc_FF87303C: B loc_FF87320C \n"
65 "loc_FF873040: B loc_FF873214 \n"
66 "loc_FF873044: B loc_FF87321C \n"
67 "loc_FF873048: B loc_FF873228 \n"
68 "loc_FF87304C: B loc_FF87325C \n"
69
70 "loc_FF873050: \n"
71 " BL sub_FF8738DC \n"
72 " BL shooting_expo_param_override\n"
73 " BL sub_FF870DCC \n"
74
75
76
77 "MOV R0, #0\n"
78 "STR R0, [R4,#0x24]\n"
79
80 " LDR R0, [R4,#0x24] \n"
81 " CMP R0, #0 \n"
82 " BEQ loc_FF87325C \n"
83 " BL sub_FF8727F4 \n"
84 " MOV R5, R0 \n"
85 " LDR R0, [R4,#0x24] \n"
86 " CMP R0, #0 \n"
87 " BEQ loc_FF873098 \n"
88 " MOV R0, #0xC \n"
89 " BL sub_FF877A20 \n"
90 " TST R0, #1 \n"
91 " STRNE R9, [R6,#0x10] \n"
92 " LDRNE R0, [R5,#8] \n"
93 " ORRNE R0, R0, #0x40000000 \n"
94 " STRNE R0, [R5,#8] \n"
95 " BNE loc_FF87325C \n"
96
97 "loc_FF873098: \n"
98 " MOV R0, R5 \n"
99 " BL sub_FF872A98 \n"
100 " MOV R0, R5 \n"
101
102
103 " BL sub_FF94242C_my \n"
104
105 " TST R0, #1 \n"
106 " STRNE R9, [R6,#0x10] \n"
107 " B loc_FF87325C \n"
108
109 "loc_FF8730B4: \n"
110 " LDR R0, [R4,#0x24] \n"
111 " CMP R0, #0 \n"
112 " BNE loc_FF8730E0 \n"
113 " MOV R0, #0xC \n"
114 " BL sub_FF877A20 \n"
115 " TST R0, #1 \n"
116 " LDRNE R0, [SP] \n"
117 " MOVNE R1, #1 \n"
118 " LDRNE R2, [R0,#0xC] \n"
119 " MOVNE R0, #1 \n"
120 " BNE loc_FF87316C \n"
121
122 "loc_FF8730E0: \n"
123 " LDR R0, [SP] \n"
124
125 " BL sub_FF873374_my \n"
126
127 "loc_FF8730E8: \n"
128 " STR R7, [R4,#0x24] \n"
129 " B loc_FF87325C \n"
130
131 "loc_FF8730F0: \n"
132 " MOV R0, #1 \n"
133 " BL sub_FF873B30 \n"
134 " B loc_FF87325C \n"
135
136 "loc_FF8730FC: \n"
137 " BL sub_FF87351C \n"
138 " B loc_FF8730E8 \n"
139
140 "loc_FF873104: \n"
141 " BL sub_FF8738BC \n"
142 " B loc_FF8730E8 \n"
143
144 "loc_FF87310C: \n"
145 " BL sub_FF8738C4 \n"
146 " B loc_FF87325C \n"
147
148 "loc_FF873114: \n"
149 " BL sub_FF873A50 \n"
150 " B loc_FF873178 \n"
151
152 "loc_FF87311C: \n"
153 " LDR R5, [R0,#0xC] \n"
154 " BL sub_FF8738CC \n"
155 " MOV R0, R5 \n"
156 " BL sub_FF941244 \n"
157 " TST R0, #1 \n"
158 " MOV R8, R0 \n"
159 " BNE loc_FF87315C \n"
160 " BL sub_FF884AD8 \n"
161 " STR R0, [R5,#0x18] \n"
162 " MOV R0, R5 \n"
163 " BL sub_FF942344 \n"
164 " MOV R0, R5 \n"
165 " BL sub_FF942740 \n"
166 " MOV R8, R0 \n"
167 " LDR R0, [R5,#0x18] \n"
168 " BL sub_FF884CDC \n"
169 "loc_FF87315C: \n"
170 " BL sub_FF8738BC \n"
171 " MOV R2, R5 \n"
172 " MOV R1, #9 \n"
173 " MOV R0, R8 \n"
174 "loc_FF87316C: \n"
175 " BL sub_FF8712B8 \n"
176 " B loc_FF87325C \n"
177
178 "loc_FF873174: \n"
179 " BL sub_FF873AB0 \n"
180 "loc_FF873178: \n"
181 " BL sub_FF870DCC \n"
182 " B loc_FF87325C \n"
183 "loc_FF873180: \n"
184 " LDR R0, [R4,#0x54] \n"
185 " BL sub_FF873EBC \n"
186 " B loc_FF87325C \n"
187 "loc_FF87318C: \n"
188 " BL sub_FF874170 \n"
189 " B loc_FF87325C \n"
190 "loc_FF873194: \n"
191 " BL sub_FF874204 \n"
192 " B loc_FF87325C \n"
193 "loc_FF87319C: \n"
194 " BL sub_FF8738BC \n"
195 " B loc_FF87325C \n"
196 "loc_FF8731A4: \n"
197 " BL sub_FF94145C \n"
198 " B loc_FF87325C \n"
199 "loc_FF8731AC: \n"
200 " BL sub_FF941670 \n"
201 " B loc_FF87325C \n"
202 "loc_FF8731B4: \n"
203 " BL sub_FF941708 \n"
204 " B loc_FF87325C \n"
205 "loc_FF8731BC: \n"
206 " BL sub_FF9417D8 \n"
207 " B loc_FF87325C \n"
208 "loc_FF8731C4: \n"
209 " MOV R0, #0 \n"
210 " BL sub_FF941A28 \n"
211 " B loc_FF87325C \n"
212 "loc_FF8731D0: \n"
213 " BL sub_FF941B78 \n"
214 " B loc_FF87325C \n"
215 "loc_FF8731D8: \n"
216 " BL sub_FF941C08 \n"
217 " B loc_FF87325C \n"
218 "loc_FF8731E0: \n"
219 " BL sub_FF941CC8 \n"
220 " B loc_FF87325C \n"
221 "loc_FF8731E8: \n"
222 " BL sub_FF873CA8 \n"
223 " B loc_FF87325C \n"
224 "loc_FF8731F0: \n"
225 " BL sub_FF873D48 \n"
226 " BL sub_FF835F18 \n"
227 " B loc_FF87325C \n"
228 "loc_FF8731FC: \n"
229 " BL sub_FF9418A4 \n"
230 " B loc_FF87325C \n"
231 "loc_FF873204: \n"
232 " BL sub_FF941910 \n"
233 " B loc_FF87325C \n"
234 "loc_FF87320C: \n"
235 " BL sub_FF8761D0 \n"
236 " B loc_FF87325C \n"
237 "loc_FF873214: \n"
238 " BL sub_FF876238 \n"
239 " B loc_FF87325C \n"
240 "loc_FF87321C: \n"
241 " BL sub_FF876294 \n"
242 " BL sub_FF876254 \n"
243 " B loc_FF87325C \n"
244 "loc_FF873228: \n"
245 " MOV R0, #1 \n"
246 " BL sub_FF942F84 \n"
247 " MOV R0, #1 \n"
248 " BL sub_FF943094 \n"
249 " LDRH R0, [R4,#0x98] \n"
250 " CMP R0, #4 \n"
251 " BNE loc_FF87325C \n"
252 " BL sub_FF876238 \n"
253 " BL sub_FF876674 \n"
254 " B loc_FF87325C \n"
255
256 "loc_FF873250: \n"
257 " LDR R1, =0x709 \n"
258 " LDR R0, =0xFF872B14 \n"
259 " BL sub_FF81E88C\n"
260
261 "loc_FF87325C: \n"
262 " LDR R0, [SP] \n"
263 " LDR R1, [R0,#4] \n"
264 " LDR R0, [R6] \n"
265 " BL sub_FF87C7DC \n"
266 " LDR R5, [SP] \n"
267 " LDR R0, [R5,#8] \n"
268 " CMP R0, #0 \n"
269 " LDREQ R1, =0x132 \n"
270 " LDREQ R0, =0xFF872B14 \n"
271 " BLEQ sub_FF81E88C\n"
272 " STR R7, [R5,#8] \n"
273 " B loc_FF872F98 \n"
274 );
275 }
276
277
278
279
280
281 void __attribute__((naked,noinline)) sub_FF94242C_my()
282 { asm volatile (
283 " STMFD SP!, {R0-R8,LR} \n"
284 " MOV R4, R0 \n"
285 " BL sub_FF943280 \n"
286 " MVN R1, #0 \n"
287 " BL sub_FF87C810 \n"
288 " LDR R5, =0x6718 \n"
289 " LDR R0, [R5,#0xC] \n"
290 " CMP R0, #0 \n"
291 " BNE loc_FF94247C \n"
292 " MOV R1, #1 \n"
293 " MOV R0, #0 \n"
294 " BL sub_FF838610 \n"
295 " STR R0, [R5,#0xC] \n"
296 " MOV R3, #0 \n"
297 " STR R3, [SP] \n"
298 " LDR R3, =0xFF941DB8 \n"
299 " LDR R0, =0xFF9426A8 \n"
300 " MOV R2, #0x400 \n"
301 " MOV R1, #0x17 \n"
302 " BL sub_FF8385DC \n"
303 "loc_FF94247C: \n"
304 " MOV R2, #4 \n"
305 " ADD R1, SP, #0x08 \n"
306 " MOV R0, #0x8A \n"
307 " BL sub_FF884948 \n"
308 " TST R0, #1 \n"
309 " LDRNE R1, =0x3C5 \n"
310 " LDRNE R0, =0xFF942050 \n"
311 " BLNE sub_FF81E88C \n"
312 " LDR R6, =0x37BCC \n"
313 " LDR R8, =0x37B08 \n"
314 " LDRSH R2, [R6,#0xC] \n"
315 " LDRSH R1, [R6,#0xE] \n"
316 " LDR R0, [R8,#0x8C] \n"
317 " BL sub_FF90B564 \n"
318 " BL sub_FF85BC98 \n"
319 " LDR R3, =0x6720 \n"
320 " STRH R0, [R4,#0xA4] \n"
321 " SUB R2, R3, #4 \n"
322 " STRD R2, [SP] \n"
323 " MOV R1, R0 \n"
324 " LDRH R0, [R8,#0x5C] \n"
325 " LDRSH R2, [R6,#0xC] \n"
326 " SUB R3, R3, #8 \n"
327 " BL sub_FF9448C4 \n"
328
329 " BL wait_until_remote_button_is_released \n"
330 " BL capt_seq_hook_set_nr \n"
331
332 " B sub_FF9424DC \n"
333 );
334 }
335
336
337
338
339
340 void __attribute__((naked,noinline)) sub_FF873374_my()
341 { asm volatile (
342 " STMFD SP!, {R4-R6,LR} \n"
343 " LDR R4, [R0,#0xC] \n"
344 " LDR R6, =0x37B08 \n"
345 " LDR R0, [R4,#8] \n"
346 " MOV R5, #0 \n"
347 " ORR R0, R0, #1 \n"
348 " STR R0, [R4,#8] \n"
349 " LDR R0, [R6,#0x24] \n"
350 " CMP R0, #0 \n"
351 " MOVEQ R0, #2 \n"
352 " BLEQ sub_FF86F4AC \n"
353 " BL sub_FF8738CC \n"
354 " LDR R0, [R6,#0x24] \n"
355 " CMP R0, #0 \n"
356 " BNE loc_FF87343C \n"
357 " MOV R0, #0 \n"
358 " BL sub_FF942F84 \n"
359 " MOV R0, #0 \n"
360 " BL sub_FF943094 \n"
361 " MOV R0, R4 \n"
362 " BL sub_FF873C50 \n"
363 " MOV R0, R4 \n"
364 " BL sub_FF940E94 \n"
365 " CMP R0, #0 \n"
366 " BEQ loc_FF873404 \n"
367 " BL sub_FF942FC4 \n"
368 " BL sub_FF9430D8 \n"
369 " BL sub_FF943128 \n"
370 " MOV R0, R4 \n"
371 " BL sub_FF940F78 \n"
372 " TST R0, #1 \n"
373 " MOVNE R2, R4 \n"
374 " LDMNEFD SP!, {R4-R6,LR} \n"
375 " MOVNE R1, #1 \n"
376 " BNE sub_FF8712B8 \n"
377 " B loc_FF873418 \n"
378 "loc_FF873404: \n"
379 " MOV R0, R4 \n"
380 " BL sub_FF940F14 \n"
381 " BL sub_FF942FC4 \n"
382 " BL sub_FF9430D8 \n"
383 " BL sub_FF943128 \n"
384 "loc_FF873418: \n"
385 " MOV R0, R4 \n"
386 " BL sub_FF872A98 \n"
387 " MOV R0, R4 \n"
388 " BL sub_FF942344 \n"
389 " BL sub_FF942DBC \n"
390 " MOV R0, R4 \n"
391
392
393 " BL sub_FF94242C_my \n"
394
395 " MOV R5, R0 \n"
396 " BL capt_seq_hook_raw_here \n"
397 " B loc_FF87344C \n"
398
399
400 "loc_FF87343C: \n"
401 " LDR R0, =0x2988 \n"
402 " LDR R0, [R0,#0x10] \n"
403 " CMP R0, #0 \n"
404 " MOVNE R5, #0x1D \n"
405
406 "loc_FF87344C: \n"
407 " BL sub_FF876238 \n"
408 " BL sub_FF876280 \n"
409 " BL sub_FF8762C0 \n"
410 " MOV R2, R4 \n"
411 " MOV R1, #1 \n"
412 " MOV R0, R5 \n"
413 " BL sub_FF8712B8 \n"
414 " BL sub_FF9426E4 \n"
415 " CMP R0, #0 \n"
416 " LDRNE R0, [R4,#8] \n"
417 " ORRNE R0, R0, #0x2000 \n"
418 " STRNE R0, [R4,#8] \n"
419 " LDMFD SP!, {R4-R6,PC} \n"
420 );
421 }
422
423
424
425
426
427 void __attribute__((naked,noinline)) exp_drv_task()
428 { asm volatile(
429 " STMFD SP!, {R4-R8,LR} \n"
430 " SUB SP, SP, #0x20 \n"
431 " LDR R8, =0xBB8 \n"
432 " LDR R7, =0x3C80 \n"
433 " LDR R5, =0x3C760 \n"
434 " MOV R0, #0 \n"
435 " ADD R6, SP, #0x10 \n"
436 " STR R0, [SP,#0x0C] \n"
437 "loc_FF8B2F94: \n"
438 " LDR R0, [R7,#0x20] \n"
439 " MOV R2, #0 \n"
440 " ADD R1, SP, #0x1C \n"
441 " BL sub_FF837DC8 \n"
442 " LDR R0, [SP,#0x0C] \n"
443 " CMP R0, #1 \n"
444 " BNE loc_FF8B2FE0 \n"
445 " LDR R0, [SP,#0x1C] \n"
446 " LDR R0, [R0] \n"
447 " CMP R0, #0x13 \n"
448 " CMPNE R0, #0x14 \n"
449 " CMPNE R0, #0x15 \n"
450 " CMPNE R0, #0x16 \n"
451 " BEQ loc_FF8B30FC \n"
452 " CMP R0, #0x28 \n"
453 " BEQ loc_FF8B30D4 \n"
454 " ADD R1, SP, #0x0C \n"
455 " MOV R0, #0 \n"
456 " BL sub_FF8B2F24 \n"
457 "loc_FF8B2FE0: \n"
458 " LDR R0, [SP,#0x1C] \n"
459 " LDR R1, [R0] \n"
460 " CMP R1, #0x2D \n"
461 " BNE loc_FF8B3010 \n"
462 " LDR R0, [SP,#0x1C] \n"
463 " BL sub_FF8B41E4 \n"
464 " LDR R0, [R7,#0x1C] \n"
465 " MOV R1, #1 \n"
466 " BL sub_FF87C7DC \n"
467 " BL sub_FF81E844 \n"
468 " ADD SP, SP, #0x20 \n"
469 " LDMFD SP!, {R4-R8,PC} \n"
470 "loc_FF8B3010: \n"
471 " CMP R1, #0x2C \n"
472 " BNE loc_FF8B302C \n"
473 " LDR R2, [R0,#0x8C]! \n"
474 " LDR R1, [R0,#4] \n"
475 " MOV R0, R1 \n"
476 " BLX R2 \n"
477 " B loc_FF8B3524 \n"
478 "loc_FF8B302C: \n"
479 " CMP R1, #0x26 \n"
480 " BNE loc_FF8B307C \n"
481 " LDR R0, [R7,#0x1C] \n"
482 " MOV R1, #0x80 \n"
483 " BL sub_FF87C810 \n"
484 " LDR R0, =0xFF8AF684 \n"
485 " MOV R1, #0x80 \n"
486 " BL sub_FF936254 \n"
487 " LDR R0, [R7,#0x1C] \n"
488 " MOV R2, R8 \n"
489 " MOV R1, #0x80 \n"
490 " BL sub_FF87C71C \n"
491 " TST R0, #1 \n"
492 " LDRNE R1, =0xE54 \n"
493 " BNE loc_FF8B30C0 \n"
494 "loc_FF8B3068: \n"
495 " LDR R1, [SP,#0x1C] \n"
496 " LDR R0, [R1,#0x90] \n"
497 " LDR R1, [R1,#0x8C] \n"
498 " BLX R1 \n"
499 " B loc_FF8B3524 \n"
500 "loc_FF8B307C: \n"
501 " CMP R1, #0x27 \n"
502 " BNE loc_FF8B30CC \n"
503 " ADD R1, SP, #0x0C \n"
504 " BL sub_FF8B2F24 \n"
505 " LDR R0, [R7,#0x1C] \n"
506 " MOV R1, #0x100 \n"
507 " BL sub_FF87C810 \n"
508 " LDR R0, =0xFF8AF694 \n"
509 " MOV R1, #0x100 \n"
510 " BL sub_FF9364DC \n"
511 " LDR R0, [R7,#0x1C] \n"
512 " MOV R2, R8 \n"
513 " MOV R1, #0x100 \n"
514 " BL sub_FF87C71C \n"
515 " TST R0, #1 \n"
516 " BEQ loc_FF8B3068 \n"
517 " LDR R1, =0xE5E \n"
518 "loc_FF8B30C0: \n"
519 " LDR R0, =0xFF8AFCF8 \n"
520 " BL sub_FF81E88C \n"
521 " B loc_FF8B3068 \n"
522 "loc_FF8B30CC: \n"
523 " CMP R1, #0x28 \n"
524 " BNE loc_FF8B30E4 \n"
525 "loc_FF8B30D4: \n"
526 " LDR R0, [SP,#0x1C] \n"
527 " ADD R1, SP, #0x0C \n"
528 " BL sub_FF8B2F24 \n"
529 " B loc_FF8B3068 \n"
530 "loc_FF8B30E4: \n"
531 " CMP R1, #0x2B \n"
532 " BNE loc_FF8B30FC \n"
533 " BL sub_FF8A3194 \n"
534 " BL sub_FF8A3DB8 \n"
535 " BL sub_FF8A390C \n"
536 " B loc_FF8B3068 \n"
537 "loc_FF8B30FC: \n"
538 " LDR R0, [SP,#0x1C] \n"
539 " MOV R4, #1 \n"
540 " LDR R1, [R0] \n"
541 " CMP R1, #0x11 \n"
542 " CMPNE R1, #0x12 \n"
543 " BNE loc_FF8B316C \n"
544 " LDR R1, [R0,#0x7C] \n"
545 " ADD R1, R1, R1,LSL#1 \n"
546 " ADD R1, R0, R1,LSL#2 \n"
547 " SUB R1, R1, #8 \n"
548 " LDMIA R1, {R2-R4} \n"
549 " STMIA R6, {R2-R4} \n"
550 " BL sub_FF8B1838 \n"
551 " LDR R0, [SP,#0x1C] \n"
552 " LDR R1, [R0,#0x7C] \n"
553 " LDR R3, [R0,#0x8C] \n"
554 " LDR R2, [R0,#0x90] \n"
555 " ADD R0, R0, #4 \n"
556 " BLX R3 \n"
557 " LDR R0, [SP,#0x1C] \n"
558 " BL sub_FF8B45A4 \n"
559 " LDR R0, [SP,#0x1C] \n"
560 " LDR R1, [R0,#0x7C] \n"
561 " LDR R3, [R0,#0x94] \n"
562 " LDR R2, [R0,#0x98] \n"
563 " ADD R0, R0, #4 \n"
564 " BLX R3 \n"
565 " B loc_FF8B3464 \n"
566 "loc_FF8B316C: \n"
567 " CMP R1, #0x13 \n"
568 " CMPNE R1, #0x14 \n"
569 " CMPNE R1, #0x15 \n"
570 " CMPNE R1, #0x16 \n"
571 " BNE loc_FF8B3224 \n"
572 " ADD R3, SP, #0x0C \n"
573 " MOV R2, SP \n"
574 " ADD R1, SP, #0x10 \n"
575 " BL sub_FF8B1B20 \n"
576 " CMP R0, #1 \n"
577 " MOV R4, R0 \n"
578 " CMPNE R4, #5 \n"
579 " BNE loc_FF8B31C0 \n"
580 " LDR R0, [SP,#0x1C] \n"
581 " MOV R2, R4 \n"
582 " LDR R1, [R0,#0x7C]! \n"
583 " LDR R12, [R0,#0x10]! \n"
584 " LDR R3, [R0,#4] \n"
585 " MOV R0, SP \n"
586 " BLX R12 \n"
587 " B loc_FF8B31F8 \n"
588 "loc_FF8B31C0: \n"
589 " LDR R0, [SP,#0x1C] \n"
590 " CMP R4, #2 \n"
591 " LDR R3, [R0,#0x90] \n"
592 " CMPNE R4, #6 \n"
593 " BNE loc_FF8B320C \n"
594 " LDR R12, [R0,#0x8C] \n"
595 " MOV R0, SP \n"
596 " MOV R2, R4 \n"
597 " MOV R1, #1 \n"
598 " BLX R12 \n"
599 " LDR R0, [SP,#0x1C] \n"
600 " MOV R2, SP \n"
601 " ADD R1, SP, #0x10 \n"
602 " BL sub_FF8B2C38 \n"
603 "loc_FF8B31F8: \n"
604 " LDR R0, [SP,#0x1C] \n"
605 " LDR R2, [SP,#0x0C] \n"
606 " MOV R1, R4 \n"
607 " BL sub_FF8B2EC4 \n"
608 " B loc_FF8B3464 \n"
609 "loc_FF8B320C: \n"
610 " LDR R1, [R0,#0x7C] \n"
611 " LDR R12, [R0,#0x8C] \n"
612 " ADD R0, R0, #4 \n"
613 " MOV R2, R4 \n"
614 " BLX R12 \n"
615 " B loc_FF8B3464 \n"
616 "loc_FF8B3224: \n"
617 " CMP R1, #0x22 \n"
618 " CMPNE R1, #0x23 \n"
619 " BNE loc_FF8B3270 \n"
620 " LDR R1, [R0,#0x7C] \n"
621 " ADD R1, R1, R1,LSL#1 \n"
622 " ADD R1, R0, R1,LSL#2 \n"
623 " SUB R1, R1, #8 \n"
624 " LDMIA R1, {R2-R4} \n"
625 " STMIA R6, {R2-R4} \n"
626 " BL sub_FF8B0D88 \n"
627 " LDR R0, [SP,#0x1C] \n"
628 " LDR R1, [R0,#0x7C] \n"
629 " LDR R3, [R0,#0x8C] \n"
630 " LDR R2, [R0,#0x90] \n"
631 " ADD R0, R0, #4 \n"
632 " BLX R3 \n"
633 " LDR R0, [SP,#0x1C] \n"
634 " BL sub_FF8B107C \n"
635 " B loc_FF8B3464 \n"
636 "loc_FF8B3270: \n"
637 " ADD R1, R0, #4 \n"
638 " LDMIA R1, {R2,R3,R12} \n"
639 " STMIA R6, {R2,R3,R12} \n"
640 " LDR R1, [R0] \n"
641 " CMP R1, #0x25 \n"
642 " ADDLS PC, PC, R1,LSL#2 \n"
643 " B loc_FF8B3444 \n"
644
645 "loc_FF8B328C: B loc_FF8B3324 \n"
646 "loc_FF8B3290: B loc_FF8B3324 \n"
647 "loc_FF8B3294: B loc_FF8B332C \n"
648 "loc_FF8B3298: B loc_FF8B3334 \n"
649 "loc_FF8B329C: B loc_FF8B3334 \n"
650 "loc_FF8B32A0: B loc_FF8B3334 \n"
651 "loc_FF8B32A4: B loc_FF8B3324 \n"
652 "loc_FF8B32A8: B loc_FF8B332C \n"
653 "loc_FF8B32AC: B loc_FF8B3334 \n"
654 "loc_FF8B32B0: B loc_FF8B3334 \n"
655 "loc_FF8B32B4: B loc_FF8B334C \n"
656 "loc_FF8B32B8: B loc_FF8B334C \n"
657 "loc_FF8B32BC: B loc_FF8B3438 \n"
658 "loc_FF8B32C0: B loc_FF8B3440 \n"
659 "loc_FF8B32C4: B loc_FF8B3440 \n"
660 "loc_FF8B32C8: B loc_FF8B3440 \n"
661 "loc_FF8B32CC: B loc_FF8B3440 \n"
662 "loc_FF8B32D0: B loc_FF8B3444 \n"
663 "loc_FF8B32D4: B loc_FF8B3444 \n"
664 "loc_FF8B32D8: B loc_FF8B3444 \n"
665 "loc_FF8B32DC: B loc_FF8B3444 \n"
666 "loc_FF8B32E0: B loc_FF8B3444 \n"
667 "loc_FF8B32E4: B loc_FF8B3444 \n"
668 "loc_FF8B32E8: B loc_FF8B333C \n"
669 "loc_FF8B32EC: B loc_FF8B3344 \n"
670 "loc_FF8B32F0: B loc_FF8B3344 \n"
671 "loc_FF8B32F4: B loc_FF8B3358 \n"
672 "loc_FF8B32F8: B loc_FF8B3358 \n"
673 "loc_FF8B32FC: B loc_FF8B3360 \n"
674 "loc_FF8B3300: B loc_FF8B3390 \n"
675 "loc_FF8B3304: B loc_FF8B33C0 \n"
676 "loc_FF8B3308: B loc_FF8B33F0 \n"
677 "loc_FF8B330C: B loc_FF8B3420 \n"
678 "loc_FF8B3310: B loc_FF8B3420 \n"
679 "loc_FF8B3314: B loc_FF8B3444 \n"
680 "loc_FF8B3318: B loc_FF8B3444 \n"
681 "loc_FF8B331C: B loc_FF8B3428 \n"
682 "loc_FF8B3320: B loc_FF8B3430 \n"
683
684 "loc_FF8B3324: \n"
685 " BL sub_FF8AFB9C \n"
686 " B loc_FF8B3444 \n"
687
688 "loc_FF8B332C: \n"
689 " BL sub_FF8AFE24 \n"
690 " B loc_FF8B3444 \n"
691
692 "loc_FF8B3334: \n"
693 " BL sub_FF8B002C \n"
694 " B loc_FF8B3444 \n"
695
696 "loc_FF8B333C: \n"
697 " BL sub_FF8B02A4 \n"
698 " B loc_FF8B3444 \n"
699
700 "loc_FF8B3344: \n"
701 " BL sub_FF8B049C \n"
702 " B loc_FF8B3444 \n"
703
704 "loc_FF8B334C: \n"
705
706 " BL sub_FF8B0758_my \n"
707
708 " MOV R4, #0 \n"
709 " B loc_FF8B3444 \n"
710
711 "loc_FF8B3358: \n"
712 " BL sub_FF8B0898 \n"
713 " B loc_FF8B3444 \n"
714
715 "loc_FF8B3360: \n"
716 " LDRH R1, [R0,#4] \n"
717 " STRH R1, [SP,#0x10] \n"
718 " LDRH R1, [R5,#2] \n"
719 " STRH R1, [SP,#0x12] \n"
720 " LDRH R1, [R5,#4] \n"
721 " STRH R1, [SP,#0x14] \n"
722 " LDRH R1, [R5,#6] \n"
723 " STRH R1, [SP,#0x18] \n"
724 " LDRH R1, [R0,#0xC] \n"
725 " STRH R1, [SP,#0x18] \n"
726 " BL sub_FF8B4258 \n"
727 " B loc_FF8B3444 \n"
728
729 "loc_FF8B3390: \n"
730 " LDRH R1, [R0,#4] \n"
731 " STRH R1, [SP,#0x10] \n"
732 " LDRH R1, [R5,#2] \n"
733 " STRH R1, [SP,#0x12] \n"
734 " LDRH R1, [R5,#4] \n"
735 " STRH R1, [SP,#0x14] \n"
736 " LDRH R1, [R5,#6] \n"
737 " STRH R1, [SP,#0x16] \n"
738 " LDRH R1, [R5,#8] \n"
739 " STRH R1, [SP,#0x18] \n"
740 " BL sub_FF8B43BC \n"
741 " B loc_FF8B3444 \n"
742
743 "loc_FF8B33C0: \n"
744 " LDRH R1, [R5] \n"
745 " STRH R1, [SP,#0x10] \n"
746 " LDRH R1, [R0,#6] \n"
747 " STRH R1, [SP,#0x12] \n"
748 " LDRH R1, [R5,#4] \n"
749 " STRH R1, [SP,#0x14] \n"
750 " LDRH R1, [R5,#6] \n"
751 " STRH R1, [SP,#0x16] \n"
752 " LDRH R1, [R5,#8] \n"
753 " STRH R1, [SP,#0x18] \n"
754 " BL sub_FF8B4468 \n"
755 " B loc_FF8B3444 \n"
756
757 "loc_FF8B33F0: \n"
758 " LDRH R1, [R5] \n"
759 " STRH R1, [SP,#0x10] \n"
760 " LDRH R1, [R5,#2] \n"
761 " STRH R1, [SP,#0x12] \n"
762 " LDRH R1, [R5,#4] \n"
763 " STRH R1, [SP,#0x14] \n"
764 " LDRH R1, [R5,#6] \n"
765 " STRH R1, [SP,#0x16] \n"
766 " LDRH R1, [R0,#0xC] \n"
767 " STRH R1, [SP,#0x18] \n"
768 " BL sub_FF8B4508 \n"
769 " B loc_FF8B3444 \n"
770
771 "loc_FF8B3420: \n"
772 " BL sub_FF8B0BE0 \n"
773 " B loc_FF8B3444 \n"
774
775 "loc_FF8B3428: \n"
776 " BL sub_FF8B1180 \n"
777 " B loc_FF8B3444 \n"
778
779 "loc_FF8B3430: \n"
780 " BL sub_FF8B13BC \n"
781 " B loc_FF8B3444 \n"
782
783 "loc_FF8B3438: \n"
784 " BL sub_FF8B1538 \n"
785 " B loc_FF8B3444 \n"
786
787 "loc_FF8B3440: \n"
788 " BL sub_FF8B16D4 \n"
789
790 "loc_FF8B3444: \n"
791 " LDR R0, [SP,#0x1C] \n"
792 " LDR R1, [R0,#0x7C] \n"
793 " LDR R3, [R0,#0x8C] \n"
794 " LDR R2, [R0,#0x90] \n"
795 " ADD R0, R0, #4 \n"
796 " BLX R3 \n"
797 " CMP R4, #1 \n"
798 " BNE loc_FF8B34AC \n"
799
800 "loc_FF8B3464: \n"
801 " LDR R0, [SP,#0x1C] \n"
802 " MOV R2, #0xC \n"
803 " LDR R1, [R0,#0x7C] \n"
804 " ADD R1, R1, R1,LSL#1 \n"
805 " ADD R0, R0, R1,LSL#2 \n"
806 " SUB R4, R0, #8 \n"
807 " LDR R0, =0x3C760 \n"
808 " ADD R1, SP, #0x10 \n"
809 " BL sub_FFB077DC \n"
810 " LDR R0, =0x3C76C \n"
811 " MOV R2, #0xC \n"
812 " ADD R1, SP, #0x10 \n"
813 " BL sub_FFB077DC \n"
814 " LDR R0, =0x3C778 \n"
815 " MOV R2, #0xC \n"
816 " MOV R1, R4 \n"
817 " BL sub_FFB077DC \n"
818 " B loc_FF8B3524 \n"
819 "loc_FF8B34AC: \n"
820 " LDR R0, [SP,#0x1C] \n"
821 " LDR R0, [R0] \n"
822 " CMP R0, #0xB \n"
823 " BNE loc_FF8B34F4 \n"
824 " MOV R3, #0 \n"
825 " STR R3, [SP] \n"
826 " MOV R3, #1 \n"
827 " MOV R2, #1 \n"
828 " MOV R1, #1 \n"
829 " MOV R0, #0 \n"
830 " BL sub_FF8AF9A4 \n"
831 " MOV R3, #0 \n"
832 " STR R3, [SP] \n"
833 " MOV R3, #1 \n"
834 " MOV R2, #1 \n"
835 " MOV R1, #1 \n"
836 " MOV R0, #0 \n"
837 " B loc_FF8B3520 \n"
838 "loc_FF8B34F4: \n"
839 " MOV R3, #1 \n"
840 " MOV R2, #1 \n"
841 " MOV R1, #1 \n"
842 " MOV R0, #1 \n"
843 " STR R3, [SP] \n"
844 " BL sub_FF8AF9A4 \n"
845 " MOV R3, #1 \n"
846 " MOV R2, #1 \n"
847 " MOV R1, #1 \n"
848 " MOV R0, #1 \n"
849 " STR R3, [SP] \n"
850
851 "loc_FF8B3520: \n"
852 " BL sub_FF8AFAE4 \n"
853
854 "loc_FF8B3524: \n"
855 " LDR R0, [SP,#0x1C] \n"
856 " BL sub_FF8B41E4 \n"
857 " B loc_FF8B2F94 \n"
858 );
859 }
860
861
862
863
864 void __attribute__((naked,noinline)) sub_FF8B0758_my()
865 { asm volatile(
866 " STMFD SP!, {R4-R8,LR} \n"
867 " LDR R7, =0x3C80 \n"
868 " MOV R4, R0 \n"
869 " LDR R0, [R7,#0x1C] \n"
870 " MOV R1, #0x3E \n"
871 " BL sub_FF87C810 \n"
872 " LDRSH R0, [R4,#4] \n"
873 " MOV R2, #0 \n"
874 " MOV R1, #0 \n"
875 " BL sub_FF8AF708 \n"
876 " MOV R6, R0 \n"
877 " LDRSH R0, [R4,#6] \n"
878 " BL sub_FF8AF818 \n"
879 " LDRSH R0, [R4,#8] \n"
880 " BL sub_FF8AF870 \n"
881 " LDRSH R0, [R4,#0xA] \n"
882 " BL sub_FF8AF8C8 \n"
883 " LDRSH R0, [R4,#0xC] \n"
884 " MOV R1, #0 \n"
885 " BL sub_FF8AF920 \n"
886 " MOV R5, R0 \n"
887 " LDR R0, [R4] \n"
888 " LDR R8, =0x3C778 \n"
889 " CMP R0, #0xB \n"
890 " MOVEQ R6, #0 \n"
891 " MOVEQ R5, #0 \n"
892 " BEQ loc_FF8B07EC \n"
893 " CMP R6, #1 \n"
894 " BNE loc_FF8B07EC \n"
895 " LDRSH R0, [R4,#4] \n"
896 " LDR R1, =0xFF8AF674 \n"
897 " MOV R2, #2 \n"
898 " BL sub_FF9363A8 \n"
899 " STRH R0, [R4,#4] \n"
900 " MOV R0, #0 \n"
901 " STR R0, [R7,#0x28] \n"
902 " B loc_FF8B07F4 \n"
903 "loc_FF8B07EC: \n"
904 " LDRH R0, [R8] \n"
905 " STRH R0, [R4,#4] \n"
906 "loc_FF8B07F4: \n"
907 " CMP R5, #1 \n"
908 " LDRNEH R0, [R8,#8] \n"
909 " BNE loc_FF8B0810 \n"
910 " LDRSH R0, [R4,#0xC] \n"
911 " LDR R1, =0xFF8AF6F8 \n"
912 " MOV R2, #0x20 \n"
913 " BL sub_FF8B4214 \n"
914 "loc_FF8B0810: \n"
915 " STRH R0, [R4,#0xC] \n"
916 " LDRSH R0, [R4,#6] \n"
917
918
919 " BL sub_FF8A2F04_my \n"
920
921 " LDRSH R0, [R4,#8] \n"
922 " MOV R1, #1 \n"
923 " BL sub_FF8A3654 \n"
924 " MOV R1, #0 \n"
925 " ADD R0, R4, #8 \n"
926 " BL sub_FF8A36DC \n"
927 " LDRSH R0, [R4,#0xE] \n"
928 " BL sub_FF8AB1C8 \n"
929 " LDR R4, =0xBB8 \n"
930 " CMP R6, #1 \n"
931 " BNE loc_FF8B0868 \n"
932 " LDR R0, [R7,#0x1C] \n"
933 " MOV R2, R4 \n"
934 " MOV R1, #2 \n"
935 " BL sub_FF87C71C \n"
936 " TST R0, #1 \n"
937 " SUBNE R1, R4, #0x620 \n"
938 " LDRNE R0, =0xFF8AFCF8 \n"
939 " BLNE sub_FF81E88C \n"
940 "loc_FF8B0868: \n"
941 " CMP R5, #1 \n"
942 " LDMNEFD SP!, {R4-R8,PC} \n"
943 " LDR R0, [R7,#0x1C] \n"
944 " MOV R2, R4 \n"
945 " MOV R1, #0x20 \n"
946 " BL sub_FF87C71C \n"
947 " TST R0, #1 \n"
948 " LDRNE R1, =0x59D \n"
949 " LDRNE R0, =0xFF8AFCF8 \n"
950 " LDMNEFD SP!, {R4-R8,LR} \n"
951 " BNE sub_FF81E88C \n"
952 " LDMFD SP!, {R4-R8,PC} \n"
953 );
954 }
955
956
957
958
959
960 void __attribute__((naked,noinline)) sub_FF8A2F04_my()
961 { asm volatile(
962 " STMFD SP!, {R4-R6,LR} \n"
963 " LDR R5, =0x3998 \n"
964 " MOV R4, R0 \n"
965 " LDR R0, [R5,#4] \n"
966 " CMP R0, #1 \n"
967 " LDRNE R1, =0x146 \n"
968 " LDRNE R0, =0xFF8A2D08 \n"
969 " BLNE sub_FF81E88C \n"
970 " CMN R4, #0xC00 \n"
971 " LDREQSH R4, [R5,#2] \n"
972 " CMN R4, #0xC00 \n"
973 " MOVEQ R1, #0x14C \n"
974 " LDREQ R0, =0xFF8A2D08 \n"
975 " STRH R4, [R5,#2] \n"
976 " BLEQ sub_FF81E88C \n"
977 " MOV R0, R4 \n"
978
979
980 " BL apex2us \n"
981
982 " MOV R4, R0 \n"
983 " BL sub_FF8D7B04 \n"
984 " MOV R0, R4 \n"
985 " BL sub_FF8DB778 \n"
986 " TST R0, #1 \n"
987 " LDRNE R1, =0x151 \n"
988 " LDMNEFD SP!, {R4-R6,LR} \n"
989 " LDRNE R0, =0xFF8A2D08 \n"
990 " BNE sub_FF81E88C \n"
991 " LDMFD SP!, {R4-R6,PC} \n"
992 );
993 }