This source file includes following definitions.
- change_video_tables
- set_quality
- movie_record_task
- movie_time
- sub_FF185D98_my
- sub_FF2E321C_my
1 #include "conf.h"
2
3 void change_video_tables(__attribute__ ((unused))int a, __attribute__ ((unused))int b) {}
4
5 void set_quality(int *x){
6 if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
7 }
8
9
10
11
12 void __attribute__((naked,noinline)) movie_record_task() {
13
14 asm volatile (
15 " STMFD SP!, {R2-R10,LR} \n"
16 " LDR R6, =0xFF1854B8 \n"
17 " LDR R7, =0xFF1861B4 \n"
18 " LDR R4, =0x6CC0 \n"
19 " LDR R9, =0x6D6 \n"
20 " LDR R10, =0x2710 \n"
21 " MOV R8, #1 \n"
22 " MOV R5, #0 \n"
23 "loc_FF186768:\n"
24 " LDR R0, [R4, #0x24] \n"
25 " MOV R2, #0 \n"
26 " ADD R1, SP, #4 \n"
27 " BL sub_FF02B314 \n"
28 " LDR R0, [R4, #0x2C] \n"
29 " CMP R0, #0 \n"
30 " LDRNE R0, [R4, #0xC] \n"
31 " CMPNE R0, #2 \n"
32 " LDRNE R0, [R4, #0x44] \n"
33 " CMPNE R0, #6 \n"
34 " BNE loc_FF1868A4 \n"
35 " LDR R0, [SP, #4] \n"
36 " LDR R1, [R0] \n"
37 " SUB R1, R1, #2 \n"
38 " CMP R1, #0xD \n"
39 " ADDCC PC, PC, R1, LSL #2 \n"
40 " B loc_FF1868A4 \n"
41 " B loc_FF186844 \n"
42 " B loc_FF186868 \n"
43 " B loc_FF186878 \n"
44 " B loc_FF186880 \n"
45 " B loc_FF186888 \n"
46 " B loc_FF186890 \n"
47 " B loc_FF18684C \n"
48 " B loc_FF186898 \n"
49 " B loc_FF186858 \n"
50 " B loc_FF1868A4 \n"
51 " B loc_FF1868A0 \n"
52 " B loc_FF186810 \n"
53 " B loc_FF1867E0 \n"
54 "loc_FF1867E0:\n"
55 " STR R5, [R4, #0x40] \n"
56 " STR R5, [R4, #0x30] \n"
57 " STR R5, [R4, #0x34] \n"
58 " STRH R5, [R4, #6] \n"
59 " STR R6, [R4, #0xD8] \n"
60 " STR R7, [R4, #0xF4] \n"
61 " LDR R0, [R4, #0xC] \n"
62 " ADD R0, R0, #1 \n"
63 " STR R0, [R4, #0xC] \n"
64 " MOV R0, #6 \n"
65 " STR R0, [R4, #0x44] \n"
66 " B loc_FF186830 \n"
67 "loc_FF186810:\n"
68 " STR R5, [R4, #0x40] \n"
69 " STR R5, [R4, #0x30] \n"
70 " STR R6, [R4, #0xD8] \n"
71 " STR R7, [R4, #0xF4] \n"
72 " LDR R0, [R4, #0xC] \n"
73 " ADD R0, R0, #1 \n"
74 " STR R0, [R4, #0xC] \n"
75 " STR R8, [R4, #0x44] \n"
76 "loc_FF186830:\n"
77 " LDR R2, =0xFF184A60 \n"
78 " LDR R1, =0xB1A28 \n"
79 " LDR R0, =0xFF184B74 \n"
80 " BL sub_FF045B24 \n"
81 " B loc_FF1868A4 \n"
82 "loc_FF186844:\n"
83
84
85 " BL movie_time\n"
86 "label_A:\n"
87
88 " B loc_FF1868A4 \n"
89 "loc_FF18684C:\n"
90 " LDR R1, [R4, #0xF4] \n"
91 " BLX R1 \n"
92 " LDR R0, =0x6D48-4 \n"
93 " BL set_quality \n"
94 " B loc_FF1868A4 \n"
95 "loc_FF186858:\n"
96 " LDR R1, [R0, #0x18] \n"
97 " LDR R0, [R0, #4] \n"
98 " BL sub_FF2E4780 \n"
99 " B loc_FF1868A4 \n"
100 "loc_FF186868:\n"
101 " LDR R0, [R4, #0x44] \n"
102 " CMP R0, #5 \n"
103 " STRNE R8, [R4, #0x34] \n"
104 " B loc_FF1868A4 \n"
105 "loc_FF186878:\n"
106 " BL sub_FF18512C \n"
107 " B loc_FF1868A4 \n"
108 "loc_FF186880:\n"
109 " BL sub_FF184E24 \n"
110 " B loc_FF1868A4 \n"
111 "loc_FF186888:\n"
112 " BL sub_FF184BCC \n"
113 " B loc_FF1868A4 \n"
114 "loc_FF186890:\n"
115 " BL sub_FF1847EC \n"
116 " B loc_FF1868A4 \n"
117 "loc_FF186898:\n"
118 " BL sub_FF18476C \n"
119 " B loc_FF1868A4 \n"
120 "loc_FF1868A0:\n"
121 " BL sub_FF186E1C \n"
122 "loc_FF1868A4:\n"
123 " LDR R1, [SP, #4] \n"
124 " LDR R3, =0xFF1844C0 \n"
125 " STR R5, [R1] \n"
126 " STR R9, [SP] \n"
127 " LDR R0, [R4, #0x28] \n"
128 " MOV R2, R10 \n"
129 " BL sub_FF02BC8C \n"
130 " B loc_FF186768 \n"
131 );
132 }
133
134 void __attribute__((naked,noinline)) movie_time() {
135 if( (int)conf.ext_video_time == 1 ) {
136 asm volatile (
137 "BL sub_FF185D98_my\n"
138 "B label_A\n"
139 );
140 } else {
141 asm volatile (
142 "BL sub_FF185D98\n"
143 "B label_A\n"
144 );
145 }
146 }
147
148
149
150 void __attribute__((naked,noinline)) sub_FF185D98_my() {
151
152 asm volatile (
153 " STMFD SP!, {R0-R8,LR} \n"
154 " LDR R6, =0x6CC0 \n"
155 " MOV R0, #0 \n"
156 " STR R0, [R6, #0x34] \n"
157 " STR R0, [R6, #0x38] \n"
158 " ADD R0, R6, #0 \n"
159 " LDR R0, [R0, #0x5C] \n"
160 " LDRH R1, [R6, #6] \n"
161 " MOV R3, #0x3E8 \n"
162 " MUL R0, R3, R0 \n"
163 " CMP R1, #0 \n"
164 " MOV R2, #1 \n"
165 " BNE loc_FF185DDC \n"
166 " LDR R1, [R6, #0x90] \n"
167 " CMP R1, #0 \n"
168 " BNE loc_FF185DEC \n"
169 " B loc_FF185DE4 \n"
170 "loc_FF185DDC:\n"
171 " CMP R1, #3 \n"
172 " BNE loc_FF185DEC \n"
173 "loc_FF185DE4:\n"
174 " STR R2, [R6, #0x48] \n"
175 " B loc_FF185DF8 \n"
176 "loc_FF185DEC:\n"
177 " MOV R1, #0x3E8 \n"
178 " BL sub_FF3A2F90 \n"
179 " STR R0, [R6, #0x48] \n"
180 "loc_FF185DF8:\n"
181 " LDR R4, =0xB1A5C \n"
182 " MOV R7, #2 \n"
183 " LDR R0, [R4, #8] \n"
184 " CMP R0, #0 \n"
185 " BEQ loc_FF185E60 \n"
186 " LDR R0, [R6, #0x58] \n"
187 " MOV R1, #4 \n"
188 " CMP R0, #0x18 \n"
189 " BEQ loc_FF185FF4 \n"
190 " BGT loc_FF185E3C \n"
191 " CMP R0, #0xA \n"
192 " CMPNE R0, #0xF \n"
193 " STREQ R7, [R4, #0x14] \n"
194 " BEQ loc_FF185E60 \n"
195 " CMP R0, #0x14 \n"
196 " BNE loc_FF185E54 \n"
197 " B loc_FF185FF4 \n"
198 "loc_FF185E3C:\n"
199 " CMP R0, #0x1E \n"
200 " BEQ loc_FF185FF4 \n"
201 " CMP R0, #0x3C \n"
202 " MOVEQ R0, #8 \n"
203 " STREQ R0, [R4, #0x14] \n"
204 " BEQ loc_FF185E60 \n"
205 "loc_FF185E54:\n"
206 " LDR R1, =0x7D9 \n"
207 " LDR R0, =0xFF1844C0 \n"
208
209 " BL _DebugAssert \n"
210 "loc_FF185E60:\n"
211 " LDR R2, =0x6CC2 \n"
212 " LDR R0, [R6, #0xB8] \n"
213 " MOV R3, #2 \n"
214 " MOV R1, #0xAA \n"
215 " BL sub_FF08A794 \n"
216 " LDR R2, =0x6CC4 \n"
217 " LDR R0, [R6, #0xB8] \n"
218 " MOV R3, #2 \n"
219 " MOV R1, #0xA9 \n"
220 " BL sub_FF08A794 \n"
221 " LDR R2, =0x6D10 \n"
222 " LDR R0, [R6, #0xB8] \n"
223 " MOV R3, #4 \n"
224 " MOV R1, #0xA2 \n"
225 " BL sub_FF08A794 \n"
226 " LDR R2, =0x6D14 \n"
227 " LDR R0, [R6, #0xB8] \n"
228 " MOV R3, #4 \n"
229 " MOV R1, #0xA3 \n"
230 " BL sub_FF08A794 \n"
231 " LDR R0, [R6, #0x90] \n"
232 " CMP R0, #0 \n"
233 " LDRNE R2, =0x6DC0 \n"
234 " MOVNE R1, #0 \n"
235 " MOVNE R0, #0xD \n"
236 " BLNE sub_FF084970 \n"
237 " LDR R0, [R6, #0x4C] \n"
238 " LDR R5, =0x6DC0 \n"
239 " LDR R8, =0xB1A44 \n"
240 " CMP R0, #2 \n"
241 " CMPNE R0, #3 \n"
242 " BNE loc_FF185F5C \n"
243 " LDR R0, [R6, #0x90] \n"
244 " CMP R0, #0 \n"
245 " LDRNE R0, =0x443FC000 \n"
246 " STRNE R0, [R5] \n"
247 " BNE loc_FF185F5C \n"
248 " LDR R0, =0x460B8600 \n"
249 " LDR R1, =0x10959E0 \n"
250 " STR R0, [R5] \n"
251 " STR R1, [R5, #4] \n"
252 " LDMIA R8, {R1,R2} \n"
253 " STR R0, [R6, #0xA0] \n"
254 " MUL R1, R2, R1 \n"
255 " MOV R2, #0 \n"
256 " MOV R3, R1, LSL #1 \n"
257 " ADD R1, R0, R3 \n"
258 " STR R3, [R6, #0x9C] \n"
259 " STR R1, [R6, #0xA4] \n"
260 " STMEA SP, {R1-R3} \n"
261 " MOV R3, R2 \n"
262 " MOV R2, #9 \n"
263 " MOV R1, #5 \n"
264 " MOV R0, #0x10 \n"
265 " BL sub_FF29930C \n"
266 " LDR R1, [R5] \n"
267 " LDR R0, [R6, #0x9C] \n"
268 " ADD R1, R1, R0, LSL #1 \n"
269 " STR R1, [R5] \n"
270 " LDR R1, [R5, #4] \n"
271 " RSB R0, R0, #0 \n"
272 " ADD R0, R1, R0, LSL #1 \n"
273 " STR R0, [R5, #4] \n"
274 "loc_FF185F5C:\n"
275 " LDR R3, =0xFF185D64 \n"
276 " LDMIA R5, {R0,R1} \n"
277 " STR R3, [SP] \n"
278 " LDR R3, =0xB1A5C \n"
279 " SUB R2, R3, #0x18 \n"
280
281 " BL sub_FF2E321C_my \n"
282 " LDR R3, [R6, #0xB8] \n"
283 " STR R3, [SP] \n"
284 " LDR R0, [R6, #0x90] \n"
285 " LDRD R2, [R6, #0xF8] \n"
286 " BL sub_FF2E3658 \n"
287 " LDR R0, [R6, #0x64] \n"
288 " LDR R3, =0x6D48 \n"
289 " AND R1, R0, #0xFF \n"
290 " LDR R0, [R8] \n"
291 " SUB R2, R3, #4 \n"
292 " BL sub_FF2E11B8 \n"
293 " LDRH R0, [R6, #6] \n"
294 " CMP R0, #2 \n"
295 " LDREQ R0, =0xFF185A3C \n"
296 " STREQ R0, [R6, #0xF4] \n"
297 " LDR R0, [R6, #0x90] \n"
298 " CMP R0, #0 \n"
299 " LDREQ R1, =0xFF185670 \n"
300 " STREQ R1, [R6, #0xF4] \n"
301 " LDR R2, [R6, #0xC] \n"
302 " LDR R1, =0xFF3EC280 \n"
303 " CMP R2, #2 \n"
304 " BNE sub_FF185FFC \n"
305 " LDR R0, [R6, #0x4C] \n"
306 " ADD R0, R1, R0, LSL #3 \n"
307 " LDR R1, [R8, #0xC] \n"
308 " LDR R0, [R0, R1, LSL #2] \n"
309 " BL sub_FF29F37C \n"
310 " LDR R0, =0xFF185594 \n"
311 " MOV R1, #0 \n"
312 " BL sub_FF29F878 \n"
313 " B sub_FF186038 \n"
314 "loc_FF185FF4:\n"
315 " STR R1, [R4, #0x14] \n"
316 " B loc_FF185E60 \n"
317 );
318 }
319
320
321
322
323 void __attribute__((naked,noinline)) sub_FF2E321C_my() {
324
325 asm volatile (
326 " STMFD SP!, {R0-R12,LR} \n"
327 " MOV R9, R0 \n"
328 " LDR R0, [R2, #0x10] \n"
329 " LDR R8, [SP, #0x38] \n"
330 " CMP R0, #0 \n"
331 " LDREQ R1, =0x346 \n"
332 " LDREQ R0, =0xFF2E20A0 \n"
333 " MOV R5, #0 \n"
334 " MOV R4, R2 \n"
335 " MOV R10, R3 \n"
336 " MOV R7, R5 \n"
337 " BLEQ sub_FF00EDBC \n"
338 " LDR R6, =0xC318 \n"
339 " LDR R0, [R4] \n"
340 " MOV R11, #0x1E \n"
341 " STR R0, [R6, #0xD0] \n"
342 " LDR R0, [R4, #4] \n"
343 " STR R0, [R6, #0xD4] \n"
344 " LDR R0, [R4, #0x10] \n"
345 " STR R0, [R6, #0xE0] \n"
346 " LDR R1, [R4, #8] \n"
347 " LDR R0, =0x7530 \n"
348 " CMP R1, #0xB \n"
349 " ADDCC PC, PC, R1, LSL #2 \n"
350 " B loc_FF2E3308 \n"
351 " B loc_FF2E32BC \n"
352 " B loc_FF2E32AC \n"
353 " B loc_FF2E32E4 \n"
354 " B loc_FF2E32F8 \n"
355 " B loc_FF2E3308 \n"
356 " B loc_FF2E3308 \n"
357 " B loc_FF2E3308 \n"
358 " B loc_FF2E3308 \n"
359 " B loc_FF2E32DC \n"
360 " B loc_FF2E32D4 \n"
361 " B loc_FF2E32C4 \n"
362 "loc_FF2E32AC:\n"
363 " LDR R7, =0x5DC0 \n"
364 " MOV R0, #0x18 \n"
365 " STR R7, [R6, #0x12C] \n"
366 " B loc_FF2E32F0 \n"
367 "loc_FF2E32BC:\n"
368 " MOV R7, R0 \n"
369 " B loc_FF2E32C8 \n"
370 "loc_FF2E32C4:\n"
371 " LDR R7, =0x5DC \n"
372 "loc_FF2E32C8:\n"
373 " STR R0, [R6, #0x12C] \n"
374 " STR R11, [R6, #0xD8] \n"
375 " B loc_FF2E3314 \n"
376 "loc_FF2E32D4:\n"
377 " LDR R7, =0xBB8 \n"
378 " B loc_FF2E32C8 \n"
379 "loc_FF2E32DC:\n"
380 " LDR R7, =0x1770 \n"
381 " B loc_FF2E32C8 \n"
382 "loc_FF2E32E4:\n"
383 " LDR R7, =0x57600000 \n"
384 " STR R0, [R6, #0x12C] \n"
385 " MOV R0, #240 \n"
386 "loc_FF2E32F0:\n"
387 " STR R0, [R6, #0xD8] \n"
388 " B loc_FF2E3314 \n"
389 "loc_FF2E32F8:\n"
390 " STR R0, [R6, #0x12C] \n"
391 " LDR R7, =0x28800000 \n"
392 " MOV R0, #0x78 \n"
393 " B loc_FF2E32F0 \n"
394 "loc_FF2E3308:\n"
395 " LDR R1, =0x377 \n"
396 " LDR R0, =0xFF2E20A0 \n"
397
398 " BL _DebugAssert \n"
399 "loc_FF2E3314:\n"
400 " LDR R0, [R6, #0xD8] \n"
401 " LDR R1, =7200 \n"
402 " MOV R0, R0, LSR #1 \n"
403 " STR R0, [R6, #0xDC] \n"
404 " LDR R0, [R10] \n"
405 " STR R0, [R6, #0xE4] \n"
406 " LDRH R0, [R10, #0x10] \n"
407 " STR R0, [R6, #0xE8] \n"
408 " LDR R0, [R10, #4] \n"
409 " STRH R0, [R6, #2] \n"
410 " LDR R0, [R10, #8] \n"
411 " STRH R0, [R6, #4] \n"
412 " LDR R0, [R10, #0x14] \n"
413 " STR R0, [R6, #0xEC] \n"
414 " STR R8, [R6, #0x128] \n"
415 " LDR R0, [R6, #0xD0] \n"
416 " CMP R0, #0x140 \n"
417 " MOVEQ R0, #0x20000 \n"
418 " MOVEQ R5, #1 \n"
419 " STREQ R0, [R6, #0xAC] \n"
420 " BEQ loc_FF2E33A8 \n"
421 " CMP R0, #0x280 \n"
422 " LDREQ R0, =0x7A760 \n"
423 " MOVEQ R5, #2 \n"
424 " STREQ R0, [R6, #0xAC] \n"
425 " BEQ loc_FF2E33A8 \n"
426 " CMP R0, #0x500 \n"
427 " LDREQ R0, =0x11DA50 \n"
428 " LDR R1, =7200 \n"
429 " MOVEQ R5, #4 \n"
430 " STREQ R0, [R6, #0xAC] \n"
431 " BEQ loc_FF2E33A8 \n"
432 " CMP R0, #0x780 \n"
433 " BNE loc_FF2E33B0 \n"
434 " MOV R0, #2097152 \n"
435 " MOV R5, #5 \n"
436 " STR R0, [R6, #0xAC] \n"
437 "loc_FF2E33A8:\n"
438 " STR R1, [R6, #0x4C] \n"
439 " B loc_FF2E33BC \n"
440 "loc_FF2E33B0:\n"
441 " LDR R1, =0x39F \n"
442 " LDR R0, =0xFF2E20A0 \n"
443
444 " BL _DebugAssert \n"
445 "loc_FF2E33BC:\n"
446 " LDR R0, [R6, #0x4C] \n"
447 " LDR R1, =0x138D \n"
448 " MUL R0, R7, R0 \n"
449 " BL sub_FF3A2F90 \n"
450 " ADD R0, R0, #1 \n"
451 " ADD R0, R0, R0, LSL #2 \n"
452 " STR R0, [R6, #0x48] \n"
453 " LDR R8, [R4, #8] \n"
454 " CMP R8, #0xA \n"
455 " CMPNE R8, #9 \n"
456 " CMPNE R8, #8 \n"
457 " BNE loc_FF2E3400 \n"
458 " LDR R1, =0x3E9 \n"
459 " MUL R0, R1, R0 \n"
460 " MOV R1, R7 \n"
461 " BL sub_FF3A2F90 \n"
462 " STR R0, [R6, #0x4C] \n"
463 "loc_FF2E3400:\n"
464 " CMP R8, #2 \n"
465 " CMPNE R8, #3 \n"
466 " BNE loc_FF2E3438 \n"
467 " RSB R0, R7, R7, LSL #4 \n"
468 " LDR R1, =0x3E9 \n"
469 " MOV R0, R0, LSL #1 \n"
470 " STR R11, [R6, #0x4C] \n"
471 " BL sub_FF3A2F90 \n"
472 " LDR R1, [R6, #0xE0] \n"
473 " MOV R7, R1 \n"
474 " BL sub_FF3A2F90 \n"
475 " ADD R0, R0, #1 \n"
476 " MUL R0, R7, R0 \n"
477 " STR R0, [R6, #0x48] \n"
478 "loc_FF2E3438:\n"
479 " LDR R0, [R4, #0xC] \n"
480 " LDR R7, [R10, #0xC] \n"
481 " ADDS R1, R0, #0 \n"
482 " MOV R0, R7, LSR #1 \n"
483 " STR R7, [R6, #0x94] \n"
484 " STR R0, [R6, #0x98] \n"
485 " ADD R0, R9, #3 \n"
486 " BIC R0, R0, #3 \n"
487 " STR R0, [R6, #0xF4] \n"
488 " LDR R2, [R6, #0x48] \n"
489 " MOVNE R1, #1 \n"
490 " MOV R2, R2, LSL #2 \n"
491 " ADD R3, R0, R2 \n"
492 " STR R3, [R6, #0xF8] \n"
493 " LDRH R12, [R6, #4] \n"
494 " LDR R0, [SP, #4] \n"
495 " ADD R2, R2, R3 \n"
496 " CMP R12, #0 \n"
497 " ADD R0, R0, R9 \n"
498 " BEQ loc_FF2E35B8 \n"
499 " STR R2, [R6, #0xFC] \n"
500 " LDR R3, [R6, #0x4C] \n"
501 " LDR R9, =0x15E4BC \n"
502 " ADD R2, R2, R3, LSL #3 \n"
503 " ADD R2, R2, #0x1F \n"
504 " BIC R2, R2, #0x1F \n"
505 " STR R2, [R6, #0x100] \n"
506 " LDR R3, [R6, #0xAC] \n"
507 " LDR R11, =0xC498 \n"
508 " ADD R2, R2, R3 \n"
509 " ADD R3, R2, #0x100000 \n"
510 " STR R2, [R6, #0x78] \n"
511 " SUB R0, R0, R3 \n"
512 " RSB R2, R7, #0 \n"
513 " ADD R0, R0, R2, LSL #1 \n"
514 " MOV R0, R0, LSR #0xF \n"
515 " MOV R0, R0, LSL #0xF \n"
516 " STR R3, [R6, #0x104] \n"
517 " ADD R8, R3, R0 \n"
518 " STR R0, [R6, #0x110] \n"
519 " STR R8, [R6, #0x108] \n"
520 " MOV R2, #0 \n"
521 " ADD R10, R9, #0x10 \n"
522 " STR R8, [R6, #0x10C] \n"
523 "loc_FF2E34E8:\n"
524 " MLA R0, R2, R7, R8 \n"
525 " ADD R12, R9, R2, LSL #3 \n"
526 " ADD R0, R0, #3 \n"
527 " BIC R0, R0, #3 \n"
528 " STR R0, [R11, R2, LSL #2] \n"
529 " MOV R0, #0 \n"
530 " ADD R6, R10, R2, LSL #3 \n"
531 "loc_FF2E3504:\n"
532 " STR R3, [R12, R0, LSL #2] \n"
533 " STR R3, [R6, R0, LSL #2] \n"
534 " ADD R0, R0, #1 \n"
535 " CMP R0, #2 \n"
536 " BLT loc_FF2E3504 \n"
537 " ADD R2, R2, #1 \n"
538 " CMP R2, #2 \n"
539 " BLT loc_FF2E34E8 \n"
540 " LDRH R3, [R4, #0x14] \n"
541 " LDR R2, [R4, #8] \n"
542 " MOV R0, R5 \n"
543 " BL sub_FF0D5C48 \n"
544 " LDR R1, =0xC318 \n"
545 " LDR R2, [R1, #0x94] \n"
546 " ADD R0, R0, R2 \n"
547 " STR R0, [R1, #0x8C] \n"
548 " LDMFD SP!, {R0-R12,PC} \n"
549
550 "loc_FF2E35B8:\n"
551 " ADD R2, R2, #0x1F \n"
552 " BIC R2, R2, #0x1F \n"
553 " STR R2, [R6, #0x100] \n"
554 " LDR R3, [R6, #0xAC] \n"
555 " ADD R2, R2, R3 \n"
556 " SUB R0, R0, R2 \n"
557 " MOV R0, R0, LSR #0xF \n"
558 " MOV R0, R0, LSL #0xF \n"
559 " STR R2, [R6, #0x104] \n"
560 " STR R0, [R6, #0x110] \n"
561 " ADD R0, R0, R2 \n"
562 " STR R0, [R6, #0x108] \n"
563 " LDRH R3, [R4, #0x14] \n"
564 " MOV R2, R8 \n"
565 " MOV R0, R5 \n"
566 " BL sub_FF0D5C48 \n"
567 " STR R0, [R6, #0x8C] \n"
568 " LDMFD SP!, {R0-R12,PC} \n"
569 );
570 }