This source file includes following definitions.
- change_video_tables
- set_quality
- movie_record_task
- sub_FF18D008_my
- sub_FF3056D8_my
1
2
3
4 #include "conf.h"
5
6 void change_video_tables(__attribute__ ((unused))int a, __attribute__ ((unused))int b) {}
7
8 void set_quality(int *x){
9 if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
10 }
11
12
13
14 void __attribute__((naked,noinline)) movie_record_task() {
15 asm volatile (
16 " STMFD SP!, {R2-R10,LR} \n"
17 " LDR R6, =0xFF18C73C \n"
18 " LDR R7, =0xFF18D424 \n"
19 " LDR R4, =0x85E0 \n"
20 " LDR R9, =0x67F \n"
21 " LDR R10, =0x2710 \n"
22 " MOV R8, #1 \n"
23 " MOV R5, #0 \n"
24
25 "loc_FF18D9EC:\n"
26 " LDR R0, [R4, #0x24] \n"
27 " MOV R2, #0 \n"
28 " ADD R1, SP, #4 \n"
29 " BL sub_FF02B184 /*_ReceiveMessageQueue*/ \n"
30 " LDR R0, [R4, #0x2C] \n"
31 " CMP R0, #0 \n"
32 " LDRNE R0, [R4, #0xC] \n"
33 " CMPNE R0, #2 \n"
34 " LDRNE R0, [R4, #0x44] \n"
35 " CMPNE R0, #6 \n"
36 " BNE loc_FF18DB28 \n"
37 " LDR R0, [SP, #4] \n"
38 " LDR R1, [R0] \n"
39 " SUB R1, R1, #2 \n"
40 " CMP R1, #0xD \n"
41 " ADDCC PC, PC, R1, LSL#2 \n"
42 " B loc_FF18DB28 \n"
43 " B loc_FF18DAC8 \n"
44 " B loc_FF18DAEC \n"
45 " B loc_FF18DAFC \n"
46 " B loc_FF18DB04 \n"
47 " B loc_FF18DB0C \n"
48 " B loc_FF18DB14 \n"
49 " B loc_FF18DAD0 \n"
50 " B loc_FF18DB1C \n"
51 " B loc_FF18DADC \n"
52 " B loc_FF18DB28 \n"
53 " B loc_FF18DB24 \n"
54 " B loc_FF18DA94 \n"
55 " B loc_FF18DA64 \n"
56
57 "loc_FF18DA64:\n"
58 " STR R5, [R4, #0x40] \n"
59 " STR R5, [R4, #0x30] \n"
60 " STR R5, [R4, #0x34] \n"
61 " STRH R5, [R4, #6] \n"
62 " STR R6, [R4, #0xD8] \n"
63 " STR R7, [R4, #0xF0] \n"
64 " LDR R0, [R4, #0xC] \n"
65 " ADD R0, R0, #1 \n"
66 " STR R0, [R4, #0xC] \n"
67 " MOV R0, #6 \n"
68 " STR R0, [R4, #0x44] \n"
69 " B loc_FF18DAB4 \n"
70
71 "loc_FF18DA94:\n"
72 " STR R5, [R4, #0x40] \n"
73 " STR R5, [R4, #0x30] \n"
74 " STR R6, [R4, #0xD8] \n"
75 " STR R7, [R4, #0xF0] \n"
76 " LDR R0, [R4, #0xC] \n"
77 " ADD R0, R0, #1 \n"
78 " STR R0, [R4, #0xC] \n"
79 " STR R8, [R4, #0x44] \n"
80
81 "loc_FF18DAB4:\n"
82 " LDR R2, =0xFF18BD78 \n"
83 " LDR R1, =0xC6A08 \n"
84 " LDR R0, =0xFF18BE8C \n"
85 " BL sub_FF0453E0 \n"
86 " B loc_FF18DB28 \n"
87
88 "loc_FF18DAC8:\n"
89 );
90 if (conf.ext_video_time == 1)
91 {
92 asm volatile (
93 " BL sub_FF18D008_my \n"
94 );
95 }
96 else
97 {
98 asm volatile (
99 " BL sub_FF18D008 \n"
100 );
101 }
102 asm volatile (
103 " B loc_FF18DB28 \n"
104
105 "loc_FF18DAD0:\n"
106 " LDR R1, [R4, #0xF0] \n"
107 " BLX R1 \n"
108
109 " LDR R0, =video_compression_rate\n"
110 " BL set_quality\n"
111
112 " B loc_FF18DB28 \n"
113
114 "loc_FF18DADC:\n"
115 " LDR R1, [R0, #0x18] \n"
116 " LDR R0, [R0, #4] \n"
117 " BL sub_FF306D88 \n"
118 " B loc_FF18DB28 \n"
119
120 "loc_FF18DAEC:\n"
121 " LDR R0, [R4, #0x44] \n"
122 " CMP R0, #5 \n"
123 " STRNE R8, [R4, #0x34] \n"
124 " B loc_FF18DB28 \n"
125
126 "loc_FF18DAFC:\n"
127 " BL sub_FF18C418 \n"
128 " B loc_FF18DB28 \n"
129
130 "loc_FF18DB04:\n"
131 " BL sub_FF18C12C \n"
132 " B loc_FF18DB28 \n"
133
134 "loc_FF18DB0C:\n"
135 " BL sub_FF18BEE4 \n"
136 " B loc_FF18DB28 \n"
137
138 "loc_FF18DB14:\n"
139 " BL sub_FF18BB0C \n"
140 " B loc_FF18DB28 \n"
141
142 "loc_FF18DB1C:\n"
143 " BL sub_FF18BA8C \n"
144 " B loc_FF18DB28 \n"
145
146 "loc_FF18DB24:\n"
147 " BL sub_FF18E078 \n"
148
149 "loc_FF18DB28:\n"
150 " LDR R1, [SP, #4] \n"
151 " LDR R3, =0xFF18B7F0 /*'MovieRecorder.c'*/ \n"
152 " STR R5, [R1] \n"
153 " STR R9, [SP] \n"
154 " LDR R0, [R4, #0x28] \n"
155 " MOV R2, R10 \n"
156 " BL sub_FF02BAFC /*_PostMessageQueueStrictly*/ \n"
157 " B loc_FF18D9EC \n"
158 );
159 }
160
161
162
163 void __attribute__((naked,noinline)) sub_FF18D008_my() {
164 asm volatile (
165 " STMFD SP!, {R0-R8,LR} \n"
166 " LDR R6, =0x85E0 \n"
167 " MOV R0, #0 \n"
168 " STR R0, [R6, #0x34] \n"
169 " STR R0, [R6, #0x38] \n"
170 " MOV R0, R6 \n"
171 " LDR R0, [R0, #0x5C] \n"
172 " LDRH R1, [R6, #6] \n"
173 " MOV R3, #0x3E8 \n"
174 " MUL R0, R3, R0 \n"
175 " CMP R1, #0 \n"
176 " MOV R2, #1 \n"
177 " BNE loc_FF18D04C \n"
178 " LDR R1, [R6, #0x90] \n"
179 " CMP R1, #0 \n"
180 " BNE loc_FF18D05C \n"
181 " B loc_FF18D054 \n"
182
183 "loc_FF18D04C:\n"
184 " CMP R1, #3 \n"
185 " BNE loc_FF18D05C \n"
186
187 "loc_FF18D054:\n"
188 " STR R2, [R6, #0x48] \n"
189 " B loc_FF18D068 \n"
190
191 "loc_FF18D05C:\n"
192 " MOV R1, #0x3E8 \n"
193 " BL sub_FF3B62EC /*__divmod_unsigned_int*/ \n"
194 " STR R0, [R6, #0x48] \n"
195
196 "loc_FF18D068:\n"
197 " LDR R4, =0xC6A3C \n"
198 " MOV R7, #2 \n"
199 " LDR R0, [R4, #8] \n"
200 " CMP R0, #0 \n"
201 " BEQ loc_FF18D0D0 \n"
202 " LDR R0, [R6, #0x58] \n"
203 " MOV R1, #4 \n"
204 " CMP R0, #0x18 \n"
205 " BEQ loc_FF18D264 \n"
206 " BGT loc_FF18D0AC \n"
207 " CMP R0, #0xA \n"
208 " CMPNE R0, #0xF \n"
209 " STREQ R7, [R4, #0x14] \n"
210 " BEQ loc_FF18D0D0 \n"
211 " CMP R0, #0x14 \n"
212 " BNE loc_FF18D0C4 \n"
213 " B loc_FF18D264 \n"
214
215 "loc_FF18D0AC:\n"
216 " CMP R0, #0x1E \n"
217 " BEQ loc_FF18D264 \n"
218 " CMP R0, #0x3C \n"
219 " MOVEQ R0, #8 \n"
220 " STREQ R0, [R4, #0x14] \n"
221 " BEQ loc_FF18D0D0 \n"
222
223 "loc_FF18D0C4:\n"
224 " LDR R1, =0x777 \n"
225 " LDR R0, =0xFF18B7F0 /*'MovieRecorder.c'*/ \n"
226 " BL _DebugAssert \n"
227
228 "loc_FF18D0D0:\n"
229 " LDR R2, =0x85E2 \n"
230 " LDR R0, [R6, #0xB8] \n"
231 " MOV R3, #2 \n"
232 " MOV R1, #0xAA \n"
233 " BL sub_FF08C388 \n"
234 " LDR R2, =0x85E4 \n"
235 " LDR R0, [R6, #0xB8] \n"
236 " MOV R3, #2 \n"
237 " MOV R1, #0xA9 \n"
238 " BL sub_FF08C388 \n"
239 " LDR R2, =0x8630 \n"
240 " LDR R0, [R6, #0xB8] \n"
241 " MOV R3, #4 \n"
242 " MOV R1, #0xA2 \n"
243 " BL sub_FF08C388 \n"
244 " LDR R2, =0x8634 \n"
245 " LDR R0, [R6, #0xB8] \n"
246 " MOV R3, #4 \n"
247 " MOV R1, #0xA3 \n"
248 " BL sub_FF08C388 \n"
249 " LDR R0, [R6, #0x90] \n"
250 " CMP R0, #0 \n"
251 " LDRNE R2, =0x86E0 \n"
252 " MOVNE R1, #0 \n"
253 " MOVNE R0, #0xD \n"
254 " BLNE _exmem_ualloc \n"
255 " LDR R0, [R6, #0x4C] \n"
256 " LDR R5, =0x86E0 \n"
257 " LDR R8, =0xC6A24 \n"
258 " CMP R0, #2 \n"
259 " CMPNE R0, #3 \n"
260 " BNE loc_FF18D1CC \n"
261 " LDR R0, [R6, #0x90] \n"
262 " CMP R0, #0 \n"
263 " LDRNE R0, =0x443FC000 \n"
264 " STRNE R0, [R5] \n"
265 " BNE loc_FF18D1CC \n"
266 " LDR R0, =0x460B8600 \n"
267 " LDR R1, =0x10959E0 \n"
268 " STR R0, [R5] \n"
269 " STR R1, [R5, #4] \n"
270 " LDMIA R8, {R1,R2} \n"
271 " STR R0, [R6, #0xA0] \n"
272 " MUL R1, R2, R1 \n"
273 " MOV R2, #0 \n"
274 " MOV R3, R1, LSL#1 \n"
275 " ADD R1, R0, R3 \n"
276 " STR R3, [R6, #0x9C] \n"
277 " STR R1, [R6, #0xA4] \n"
278 " STMEA SP, {R1-R3} \n"
279 " MOV R3, R2 \n"
280 " MOV R2, #9 \n"
281 " MOV R1, #5 \n"
282 " MOV R0, #0x10 \n"
283 " BL sub_FF2B0A24 \n"
284 " LDR R1, [R5] \n"
285 " LDR R0, [R6, #0x9C] \n"
286 " ADD R1, R1, R0, LSL#1 \n"
287 " STR R1, [R5] \n"
288 " LDR R1, [R5, #4] \n"
289 " RSB R0, R0, #0 \n"
290 " ADD R0, R1, R0, LSL#1 \n"
291 " STR R0, [R5, #4] \n"
292
293 "loc_FF18D1CC:\n"
294 " LDR R3, =0xFF18CFD4 \n"
295 " LDMIA R5, {R0,R1} \n"
296 " STR R3, [SP] \n"
297 " LDR R3, =0xC6A3C \n"
298 " SUB R2, R3, #0x18 \n"
299 " BL sub_FF3056D8_my \n"
300 " LDR R3, [R6, #0xB8] \n"
301 " STR R3, [SP] \n"
302 " LDR R0, [R6, #0x90] \n"
303 " LDRD R2, [R6, #0xF8] \n"
304 " BL sub_FF305AE8 \n"
305 " LDR R0, [R6, #0x64] \n"
306 " LDR R3, =0x8668 \n"
307 " AND R1, R0, #0xFF \n"
308 " LDR R0, [R8] \n"
309 " SUB R2, R3, #4 \n"
310 " BL sub_FF303404 \n"
311 " LDRH R0, [R6, #6] \n"
312 " CMP R0, #2 \n"
313 " LDREQ R0, =0xFF18CCA8 \n"
314 " STREQ R0, [R6, #0xF0] \n"
315 " LDR R0, [R6, #0x90] \n"
316 " CMP R0, #0 \n"
317 " LDREQ R1, =0xFF18C8EC \n"
318 " STREQ R1, [R6, #0xF0] \n"
319 " LDR R2, [R6, #0xC] \n"
320 " LDR R1, =0xFF414814 \n"
321 " CMP R2, #2 \n"
322 " BNE loc_FF18D26C \n"
323 " LDR R0, [R6, #0x4C] \n"
324 " ADD R0, R1, R0, LSL#3 \n"
325 " LDR R1, [R8, #0xC] \n"
326 " LDR R0, [R0, R1, LSL#2] \n"
327 " BL sub_FF2B6AC0 \n"
328 " LDR R0, =0xFF18C818 \n"
329 " MOV R1, #0 \n"
330 " BL sub_FF2B6FD4 \n"
331 " B loc_FF18D2A8 \n"
332
333 "loc_FF18D264:\n"
334 " STR R1, [R4, #0x14] \n"
335 " B loc_FF18D0D0 \n"
336
337 "loc_FF18D26C:\n"
338 " CMP R0, #0 \n"
339 " BNE loc_FF18D288 \n"
340 " LDR R1, [R6, #0x98] \n"
341 " MOV R0, #5 \n"
342 " BL sub_FF2B6FE8 \n"
343 " BL sub_FF2B7078 \n"
344 " B loc_FF18D2A8 \n"
345
346 "loc_FF18D288:\n"
347 " LDR R0, [R6, #0x4C] \n"
348 " ADD R0, R1, R0, LSL#3 \n"
349 " LDR R1, [R8, #0xC] \n"
350 " LDR R0, [R0, R1, LSL#2] \n"
351 " BL sub_FF2B5250 \n"
352 " LDR R0, =0xFF18C818 \n"
353 " MOV R1, #0 \n"
354 " BL sub_FF2B599C \n"
355
356 "loc_FF18D2A8:\n"
357 " LDR R0, [R4, #8] \n"
358 " CMP R0, #0 \n"
359 " BEQ loc_FF18D2DC \n"
360 " ADD R0, SP, #0xC \n"
361 " BL sub_FF306C04 \n"
362 " LDR R1, [R4, #0xC] \n"
363 " LDR R0, [SP, #0xC] \n"
364 " BL sub_FF05D07C \n"
365 " ADD R0, SP, #0xC \n"
366 " BL sub_FF306C04 \n"
367 " LDR R1, [R4, #0xC] \n"
368 " LDR R0, [SP, #0xC] \n"
369 " BL sub_FF05D07C \n"
370
371 "loc_FF18D2DC:\n"
372 " LDR R0, =0xFF18C7D0 \n"
373 " STR R7, [R6, #0x44]! \n"
374 " STR R0, [R6, #0x94] \n"
375 " LDMFD SP!, {R0-R8,PC} \n"
376 );
377 }
378
379
380
381 void __attribute__((naked,noinline)) sub_FF3056D8_my() {
382 asm volatile (
383 " STMFD SP!, {R0-R12,LR} \n"
384 " MOV R9, R0 \n"
385 " LDR R0, [R2, #0x10] \n"
386 " LDR R8, [SP, #0x38] \n"
387 " CMP R0, #0 \n"
388 " LDREQ R1, =0x32A \n"
389 " LDREQ R0, =0xFF3042EC /*'MovWriter.c'*/ \n"
390 " MOV R5, #0 \n"
391 " MOV R4, R2 \n"
392 " MOV R10, R3 \n"
393 " MOV R7, R5 \n"
394 " BLEQ _DebugAssert \n"
395 " LDR R6, =0xDE88 \n"
396 " LDR R0, [R4] \n"
397 " MOV R11, #0x1E \n"
398 " STR R0, [R6, #0xD0] \n"
399 " LDR R0, [R4, #4] \n"
400 " STR R0, [R6, #0xD4] \n"
401 " LDR R0, [R4, #0x10] \n"
402 " STR R0, [R6, #0xE0] \n"
403 " LDR R1, [R4, #8] \n"
404 " LDR R0, =0x7530 \n"
405 " CMP R1, #0xB \n"
406 " ADDCC PC, PC, R1, LSL#2 \n"
407 " B loc_FF3057C4 \n"
408 " B loc_FF305778 \n"
409 " B loc_FF305768 \n"
410 " B loc_FF3057A0 \n"
411 " B loc_FF3057B4 \n"
412 " B loc_FF3057C4 \n"
413 " B loc_FF3057C4 \n"
414 " B loc_FF3057C4 \n"
415 " B loc_FF3057C4 \n"
416 " B loc_FF305798 \n"
417 " B loc_FF305790 \n"
418 " B loc_FF305780 \n"
419
420 "loc_FF305768:\n"
421 " LDR R7, =0x5DC0 \n"
422 " MOV R0, #0x18 \n"
423 " STR R7, [R6, #0x12C] \n"
424 " B loc_FF3057AC \n"
425
426 "loc_FF305778:\n"
427 " MOV R7, R0 \n"
428 " B loc_FF305784 \n"
429
430 "loc_FF305780:\n"
431 " LDR R7, =0x5DC \n"
432
433 "loc_FF305784:\n"
434 " STR R0, [R6, #0x12C] \n"
435 " STR R11, [R6, #0xD8] \n"
436 " B loc_FF3057D0 \n"
437
438 "loc_FF305790:\n"
439 " LDR R7, =0xBB8 \n"
440 " B loc_FF305784 \n"
441
442 "loc_FF305798:\n"
443 " LDR R7, =0x1770 \n"
444 " B loc_FF305784 \n"
445
446 "loc_FF3057A0:\n"
447 " LDR R7, =0x57600000 \n"
448 " STR R0, [R6, #0x12C] \n"
449 " MOV R0, #0xF0 \n"
450
451 "loc_FF3057AC:\n"
452 " STR R0, [R6, #0xD8] \n"
453 " B loc_FF3057D0 \n"
454
455 "loc_FF3057B4:\n"
456 " STR R0, [R6, #0x12C] \n"
457 " LDR R7, =0x28800000 \n"
458 " MOV R0, #0x78 \n"
459 " B loc_FF3057AC \n"
460
461 "loc_FF3057C4:\n"
462 " LDR R1, =0x35B \n"
463 " LDR R0, =0xFF3042EC /*'MovWriter.c'*/ \n"
464 " BL _DebugAssert \n"
465
466 "loc_FF3057D0:\n"
467 " LDR R0, [R6, #0xD8] \n"
468 " LDR R1, =0x1C20 \n"
469 " MOV R0, R0, LSR#1 \n"
470 " STR R0, [R6, #0xDC] \n"
471 " LDR R0, [R10] \n"
472 " STR R0, [R6, #0xE4] \n"
473 " LDRH R0, [R10, #0x10] \n"
474 " STR R0, [R6, #0xE8] \n"
475 " LDR R0, [R10, #4] \n"
476 " STRH R0, [R6, #2] \n"
477 " LDR R0, [R10, #8] \n"
478 " STRH R0, [R6, #4] \n"
479 " LDR R0, [R10, #0x14] \n"
480 " STR R0, [R6, #0xEC] \n"
481 " STR R8, [R6, #0x128] \n"
482 " LDR R0, [R6, #0xD0] \n"
483 " CMP R0, #0x140 \n"
484 " MOVEQ R0, #0x20000 \n"
485 " MOVEQ R5, #1 \n"
486 " STREQ R0, [R6, #0xAC] \n"
487 " BEQ loc_FF305864 \n"
488 " CMP R0, #0x280 \n"
489 " LDREQ R0, =0x7A760 \n"
490 " MOVEQ R5, #2 \n"
491 " STREQ R0, [R6, #0xAC] \n"
492 " BEQ loc_FF305864 \n"
493 " CMP R0, #0x500 \n"
494 " LDREQ R0, =0x11DA50 \n"
495 " LDR R1, =0x1C20 \n"
496 " MOVEQ R5, #4 \n"
497 " STREQ R0, [R6, #0xAC] \n"
498 " BEQ loc_FF305864 \n"
499 " CMP R0, #0x780 \n"
500 " BNE loc_FF30586C \n"
501
502 " MOV R0, #2097152 \n"
503 " MOV R5, #5 \n"
504 " STR R0, [R6, #0xAC] \n"
505
506 "loc_FF305864:\n"
507 " STR R1, [R6, #0x4C] \n"
508 " B loc_FF305878 \n"
509
510 "loc_FF30586C:\n"
511 " LDR R1, =0x383 \n"
512 " LDR R0, =0xFF3042EC /*'MovWriter.c'*/ \n"
513 " BL _DebugAssert \n"
514
515 "loc_FF305878:\n"
516 " LDR R0, [R6, #0x4C] \n"
517 " LDR R1, =0x138D \n"
518 " MUL R0, R7, R0 \n"
519 " BL sub_FF3B62EC /*__divmod_unsigned_int*/ \n"
520 " ADD R0, R0, #1 \n"
521 " ADD R0, R0, R0, LSL#2 \n"
522 " STR R0, [R6, #0x48] \n"
523 " LDR R8, [R4, #8] \n"
524 " CMP R8, #2 \n"
525 " CMPNE R8, #3 \n"
526 " BNE loc_FF3058D0 \n"
527 " RSB R0, R7, R7, LSL#4 \n"
528 " LDR R1, =0x3E9 \n"
529 " MOV R0, R0, LSL#1 \n"
530 " STR R11, [R6, #0x4C] \n"
531 " BL sub_FF3B62EC /*__divmod_unsigned_int*/ \n"
532 " LDR R1, [R6, #0xE0] \n"
533 " MOV R7, R1 \n"
534 " BL sub_FF3B62EC /*__divmod_unsigned_int*/ \n"
535 " ADD R0, R0, #1 \n"
536 " MUL R0, R7, R0 \n"
537 " STR R0, [R6, #0x48] \n"
538
539 "loc_FF3058D0:\n"
540 " LDR R0, [R4, #0xC] \n"
541 " LDR R7, [R10, #0xC] \n"
542 " MOVS R1, R0 \n"
543 " MOV R0, R7, LSR#1 \n"
544 " STR R7, [R6, #0x94] \n"
545 " STR R0, [R6, #0x98] \n"
546 " ADD R0, R9, #3 \n"
547 " BIC R0, R0, #3 \n"
548 " STR R0, [R6, #0xF4] \n"
549 " LDR R2, [R6, #0x48] \n"
550 " MOVNE R1, #1 \n"
551 " MOV R2, R2, LSL#2 \n"
552 " ADD R3, R0, R2 \n"
553 " STR R3, [R6, #0xF8] \n"
554 " LDRH R12, [R6, #4] \n"
555 " LDR R0, [SP, #4] \n"
556 " ADD R2, R2, R3 \n"
557 " CMP R12, #0 \n"
558 " ADD R0, R0, R9 \n"
559 " BEQ loc_FF305A48 \n"
560 " STR R2, [R6, #0xFC] \n"
561 " LDR R3, [R6, #0x4C] \n"
562 " LDR R9, =0x11D628 \n"
563 " ADD R2, R2, R3, LSL#3 \n"
564 " ADD R2, R2, #0x1F \n"
565 " BIC R2, R2, #0x1F \n"
566 " STR R2, [R6, #0x100] \n"
567 " LDR R3, [R6, #0xAC] \n"
568 " LDR R11, =0xE008 \n"
569 " ADD R2, R2, R3 \n"
570 " ADD R3, R2, #0x100000 \n"
571 " STR R2, [R6, #0x78] \n"
572 " SUB R0, R0, R3 \n"
573 " RSB R2, R7, #0 \n"
574 " ADD R0, R0, R2, LSL#1 \n"
575 " MOV R0, R0, LSR#15 \n"
576 " MOV R0, R0, LSL#15 \n"
577 " STR R3, [R6, #0x104] \n"
578 " ADD R8, R3, R0 \n"
579 " STR R0, [R6, #0x110] \n"
580 " STR R8, [R6, #0x108] \n"
581 " MOV R2, #0 \n"
582 " ADD R10, R9, #0x10 \n"
583 " STR R8, [R6, #0x10C] \n"
584
585 "loc_FF305980:\n"
586 " MLA R0, R2, R7, R8 \n"
587 " ADD R12, R9, R2, LSL#3 \n"
588 " ADD R0, R0, #3 \n"
589 " BIC R0, R0, #3 \n"
590 " STR R0, [R11, R2, LSL#2] \n"
591 " MOV R0, #0 \n"
592 " ADD R6, R10, R2, LSL#3 \n"
593
594 "loc_FF30599C:\n"
595 " STR R3, [R12, R0, LSL#2] \n"
596 " STR R3, [R6, R0, LSL#2] \n"
597 " ADD R0, R0, #1 \n"
598 " CMP R0, #2 \n"
599 " BLT loc_FF30599C \n"
600 " ADD R2, R2, #1 \n"
601 " CMP R2, #2 \n"
602 " BLT loc_FF305980 \n"
603 " LDRH R3, [R4, #0x14] \n"
604 " LDR R2, [R4, #8] \n"
605 " MOV R0, R5 \n"
606 " BL sub_FF0DA840 \n"
607 " LDR R1, =0xDE88 \n"
608 " LDR R2, [R1, #0x94] \n"
609 " ADD R0, R0, R2 \n"
610 " STR R0, [R1, #0x8C] \n"
611 " LDMFD SP!, {R0-R12,PC} \n"
612
613 "loc_FF305A48:\n"
614 " ADD R2, R2, #0x1F \n"
615 " BIC R2, R2, #0x1F \n"
616 " STR R2, [R6, #0x100] \n"
617 " LDR R3, [R6, #0xAC] \n"
618 " ADD R2, R2, R3 \n"
619 " SUB R0, R0, R2 \n"
620 " MOV R0, R0, LSR#15 \n"
621 " MOV R0, R0, LSL#15 \n"
622 " STR R2, [R6, #0x104] \n"
623 " STR R0, [R6, #0x110] \n"
624 " ADD R0, R0, R2 \n"
625 " STR R0, [R6, #0x108] \n"
626 " LDRH R3, [R4, #0x14] \n"
627 " MOV R2, R8 \n"
628 " MOV R0, R5 \n"
629 " BL sub_FF0DA840 \n"
630 " STR R0, [R6, #0x8C] \n"
631 " LDMFD SP!, {R0-R12,PC} \n"
632 );
633 }