2021-06-27 19:25:29 +00:00
|
|
|
.include "asm/macros.inc"
|
|
|
|
.include "global.inc"
|
|
|
|
|
|
|
|
.text
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221E5C0
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E5C0: ; 0x0221E5C0
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, lr}
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221E6DC
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _0221E5CE
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r3, pc}
|
|
|
|
_0221E5CE:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r3, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221E5C0
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221E5D4
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E5D4: ; 0x0221E5D4
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r4, r5, lr}
|
|
|
|
sub sp, #0xc
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02007290
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4, #4]
|
|
|
|
cmp r0, #5
|
|
|
|
bhi _0221E68A
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
add r0, pc
|
|
|
|
ldrh r0, [r0, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x10
|
|
|
|
asr r0, r0, #0x10
|
2021-06-26 19:39:05 +00:00
|
|
|
add pc, r0
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221E5F2: ; jump table
|
|
|
|
.short _0221E5FE - _0221E5F2 - 2 ; case 0
|
|
|
|
.short _0221E604 - _0221E5F2 - 2 ; case 1
|
|
|
|
.short _0221E620 - _0221E5F2 - 2 ; case 2
|
|
|
|
.short _0221E62E - _0221E5F2 - 2 ; case 3
|
|
|
|
.short _0221E650 - _0221E5F2 - 2 ; case 4
|
|
|
|
.short _0221E66E - _0221E5F2 - 2 ; case 5
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221E5FE:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r4, #4]
|
|
|
|
b _0221E68A
|
|
|
|
_0221E604:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #6
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
str r1, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x5c
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
add r2, r1, #0
|
|
|
|
add r3, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200FA24
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r4, #4]
|
|
|
|
b _0221E68A
|
|
|
|
_0221E620:
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200FB5C
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _0221E68A
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r4, #4]
|
|
|
|
b _0221E68A
|
|
|
|
_0221E62E:
|
|
|
|
ldr r0, [r4, #8]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020935E0
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r0, #2
|
|
|
|
bne _0221E642
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r4, #0x28]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r4, #4]
|
|
|
|
b _0221E68A
|
|
|
|
_0221E642:
|
|
|
|
cmp r0, #3
|
|
|
|
bne _0221E68A
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r4, #0x28]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r4, #4]
|
|
|
|
b _0221E68A
|
|
|
|
_0221E650:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #6
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x5c
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
add r1, r0, #0
|
|
|
|
add r2, r0, #0
|
|
|
|
add r3, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200FA24
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #5
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r4, #4]
|
|
|
|
b _0221E68A
|
|
|
|
_0221E66E:
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200FB5C
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _0221E68A
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020072A4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r0, #0
|
|
|
|
add r0, r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221E98C
|
|
|
|
add sp, #0xc
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
pop {r4, r5, pc}
|
|
|
|
_0221E68A:
|
|
|
|
ldr r0, [r4, #8]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02093A40
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4, #0xc]
|
|
|
|
bl ov97_0221F010
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
add sp, #0xc
|
|
|
|
pop {r4, r5, pc}
|
|
|
|
thumb_func_end ov97_0221E5D4
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221E69C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E69C: ; 0x0221E69C
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02007290
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
mov r0, #0
|
|
|
|
add r1, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201A0FC
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4, #0xc]
|
|
|
|
bl ov97_0221F020
|
|
|
|
ldr r0, [r4, #8]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02093354
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02002DB4
|
|
|
|
bl sub_0200B244
|
|
|
|
bl sub_0202168C
|
|
|
|
bl sub_02022608
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4]
|
2021-08-12 19:28:01 +00:00
|
|
|
bl FreeToHeap
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-08-12 19:28:01 +00:00
|
|
|
bl FreeToHeap
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
pop {r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221E69C
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221E6DC
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E6DC: ; 0x0221E6DC
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020072A4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
_0221E6E6:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221E700
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _0221E6F4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
_0221E6F4:
|
|
|
|
ldr r0, [r4]
|
|
|
|
ldr r0, [r0, #4]
|
|
|
|
cmp r0, #0
|
|
|
|
beq _0221E6E6
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r3, r4, r5, pc}
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221E6DC
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221E700
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E700: ; 0x0221E700
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #0x24
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020072A4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, r0, #0
|
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #0x34
|
|
|
|
mov r2, #0x5c
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r5, [r7]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02007280
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
mov r2, #0x34
|
|
|
|
add r4, r0, #0
|
2021-08-10 19:47:40 +00:00
|
|
|
bl memset
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x5c
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201AC88
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4]
|
|
|
|
ldr r0, [r5]
|
|
|
|
str r0, [r4, #0x2c]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
add r0, #0x84
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
str r0, [r4, #0x30]
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221E7F4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x5c
|
|
|
|
mov r1, #3
|
|
|
|
mov r2, #0x13
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020932E0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x5c
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221EE84
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #0xc]
|
|
|
|
ldr r0, [r4]
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221E814
|
|
|
|
bl ov97_0221E834
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221E864
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r7]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r6, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0, #4]
|
|
|
|
cmp r0, #0
|
|
|
|
bne _0221E76A
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r6, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
_0221E76A:
|
|
|
|
ldr r0, [r5]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020270D8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074904
|
2021-06-27 18:48:56 +00:00
|
|
|
add r3, r0, #0
|
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
str r0, [sp, #4]
|
|
|
|
str r6, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x12
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221E7E4 ; =ov97_0221E91C
|
|
|
|
add r2, r7, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221E7E8 ; =ov97_0221E97C
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x14]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x10
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x18]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221E7EC ; =ov97_0221EC14
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x1c]
|
|
|
|
str r4, [sp, #0x20]
|
|
|
|
ldr r0, [r4, #8]
|
|
|
|
ldr r1, [r4]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02093440
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0203A994
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r2, [r4, #0x30]
|
|
|
|
ldrb r3, [r5, #0xf]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r2, r2, #0x18
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4, #0xc]
|
|
|
|
ldr r1, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsr r2, r2, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221EEA4
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221E7F0 ; =ov97_0221E88C
|
|
|
|
add r1, r4, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201A0FC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #4]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02020080
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x1e
|
|
|
|
mov r0, #0
|
|
|
|
lsl r1, r1, #4
|
|
|
|
mov r2, #0x5c
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02003030
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
|
|
|
mov r1, #0x5c
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02002CEC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x24
|
|
|
|
pop {r4, r5, r6, r7, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221E7E4: .word ov97_0221E91C
|
|
|
|
_0221E7E8: .word ov97_0221E97C
|
|
|
|
_0221E7EC: .word ov97_0221EC14
|
|
|
|
_0221E7F0: .word ov97_0221E88C
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221E700
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221E7F4
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E7F4: ; 0x0221E7F4
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, lr}
|
|
|
|
sub sp, #0x28
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r4, _0221E810 ; =0x0221FCCC
|
2021-06-18 12:29:26 +00:00
|
|
|
add r3, sp, #0
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #5
|
2021-06-18 12:29:26 +00:00
|
|
|
_0221E7FE:
|
2021-06-27 18:48:56 +00:00
|
|
|
ldmia r4!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
sub r2, r2, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
bne _0221E7FE
|
|
|
|
add r0, sp, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02022BE8
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x28
|
|
|
|
pop {r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221E810: .word 0x0221FCCC
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221E7F4
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221E814
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E814: ; 0x0221E814
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, lr}
|
|
|
|
sub sp, #0x10
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r4, _0221E830 ; =0x0221FCA8
|
2021-06-18 12:29:26 +00:00
|
|
|
add r3, sp, #0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r3, #0
|
|
|
|
ldmia r4!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
ldmia r4!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
add r0, r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201ACB0
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x10
|
|
|
|
pop {r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221E830: .word 0x0221FCA8
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221E814
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221E834
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E834: ; 0x0221E834
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, lr}
|
|
|
|
sub sp, #0x10
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r4, _0221E860 ; =_0221FC98
|
2021-06-18 12:29:26 +00:00
|
|
|
add r3, sp, #0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r3, #0
|
|
|
|
ldmia r4!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
ldmia r4!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
add r0, r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020215A0
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x14
|
|
|
|
mov r1, #0x5c
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02022588
|
|
|
|
bl sub_020216C8
|
|
|
|
bl sub_02022638
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x10
|
|
|
|
pop {r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221E860: .word _0221FC98
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221E834
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221E864
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E864: ; 0x0221E864
|
2021-06-18 12:29:26 +00:00
|
|
|
push {lr}
|
|
|
|
sub sp, #0x14
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020B78D4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x7e
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #0x20
|
2021-06-18 12:29:26 +00:00
|
|
|
str r3, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0x5c
|
2021-06-18 12:29:26 +00:00
|
|
|
str r2, [sp, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200B150
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x14
|
|
|
|
pop {pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221E864
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221E88C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E88C: ; 0x0221E88C
|
2021-06-27 19:11:25 +00:00
|
|
|
ldr r3, _0221E894 ; =sub_02093594
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r0, #8]
|
|
|
|
bx r3
|
|
|
|
nop
|
2021-06-27 19:11:25 +00:00
|
|
|
_0221E894: .word sub_02093594
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221E88C
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221E898
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E898: ; 0x0221E898
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r3, r4, r5, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074058
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xac
|
|
|
|
mov r2, #0
|
|
|
|
add r4, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E640
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _0221E908
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #5
|
|
|
|
mov r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E640
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r2, r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E640
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r5, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #0x4c
|
|
|
|
mov r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E640
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r5, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #0x70
|
|
|
|
mov r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E640
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r5, #0xa]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r5, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r5, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r5, #0xe]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #0x75
|
|
|
|
add r2, #0x18
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E640
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02070044
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r5, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #0x6f
|
|
|
|
mov r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E640
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r5, #0x12]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
_0221E908:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r5]
|
|
|
|
str r0, [r5, #4]
|
|
|
|
strh r0, [r5, #8]
|
|
|
|
strh r0, [r5, #0xa]
|
|
|
|
strh r0, [r5, #0xc]
|
|
|
|
strh r0, [r5, #0xe]
|
|
|
|
strh r0, [r5, #0x10]
|
|
|
|
strh r0, [r5, #0x12]
|
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
thumb_func_end ov97_0221E898
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221E91C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E91C: ; 0x0221E91C
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r3, r4, r5, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074058
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xac
|
|
|
|
mov r2, #0
|
|
|
|
add r5, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E640
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _0221E966
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
mov r1, #5
|
|
|
|
mov r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E640
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r2, [r4, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
mov r1, #0x4c
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E640
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
mov r1, #0x70
|
|
|
|
mov r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E640
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #0xa]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #0xc]
|
|
|
|
strh r0, [r4, #0xe]
|
|
|
|
strh r0, [r4, #0x10]
|
|
|
|
strh r0, [r4, #0x12]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
_0221E966:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r4]
|
|
|
|
str r0, [r4, #4]
|
|
|
|
strh r0, [r4, #8]
|
|
|
|
strh r0, [r4, #0xa]
|
|
|
|
strh r0, [r4, #0xc]
|
|
|
|
strh r0, [r4, #0xe]
|
|
|
|
strh r0, [r4, #0x10]
|
|
|
|
strh r0, [r4, #0x12]
|
|
|
|
pop {r3, r4, r5, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221E91C
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221E97C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E97C: ; 0x0221E97C
|
|
|
|
add r3, r0, #0
|
|
|
|
add r0, r1, #0
|
|
|
|
add r1, r2, #0
|
|
|
|
add r2, r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
ldr r3, _0221E988 ; =sub_02073F00
|
2021-06-26 19:39:05 +00:00
|
|
|
bx r3
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 19:11:25 +00:00
|
|
|
_0221E988: .word sub_02073F00
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221E97C
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221E98C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221E98C: ; 0x0221E98C
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #0x3c
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r5, #0x28]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r7, #4]
|
|
|
|
ldr r0, [r5, #0x28]
|
|
|
|
cmp r0, #0
|
|
|
|
bne _0221EA84
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x1e
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x14
|
|
|
|
add r4, r7, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
|
|
|
_0221E9B4:
|
|
|
|
ldr r6, [r5, #0x10]
|
|
|
|
ldr r0, [r7]
|
|
|
|
cmp r6, #0x12
|
|
|
|
bne _0221EA20
|
|
|
|
ldr r0, [r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074904
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r1, [r5, #0x14]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074644
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #5
|
|
|
|
mov r2, #0
|
|
|
|
add r6, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E540
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
|
|
|
add r2, r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E540
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r4, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
|
|
|
mov r1, #0x70
|
|
|
|
mov r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E540
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #0xe]
|
|
|
|
ldr r2, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
|
|
|
mov r1, #0x75
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E540
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0207003C
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4, #0x1c]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
|
|
|
mov r1, #0x6f
|
|
|
|
mov r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E540
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4, #0x1d]
|
|
|
|
ldr r0, [r7]
|
|
|
|
ldr r0, [r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074904
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r1, [r5, #0x14]
|
|
|
|
ldr r2, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #0x18
|
|
|
|
lsr r1, r1, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221EA88
|
|
|
|
b _0221EA6A
|
|
|
|
_0221EA20:
|
|
|
|
ldr r0, [r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020270D8
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r2, [r5, #0x14]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r6, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
add r3, sp, #0xc
|
|
|
|
bl ov97_0221E898
|
|
|
|
ldr r0, [sp, #0xc]
|
|
|
|
add r1, sp, #0x24
|
|
|
|
strh r0, [r4, #0xc]
|
|
|
|
ldr r0, [sp, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0xb
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [r4, #0x10]
|
|
|
|
add r0, sp, #0xc
|
|
|
|
ldrh r0, [r0, #0xa]
|
|
|
|
strh r0, [r4, #0xe]
|
|
|
|
ldr r0, [sp, #4]
|
2021-06-27 12:46:42 +00:00
|
|
|
bl StringCopyN
|
2021-06-26 19:39:05 +00:00
|
|
|
add r0, sp, #0xc
|
|
|
|
ldrh r0, [r0, #0x10]
|
|
|
|
strb r0, [r4, #0x1c]
|
|
|
|
add r0, sp, #0xc
|
|
|
|
ldrh r0, [r0, #0x12]
|
|
|
|
strb r0, [r4, #0x1d]
|
|
|
|
ldr r0, [r7]
|
|
|
|
ldr r0, [r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020270D8
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r1, [r5, #0x10]
|
|
|
|
ldr r2, [r5, #0x14]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074058
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r1, [sp]
|
|
|
|
bl ov97_0221EB38
|
|
|
|
_0221EA6A:
|
|
|
|
ldr r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, #8
|
|
|
|
add r0, #0x28
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, #0x28
|
|
|
|
add r0, #0x28
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
|
|
|
ldr r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
cmp r0, #3
|
|
|
|
blt _0221E9B4
|
|
|
|
_0221EA84:
|
|
|
|
add sp, #0x3c
|
|
|
|
pop {r4, r5, r6, r7, pc}
|
|
|
|
thumb_func_end ov97_0221E98C
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221EA88
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221EA88: ; 0x0221EA88
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r4, r5, r6, lr}
|
|
|
|
sub sp, #0x10
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r1, #0
|
|
|
|
add r4, r2, #0
|
|
|
|
add r6, r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r5, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074670
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
|
|
|
add r1, r5, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074644
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
add r0, sp, #0
|
|
|
|
add r2, sp, #8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #0x5c
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020732E4
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0
|
|
|
|
ldrh r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1d
|
|
|
|
lsr r0, r0, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4]
|
|
|
|
ldrh r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x11
|
|
|
|
lsr r0, r0, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4, #1]
|
|
|
|
ldrh r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x14
|
|
|
|
lsr r0, r0, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4, #2]
|
|
|
|
ldrh r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1a
|
|
|
|
lsr r0, r0, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4, #3]
|
|
|
|
ldrh r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x17
|
|
|
|
lsr r0, r0, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4, #4]
|
|
|
|
ldrh r3, [r4, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #7
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r2, [r1, #2]
|
2021-06-27 18:48:56 +00:00
|
|
|
bic r3, r0
|
|
|
|
mov r0, #7
|
|
|
|
and r0, r2
|
|
|
|
orr r0, r3
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #6]
|
|
|
|
ldrh r2, [r4, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x38
|
|
|
|
bic r2, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r0, [r1, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1d
|
|
|
|
lsr r0, r0, #0x1a
|
|
|
|
orr r0, r2
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #6]
|
|
|
|
ldrh r2, [r4, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221EB2C ; =0xFFFFFE3F
|
|
|
|
and r2, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r0, [r1, #5]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1d
|
|
|
|
lsr r0, r0, #0x17
|
|
|
|
orr r0, r2
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #6]
|
|
|
|
ldrh r2, [r4, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221EB30 ; =0xFFFFF1FF
|
|
|
|
and r2, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r0, [r1, #3]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1d
|
|
|
|
lsr r0, r0, #0x14
|
|
|
|
orr r0, r2
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #6]
|
|
|
|
ldrh r2, [r4, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221EB34 ; =0xFFFF8FFF
|
|
|
|
and r2, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r0, [r1, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1d
|
|
|
|
lsr r0, r0, #0x11
|
|
|
|
orr r0, r2
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #6]
|
|
|
|
add sp, #0x10
|
|
|
|
pop {r4, r5, r6, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221EB2C: .word 0xFFFFFE3F
|
|
|
|
_0221EB30: .word 0xFFFFF1FF
|
|
|
|
_0221EB34: .word 0xFFFF8FFF
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221EA88
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221EB38
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221EB38: ; 0x0221EB38
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r4, lr}
|
|
|
|
sub sp, #8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r0, #0
|
|
|
|
add r4, r1, #0
|
|
|
|
add r1, r2, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
add r0, sp, #0
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0
|
|
|
|
mov r3, #0x5c
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02073248
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0
|
|
|
|
ldrh r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1d
|
|
|
|
lsr r0, r0, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4]
|
|
|
|
ldrh r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x11
|
|
|
|
lsr r0, r0, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4, #1]
|
|
|
|
ldrh r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x14
|
|
|
|
lsr r0, r0, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4, #2]
|
|
|
|
ldrh r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1a
|
|
|
|
lsr r0, r0, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4, #3]
|
|
|
|
ldrh r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x17
|
|
|
|
lsr r0, r0, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4, #4]
|
|
|
|
ldrh r3, [r4, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #7
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r2, [r1, #2]
|
2021-06-27 18:48:56 +00:00
|
|
|
bic r3, r0
|
|
|
|
mov r0, #7
|
|
|
|
and r0, r2
|
|
|
|
orr r0, r3
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #6]
|
|
|
|
ldrh r2, [r4, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x38
|
|
|
|
bic r2, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r0, [r1, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1d
|
|
|
|
lsr r0, r0, #0x1a
|
|
|
|
orr r0, r2
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #6]
|
|
|
|
ldrh r2, [r4, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221EBCC ; =0xFFFFFE3F
|
|
|
|
and r2, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r0, [r1, #5]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1d
|
|
|
|
lsr r0, r0, #0x17
|
|
|
|
orr r0, r2
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #6]
|
|
|
|
ldrh r2, [r4, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221EBD0 ; =0xFFFFF1FF
|
|
|
|
and r2, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r0, [r1, #3]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1d
|
|
|
|
lsr r0, r0, #0x14
|
|
|
|
orr r0, r2
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #6]
|
|
|
|
ldrh r2, [r4, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221EBD4 ; =0xFFFF8FFF
|
|
|
|
and r2, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r0, [r1, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1d
|
|
|
|
lsr r0, r0, #0x11
|
|
|
|
orr r0, r2
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r4, #6]
|
|
|
|
add sp, #8
|
|
|
|
pop {r4, pc}
|
|
|
|
nop
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221EBCC: .word 0xFFFFFE3F
|
|
|
|
_0221EBD0: .word 0xFFFFF1FF
|
|
|
|
_0221EBD4: .word 0xFFFF8FFF
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221EB38
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221EBD8
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221EBD8: ; 0x0221EBD8
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r3, r4, lr}
|
|
|
|
sub sp, #0x14
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020730B4
|
2021-06-26 19:39:05 +00:00
|
|
|
add r0, sp, #0
|
|
|
|
ldrh r1, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #0x1a
|
|
|
|
lsr r1, r1, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r1, [r4]
|
|
|
|
ldrh r1, [r0, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #0x1a
|
|
|
|
lsr r1, r1, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r1, [r4, #1]
|
|
|
|
ldrh r1, [r0, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #0x1a
|
|
|
|
lsr r1, r1, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r1, [r4, #2]
|
|
|
|
ldrh r1, [r0, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #0x1a
|
|
|
|
lsr r1, r1, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r1, [r4, #3]
|
|
|
|
ldrh r0, [r0, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1a
|
|
|
|
lsr r0, r0, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4, #4]
|
|
|
|
add sp, #0x14
|
|
|
|
pop {r3, r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221EBD8
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221EC14
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221EC14: ; 0x0221EC14
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #0xc0
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r3, _0221EDE0 ; =0x0221FCB8
|
|
|
|
add r5, r2, #0
|
|
|
|
add r6, r0, #0
|
|
|
|
add r4, r1, #0
|
|
|
|
ldmia r3!, {r0, r1}
|
2021-06-26 19:39:05 +00:00
|
|
|
add r2, sp, #0x5c
|
2021-06-27 18:48:56 +00:00
|
|
|
stmia r2!, {r0, r1}
|
|
|
|
ldmia r3!, {r0, r1}
|
|
|
|
stmia r2!, {r0, r1}
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r3]
|
|
|
|
str r0, [r2]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
mvn r0, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r6, r0
|
|
|
|
beq _0221EC3A
|
|
|
|
cmp r4, r0
|
|
|
|
bne _0221EC3C
|
|
|
|
_0221EC3A:
|
|
|
|
b _0221EDCE
|
|
|
|
_0221EC3C:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
add r0, sp, #0x70
|
|
|
|
strb r1, [r0, #9]
|
|
|
|
cmp r6, #0x12
|
|
|
|
ldr r0, [r5, #0x2c]
|
|
|
|
bne _0221ED1C
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074904
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r4, #0
|
|
|
|
add r7, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074644
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
add r6, r0, #0
|
|
|
|
add r2, r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E540
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #0x70]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
|
|
|
mov r1, #5
|
|
|
|
mov r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E540
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0x70
|
|
|
|
strh r0, [r1, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
|
|
|
mov r1, #0x70
|
|
|
|
mov r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E540
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0x70
|
|
|
|
strb r0, [r1, #7]
|
|
|
|
add r2, sp, #0x78
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
|
|
|
mov r1, #0x75
|
|
|
|
add r2, #2
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E540
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0207003C
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0x70
|
|
|
|
strb r0, [r1, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
|
|
|
mov r1, #0x6f
|
|
|
|
mov r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0206E540
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0x70
|
|
|
|
strb r0, [r1, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
add r1, r4, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074644
|
|
|
|
bl sub_02070DB0
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r4, #0x18
|
|
|
|
add r6, r0, #0
|
|
|
|
add r0, r7, #0
|
|
|
|
lsr r1, r1, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
add r2, sp, #0x24
|
|
|
|
bl ov97_0221EA88
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0x1c
|
|
|
|
bl ov97_0221EBD8
|
|
|
|
add r1, sp, #0x14
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
add r1, #2
|
|
|
|
add r2, r4, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074670
|
2021-06-26 19:39:05 +00:00
|
|
|
add r2, sp, #0x14
|
|
|
|
add r0, sp, #0x1c
|
|
|
|
add r1, sp, #0x24
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
add r3, sp, #0x70
|
|
|
|
bl ov97_0221EDE4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
add r6, sp, #0x70
|
|
|
|
add r7, sp, #0x5c
|
|
|
|
_0221ECE2:
|
|
|
|
ldr r0, [r5, #0x2c]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02031968
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r4, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrh r2, [r6, #4]
|
|
|
|
ldr r1, [r7, r1]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020319A8
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _0221ECFE
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r6, r4
|
|
|
|
add r1, #0x20
|
|
|
|
mov r0, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
b _0221ED04
|
|
|
|
_0221ECFE:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r6, r4
|
|
|
|
add r1, #0x20
|
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221ED04:
|
|
|
|
strb r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r4, r0, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r4, #5
|
|
|
|
blo _0221ECE2
|
|
|
|
ldr r0, [r5, #0xc]
|
|
|
|
add r1, sp, #0x70
|
|
|
|
bl ov97_0221EFD0
|
|
|
|
add sp, #0xc0
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
|
|
|
_0221ED1C:
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020270D8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r6, #0
|
|
|
|
add r2, r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
add r3, sp, #0x2c
|
|
|
|
bl ov97_0221E898
|
|
|
|
ldr r0, [sp, #0x30]
|
|
|
|
add r1, sp, #0x70
|
|
|
|
str r0, [sp, #0x70]
|
|
|
|
ldr r0, [sp, #0x2c]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0xb
|
2021-06-26 19:39:05 +00:00
|
|
|
strh r0, [r1, #4]
|
|
|
|
add r0, sp, #0
|
|
|
|
ldrh r0, [r0, #0x36]
|
|
|
|
strb r0, [r1, #7]
|
|
|
|
add r0, sp, #0x78
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0x44
|
2021-06-27 12:46:42 +00:00
|
|
|
bl StringCopyN
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0
|
|
|
|
ldrh r2, [r1, #0x3c]
|
|
|
|
add r0, sp, #0x70
|
|
|
|
strb r2, [r0, #6]
|
|
|
|
ldrh r1, [r1, #0x3e]
|
|
|
|
strb r1, [r0, #8]
|
|
|
|
ldr r0, [r5, #0x2c]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020270D8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r6, #0
|
|
|
|
add r2, r4, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074058
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0xc
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, #2
|
|
|
|
add r4, r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221EB38
|
|
|
|
add r1, sp, #4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r1, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221EBD8
|
|
|
|
add r0, sp, #0
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
mov r2, #5
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020D4994
|
2021-06-26 19:39:05 +00:00
|
|
|
add r0, sp, #4
|
|
|
|
add r1, sp, #0xc
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #2
|
|
|
|
add r1, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
add r2, sp, #0
|
|
|
|
add r3, sp, #0x70
|
|
|
|
bl ov97_0221EDE4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
add r6, sp, #0x70
|
|
|
|
add r7, sp, #0x5c
|
|
|
|
_0221ED94:
|
|
|
|
ldr r0, [r5, #0x2c]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02031968
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r4, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrh r2, [r6, #4]
|
|
|
|
ldr r1, [r7, r1]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020319A8
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _0221EDB0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r6, r4
|
|
|
|
add r1, #0x20
|
|
|
|
mov r0, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
b _0221EDB6
|
|
|
|
_0221EDB0:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r6, r4
|
|
|
|
add r1, #0x20
|
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221EDB6:
|
|
|
|
strb r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r4, r0, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r4, #5
|
|
|
|
blo _0221ED94
|
|
|
|
ldr r0, [r5, #0xc]
|
|
|
|
add r1, sp, #0x70
|
|
|
|
bl ov97_0221EFD0
|
|
|
|
add sp, #0xc0
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
|
|
|
_0221EDCE:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0x70
|
|
|
|
strb r0, [r1, #9]
|
|
|
|
ldr r0, [r5, #0xc]
|
|
|
|
bl ov97_0221EFD0
|
|
|
|
add sp, #0xc0
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
|
|
|
nop
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221EDE0: .word 0x0221FCB8
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221EC14
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221EDE4
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221EDE4: ; 0x0221EDE4
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
|
|
|
add r7, r2, #0
|
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrsb r0, [r7, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r1, #0
|
|
|
|
add r4, r3, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
|
|
|
ldrh r3, [r6, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r1, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r3, r3, #0x1d
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r2, [r6]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x29
|
|
|
|
lsr r3, r3, #0x1d
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0208B85C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r4, #0
|
|
|
|
add r1, #0x28
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrsb r0, [r7, r0]
|
|
|
|
str r0, [sp]
|
|
|
|
ldrh r3, [r6, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r1, [r5, #3]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r3, r3, #0x14
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r2, [r6, #3]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x31
|
|
|
|
lsr r3, r3, #0x1d
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0208B85C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r4, #0
|
|
|
|
add r1, #0x30
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrsb r0, [r7, r0]
|
|
|
|
str r0, [sp]
|
|
|
|
ldrh r3, [r6, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r1, [r5, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r3, r3, #0x11
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r2, [r6, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x39
|
|
|
|
lsr r3, r3, #0x1d
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0208B85C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r4, #0
|
|
|
|
add r1, #0x38
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrsb r0, [r7, r0]
|
|
|
|
str r0, [sp]
|
|
|
|
ldrh r3, [r6, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r1, [r5, #2]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r3, r3, #0x17
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r2, [r6, #2]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x41
|
|
|
|
lsr r3, r3, #0x1d
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0208B85C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r4, #0
|
|
|
|
add r1, #0x40
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrsb r0, [r7, r0]
|
|
|
|
str r0, [sp]
|
|
|
|
ldrh r3, [r6, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r1, [r5, #1]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r3, r3, #0x1a
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r2, [r6, #1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x49
|
|
|
|
lsr r3, r3, #0x1d
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0208B85C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, #0x48
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r0, [r4]
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
|
|
|
thumb_func_end ov97_0221EDE4
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221EE84
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221EE84: ; 0x0221EE84
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xbf
|
|
|
|
lsl r1, r1, #2
|
|
|
|
add r5, r0, #0
|
2021-08-12 19:28:01 +00:00
|
|
|
bl AllocFromHeap
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0xbf
|
|
|
|
mov r1, #0
|
|
|
|
lsl r2, r2, #2
|
|
|
|
add r4, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020D4994
|
2021-06-18 12:29:26 +00:00
|
|
|
str r5, [r4]
|
|
|
|
str r5, [r4, #0x78]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r3, r4, r5, pc}
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221EE84
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221EEA4
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221EEA4: ; 0x0221EEA4
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, r6, lr}
|
|
|
|
sub sp, #0x14
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [r5, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r2, #0
|
|
|
|
add r6, r3, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221F14C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #1
|
|
|
|
add r1, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r3, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x11
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xf
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
|
|
|
str r3, [sp, #0x10]
|
|
|
|
ldr r0, [r5, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, #8
|
|
|
|
mov r2, #4
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201D40C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #9
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xf
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x23
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, #0x18
|
|
|
|
mov r2, #4
|
|
|
|
mov r3, #0x16
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201D40C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xf
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #8
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x35
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, #0x28
|
|
|
|
mov r2, #5
|
|
|
|
mov r3, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201D40C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xf
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x45
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, #0x38
|
|
|
|
mov r2, #5
|
|
|
|
mov r3, #9
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201D40C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #5
|
|
|
|
add r1, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r2, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xa
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xf
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x4b
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x10]
|
|
|
|
ldr r0, [r5, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, #0x48
|
|
|
|
mov r3, #0xd
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201D40C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x13
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xc
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xf
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xaf
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, #0x58
|
|
|
|
mov r2, #5
|
|
|
|
mov r3, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201D40C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x1b
|
|
|
|
add r2, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
|
|
|
add r2, #0xfb
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BAF8
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, #0x6c]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BD08
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, #0x70]
|
|
|
|
ldr r1, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xb
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026354
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, #0x74]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x68
|
2021-06-18 12:29:26 +00:00
|
|
|
strh r4, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x6a
|
2021-06-18 12:29:26 +00:00
|
|
|
strh r6, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x78
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221F7DC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x78
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221F9E0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221F294
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
|
|
|
mov r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02022CC8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
|
|
|
mov r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02022CC8
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x14
|
|
|
|
pop {r3, r4, r5, r6, pc}
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221EEA4
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221EFD0
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221EFD0: ; 0x0221EFD0
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r3, r4, r5, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r2, [r4, #9]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r2, #2
|
|
|
|
bne _0221EFFA
|
|
|
|
bl ov97_0221F56C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221F428
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02022CC8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02022CC8
|
2021-06-26 19:39:05 +00:00
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
_0221EFFA:
|
|
|
|
bl ov97_0221F74C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
|
|
|
mov r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02022CC8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
|
|
|
mov r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02022CC8
|
2021-06-26 19:39:05 +00:00
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
thumb_func_end ov97_0221EFD0
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221F010
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221F010: ; 0x0221F010
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r3, lr}
|
|
|
|
ldr r0, [r0, #0x7c]
|
|
|
|
cmp r0, #0
|
|
|
|
beq _0221F01C
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0202457C
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F01C:
|
|
|
|
pop {r3, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221F010
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221F020
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221F020: ; 0x0221F020
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r7, #0x6c]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BB44
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r7, #0x70]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BDA0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r7, #0x74]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026380
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
add r0, #8
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201D520
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
add r0, #0x18
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201D520
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
add r0, #0x28
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201D520
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
add r0, #0x38
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201D520
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
add r0, #0x48
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201D520
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
add r0, #0x58
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201D520
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r7, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #4
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201BB4C
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r7, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #5
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201BB4C
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r7, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #6
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201BB4C
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r7, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #7
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201BB4C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r7, #0
|
|
|
|
add r5, #0x78
|
|
|
|
add r0, r5, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221F0E0
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F092:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x18
|
|
|
|
mul r0, r4
|
|
|
|
add r6, r5, r0
|
|
|
|
mov r0, #0x52
|
|
|
|
lsl r0, r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r6, r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200AEB0
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x53
|
|
|
|
lsl r0, r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r6, r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200B0A8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r4, r0, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r4, #3
|
|
|
|
blo _0221F092
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r6, #0x13
|
|
|
|
mov r4, #0
|
|
|
|
lsl r6, r6, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F0BC:
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r4, #2
|
|
|
|
add r0, r5, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r0, r6]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A0D0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r4, r0, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r4, #6
|
|
|
|
blo _0221F0BC
|
|
|
|
ldr r0, [r5, #4]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024504
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
2021-08-12 19:28:01 +00:00
|
|
|
bl FreeToHeap
|
2021-06-26 19:39:05 +00:00
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221F020
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221F0E0
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221F0E0: ; 0x0221F0E0
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r6, #0x6d
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
|
|
|
add r5, r0, #0
|
|
|
|
lsl r6, r6, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F0EE:
|
|
|
|
ldr r0, [r5, r6]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024758
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r4, #1
|
|
|
|
add r5, r5, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r4, #5
|
|
|
|
blt _0221F0EE
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
mov r6, #0x1e
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r7, [sp]
|
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r6, r6, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F106:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x77
|
|
|
|
lsl r0, r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r7, r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024758
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
|
|
|
add r5, r7, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F114:
|
|
|
|
ldr r0, [r5, r6]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024758
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r4, #1
|
|
|
|
add r5, r5, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r4, #5
|
|
|
|
blt _0221F114
|
|
|
|
ldr r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, #0x18
|
|
|
|
add r0, r0, #1
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
cmp r0, #5
|
|
|
|
blt _0221F106
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x95
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r0, r1]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024758
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x96
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r0, r1]
|
2021-08-12 19:28:01 +00:00
|
|
|
bl FreeToHeap
|
2021-06-26 19:39:05 +00:00
|
|
|
add sp, #8
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221F0E0
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221F14C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221F14C: ; 0x0221F14C
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, lr}
|
|
|
|
sub sp, #0x10
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
|
|
|
add r4, r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221F1D8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xf3
|
|
|
|
mov r2, #4
|
|
|
|
add r3, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r4, [sp, #4]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02007938
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xf3
|
|
|
|
add r2, r5, #0
|
|
|
|
mov r3, #7
|
2021-06-18 12:29:26 +00:00
|
|
|
str r4, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020078F0
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #6
|
|
|
|
lsl r0, r0, #8
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xf3
|
|
|
|
mov r1, #2
|
|
|
|
add r2, r5, #0
|
|
|
|
mov r3, #7
|
2021-06-18 12:29:26 +00:00
|
|
|
str r4, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02007914
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
mov r1, #7
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201BF7C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #6
|
|
|
|
lsl r0, r0, #8
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xf3
|
|
|
|
mov r1, #3
|
|
|
|
add r2, r5, #0
|
|
|
|
mov r3, #6
|
2021-06-18 12:29:26 +00:00
|
|
|
str r4, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02007914
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
mov r1, #6
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201BF7C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x1e
|
|
|
|
mov r0, #4
|
|
|
|
lsl r1, r1, #4
|
|
|
|
add r2, r4, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02003030
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x10
|
|
|
|
pop {r3, r4, r5, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221F14C
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221F1D8
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221F1D8: ; 0x0221F1D8
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, lr}
|
|
|
|
sub sp, #0x70
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r5, _0221F284 ; =0x0221FD20
|
|
|
|
add r4, r0, #0
|
|
|
|
ldmia r5!, {r0, r1}
|
2021-06-18 12:29:26 +00:00
|
|
|
add r3, sp, #0x54
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r3, #0
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r3]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201B1E4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #4
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201CAE0
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r5, _0221F288 ; =0x0221FD3C
|
2021-06-18 12:29:26 +00:00
|
|
|
add r3, sp, #0x38
|
2021-06-27 18:48:56 +00:00
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
add r2, r3, #0
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #5
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r3]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201B1E4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #5
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201CAE0
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r5, _0221F28C ; =0x0221FD04
|
2021-06-18 12:29:26 +00:00
|
|
|
add r3, sp, #0x1c
|
2021-06-27 18:48:56 +00:00
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
add r2, r3, #0
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #6
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r3]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201B1E4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #6
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201CAE0
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r5, _0221F290 ; =0x0221FD58
|
2021-06-18 12:29:26 +00:00
|
|
|
add r3, sp, #0
|
2021-06-27 18:48:56 +00:00
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
add r2, r3, #0
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #7
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r3]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201B1E4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #7
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0201CAE0
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x70
|
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
nop
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221F284: .word 0x0221FD20
|
|
|
|
_0221F288: .word 0x0221FD3C
|
|
|
|
_0221F28C: .word 0x0221FD04
|
|
|
|
_0221F290: .word 0x0221FD58
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221F1D8
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221F294
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221F294: ; 0x0221F294
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, lr}
|
|
|
|
sub sp, #0x10
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
add r2, r4, #0
|
|
|
|
add r2, #0x68
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrh r2, [r2]
|
|
|
|
ldr r0, [r4, #0x70]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
lsl r2, r2, #0x18
|
|
|
|
lsr r2, r2, #0x18
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200C944
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4, #0x70]
|
|
|
|
ldr r1, [r4, #0x6c]
|
|
|
|
ldr r3, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BC4C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #8
|
|
|
|
mov r1, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl FillWindowPixelBuffer
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xff
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221F424 ; =0x00010200
|
|
|
|
add r2, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #8
|
|
|
|
add r3, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020200FC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #8
|
2021-08-13 14:06:39 +00:00
|
|
|
bl CopyWindowToVram
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026380
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x18
|
|
|
|
mov r1, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl FillWindowPixelBuffer
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x6a
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrh r0, [r0]
|
|
|
|
cmp r0, #0
|
|
|
|
beq _0221F32A
|
|
|
|
ldr r0, [r4, #0x6c]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BBA0
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
add r5, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xff
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221F424 ; =0x00010200
|
|
|
|
add r2, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x18
|
|
|
|
add r3, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020200FC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026380
|
2021-06-18 12:29:26 +00:00
|
|
|
_0221F32A:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x18
|
2021-08-13 14:06:39 +00:00
|
|
|
bl CopyWindowToVram
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x48
|
|
|
|
mov r1, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl FillWindowPixelBuffer
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4, #0x6c]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #8
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BBA0
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
add r5, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xff
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221F424 ; =0x00010200
|
|
|
|
add r2, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x48
|
|
|
|
add r3, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020200FC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026380
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4, #0x6c]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #4
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BBA0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
|
|
|
mov r0, #0x10
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xff
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221F424 ; =0x00010200
|
|
|
|
mov r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x48
|
|
|
|
add r2, r5, #0
|
|
|
|
add r3, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020200FC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026380
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4, #0x6c]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #6
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BBA0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
|
|
|
mov r0, #0x20
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xff
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221F424 ; =0x00010200
|
|
|
|
mov r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x48
|
|
|
|
add r2, r5, #0
|
|
|
|
add r3, r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020200FC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026380
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4, #0x6c]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #5
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BBA0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
|
|
|
mov r0, #0x30
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xff
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221F424 ; =0x00010200
|
|
|
|
mov r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x48
|
|
|
|
add r2, r5, #0
|
|
|
|
add r3, r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020200FC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026380
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4, #0x6c]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #7
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BBA0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
|
|
|
mov r0, #0x40
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xff
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221F424 ; =0x00010200
|
|
|
|
mov r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x48
|
|
|
|
add r2, r5, #0
|
|
|
|
add r3, r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020200FC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026380
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, #0x48
|
|
|
|
add r0, r4, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl CopyWindowToVram
|
2021-06-26 19:39:05 +00:00
|
|
|
add sp, #0x10
|
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
nop
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221F424: .word 0x00010200
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221F294
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221F428
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221F428: ; 0x0221F428
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r4, r5, r6, lr}
|
|
|
|
sub sp, #0x10
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r5, #0x74]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r1, #0
|
|
|
|
add r1, #0xa
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020269A0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x28
|
|
|
|
mov r1, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl FillWindowPixelBuffer
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xff
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221F564 ; =0x00010200
|
|
|
|
add r3, r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r2, [r5, #0x74]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x28
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020200FC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x28
|
2021-08-13 14:06:39 +00:00
|
|
|
bl CopyWindowToVram
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r0, [r4, #8]
|
|
|
|
cmp r0, #0
|
|
|
|
bne _0221F4A8
|
|
|
|
ldr r0, [r5, #0x6c]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #2
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BBA0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r0, #0
|
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x38
|
|
|
|
mov r1, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl FillWindowPixelBuffer
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xff
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221F568 ; =0x00070800
|
|
|
|
add r2, r6, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x38
|
|
|
|
mov r3, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020200FC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x38
|
2021-08-13 14:06:39 +00:00
|
|
|
bl CopyWindowToVram
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026380
|
2021-06-26 19:39:05 +00:00
|
|
|
b _0221F4FE
|
|
|
|
_0221F4A8:
|
|
|
|
cmp r0, #1
|
|
|
|
bne _0221F4EC
|
|
|
|
ldr r0, [r5, #0x6c]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #3
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BBA0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r0, #0
|
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x38
|
|
|
|
mov r1, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl FillWindowPixelBuffer
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xff
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xc1
|
|
|
|
lsl r0, r0, #0xa
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x38
|
|
|
|
add r2, r6, #0
|
|
|
|
mov r3, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020200FC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x38
|
2021-08-13 14:06:39 +00:00
|
|
|
bl CopyWindowToVram
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026380
|
2021-06-26 19:39:05 +00:00
|
|
|
b _0221F4FE
|
|
|
|
_0221F4EC:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x38
|
|
|
|
mov r1, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl FillWindowPixelBuffer
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x38
|
2021-08-13 14:06:39 +00:00
|
|
|
bl CopyWindowToVram
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F4FE:
|
|
|
|
ldrh r0, [r4, #4]
|
|
|
|
ldr r1, [r5]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BCDC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
str r3, [sp, #4]
|
|
|
|
ldr r0, [r5, #0x70]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
add r2, r4, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BE3C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026380
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r5, #0x70]
|
|
|
|
ldr r1, [r5, #0x6c]
|
|
|
|
ldr r3, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #9
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200BC4C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x58
|
|
|
|
mov r1, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl FillWindowPixelBuffer
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xff
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _0221F564 ; =0x00010200
|
|
|
|
add r2, r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x58
|
|
|
|
add r3, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020200FC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, #0x58
|
|
|
|
add r0, r5, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl CopyWindowToVram
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02026380
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x10
|
2021-06-26 19:39:05 +00:00
|
|
|
pop {r4, r5, r6, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221F564: .word 0x00010200
|
|
|
|
_0221F568: .word 0x00070800
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221F428
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221F56C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221F56C: ; 0x0221F56C
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
add r5, r4, #0
|
|
|
|
add r5, #0x78
|
|
|
|
add r0, r5, #0
|
|
|
|
add r6, r1, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221FBDC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x78
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221FC54
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xb3
|
|
|
|
lsl r0, r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, #0x78
|
|
|
|
add r0, r4, #0
|
|
|
|
add r1, r6, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221F5F8
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r1, _0221F5F4 ; =0x0221FCFC
|
2021-06-26 19:39:05 +00:00
|
|
|
add r0, sp, #0
|
|
|
|
ldrb r2, [r1]
|
|
|
|
add r7, sp, #0
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
strb r2, [r0]
|
|
|
|
ldrb r2, [r1, #1]
|
|
|
|
strb r2, [r0, #1]
|
|
|
|
ldrb r2, [r1, #2]
|
|
|
|
strb r2, [r0, #2]
|
|
|
|
ldrb r2, [r1, #3]
|
|
|
|
ldrb r1, [r1, #4]
|
|
|
|
strb r2, [r0, #3]
|
|
|
|
strb r1, [r0, #4]
|
|
|
|
_0221F5B8:
|
|
|
|
ldrb r1, [r7, r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, r1
|
|
|
|
add r0, #0x20
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r0, [r0]
|
|
|
|
cmp r0, #0
|
|
|
|
beq _0221F5D6
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r1, #2
|
|
|
|
add r1, r5, r0
|
|
|
|
mov r0, #0x6d
|
|
|
|
lsl r0, r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r1, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-26 19:39:05 +00:00
|
|
|
b _0221F5E6
|
|
|
|
_0221F5D6:
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r1, #2
|
|
|
|
add r1, r5, r0
|
|
|
|
mov r0, #0x6d
|
|
|
|
lsl r0, r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r1, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F5E6:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r4, r0, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r4, #5
|
|
|
|
blo _0221F5B8
|
|
|
|
add sp, #8
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221F5F4: .word 0x0221FCFC
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221F56C
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221F5F8
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221F5F8: ; 0x0221F5F8
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #0xc
|
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r1, [sp, #4]
|
|
|
|
str r0, [sp, #8]
|
|
|
|
_0221F604:
|
|
|
|
ldr r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r0, #3
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, r0, r1
|
|
|
|
mov r0, #0x28
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrsb r0, [r7, r0]
|
|
|
|
cmp r0, #0
|
|
|
|
ble _0221F638
|
|
|
|
ldr r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x18
|
|
|
|
mul r1, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, r1
|
|
|
|
mov r0, #0x77
|
|
|
|
lsl r0, r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x77
|
|
|
|
lsl r0, r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #4
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020248F0
|
2021-06-26 19:39:05 +00:00
|
|
|
b _0221F674
|
|
|
|
_0221F638:
|
|
|
|
bge _0221F65E
|
|
|
|
ldr r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x18
|
|
|
|
mul r1, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, r1
|
|
|
|
mov r0, #0x77
|
|
|
|
lsl r0, r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x77
|
|
|
|
lsl r0, r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #5
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020248F0
|
2021-06-26 19:39:05 +00:00
|
|
|
b _0221F674
|
|
|
|
_0221F65E:
|
|
|
|
ldr r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x18
|
|
|
|
mul r1, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r0, r1
|
|
|
|
mov r0, #0x77
|
|
|
|
lsl r0, r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r1, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F674:
|
|
|
|
ldr r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x18
|
|
|
|
mul r1, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
|
|
|
add r5, r0, r1
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F680:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, r4
|
|
|
|
add r0, #0x29
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r0, [r0]
|
|
|
|
cmp r0, #4
|
|
|
|
bhi _0221F72A
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
add r0, pc
|
|
|
|
ldrh r0, [r0, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x10
|
|
|
|
asr r0, r0, #0x10
|
2021-06-26 19:39:05 +00:00
|
|
|
add pc, r0
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221F696: ; jump table
|
|
|
|
.short _0221F6A0 - _0221F696 - 2 ; case 0
|
|
|
|
.short _0221F6B2 - _0221F696 - 2 ; case 1
|
|
|
|
.short _0221F6D0 - _0221F696 - 2 ; case 2
|
|
|
|
.short _0221F6EE - _0221F696 - 2 ; case 3
|
|
|
|
.short _0221F70C - _0221F696 - 2 ; case 4
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F6A0:
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r4, #2
|
|
|
|
add r1, r5, r0
|
|
|
|
mov r0, #0x1e
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r1, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-26 19:39:05 +00:00
|
|
|
b _0221F72E
|
|
|
|
_0221F6B2:
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r4, #2
|
|
|
|
add r6, r5, r0
|
|
|
|
mov r0, #0x1e
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r6, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x1e
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r6, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #3
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020248F0
|
2021-06-26 19:39:05 +00:00
|
|
|
b _0221F72E
|
|
|
|
_0221F6D0:
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r4, #2
|
|
|
|
add r6, r5, r0
|
|
|
|
mov r0, #0x1e
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r6, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x1e
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r6, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020248F0
|
2021-06-26 19:39:05 +00:00
|
|
|
b _0221F72E
|
|
|
|
_0221F6EE:
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r4, #2
|
|
|
|
add r6, r5, r0
|
|
|
|
mov r0, #0x1e
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r6, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x1e
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r6, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020248F0
|
2021-06-26 19:39:05 +00:00
|
|
|
b _0221F72E
|
|
|
|
_0221F70C:
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r4, #2
|
|
|
|
add r6, r5, r0
|
|
|
|
mov r0, #0x1e
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r6, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x1e
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r6, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #2
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020248F0
|
2021-06-26 19:39:05 +00:00
|
|
|
b _0221F72E
|
|
|
|
_0221F72A:
|
2021-06-27 12:46:42 +00:00
|
|
|
bl GF_AssertFail
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F72E:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r4, r0, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r4, #5
|
|
|
|
blo _0221F680
|
|
|
|
ldr r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r0, r0, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
cmp r0, #5
|
|
|
|
bhs _0221F748
|
|
|
|
b _0221F604
|
|
|
|
_0221F748:
|
|
|
|
add sp, #0xc
|
|
|
|
pop {r4, r5, r6, r7, pc}
|
|
|
|
thumb_func_end ov97_0221F5F8
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221F74C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221F74C: ; 0x0221F74C
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r7, #0x6d
|
|
|
|
lsl r7, r7, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x78
|
|
|
|
add r6, r7, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
|
|
|
add r6, #0x14
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F760:
|
|
|
|
ldr r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r4, #2
|
|
|
|
add r5, r0, r1
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r5, r7]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r5, r6]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r4, r0, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r4, #5
|
|
|
|
blo _0221F760
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
mov r6, #0x1e
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, r0, #0
|
|
|
|
lsl r6, r6, #4
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F78A:
|
|
|
|
ldr r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x18
|
|
|
|
add r2, r1, #0
|
|
|
|
mul r2, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
add r5, r0, r2
|
|
|
|
mov r0, #0x77
|
|
|
|
lsl r0, r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r5, r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221F7A4:
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r4, #2
|
|
|
|
add r0, r5, r0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r0, r6]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r7, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r4, r0, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r4, #5
|
|
|
|
blo _0221F7A4
|
|
|
|
ldr r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r0, r0, #0x18
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
|
|
|
cmp r0, #5
|
|
|
|
blo _0221F78A
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x95
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r0, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-26 19:39:05 +00:00
|
|
|
add sp, #8
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221F74C
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221F7DC
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221F7DC: ; 0x0221F7DC
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #0x10
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
|
|
|
add r1, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r2, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x42
|
|
|
|
add r1, #8
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02009F40
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
mov r2, #1
|
|
|
|
add r0, #8
|
|
|
|
mov r1, #0
|
|
|
|
lsl r2, r2, #0x14
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02009FC8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x10
|
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02022CC8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r7, #0x13
|
|
|
|
mov r6, #0
|
|
|
|
add r4, r5, #0
|
|
|
|
lsl r7, r7, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
_0221F80E:
|
|
|
|
ldr r2, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
|
|
|
add r1, r6, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A090
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, r7]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r6, #1
|
|
|
|
add r4, r4, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r6, #6
|
|
|
|
blt _0221F80E
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r3, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xf3
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x13
|
|
|
|
lsl r0, r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #7
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A1D8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x52
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r2, [sp, #8]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0x14
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
|
|
|
ldr r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xf3
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A234
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x53
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r3, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0x14
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldr r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xf3
|
|
|
|
mov r2, #6
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A294
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x15
|
|
|
|
lsl r1, r1, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r3, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0x14
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldr r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xf3
|
|
|
|
mov r2, #5
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A294
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x55
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0xc
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, r1]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200ADA4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x53
|
|
|
|
lsl r0, r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200AF94
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xa2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x13
|
|
|
|
lsl r0, r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0x42
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A1D8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x16
|
|
|
|
lsl r1, r1, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0x2c
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
|
|
|
ldr r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xa2
|
|
|
|
mov r2, #0x41
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A234
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x59
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0x2c
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldr r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xa2
|
|
|
|
mov r2, #0x43
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A294
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x5a
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0x2c
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldr r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xa2
|
|
|
|
mov r2, #0x44
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A294
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x5b
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0xc
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, r1]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200ADA4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x59
|
|
|
|
lsl r0, r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200AF94
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x5d
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x13
|
|
|
|
lsl r0, r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #9
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A1D8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x5e
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0x44
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
|
|
|
ldr r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x5d
|
|
|
|
mov r2, #6
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A234
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x5f
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0x44
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldr r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x5d
|
|
|
|
mov r2, #0xa
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A294
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #6
|
|
|
|
lsl r1, r1, #6
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0x44
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldr r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x5d
|
|
|
|
mov r2, #0xa
|
|
|
|
mov r3, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200A294
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x61
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0xc
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, r1]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200ADA4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x5f
|
|
|
|
lsl r0, r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200AF94
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x10
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221F7DC
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221F9E0
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221F9E0: ; 0x0221F9E0
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #0x14
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
|
|
|
mov r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
_0221F9E8:
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r6, r4, #5
|
|
|
|
add r6, #0x68
|
|
|
|
lsl r0, r4, #2
|
|
|
|
add r7, r5, r0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r6, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xa8
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
str r4, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
mov r1, #1
|
|
|
|
mov r2, #2
|
|
|
|
mov r3, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221FAEC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x6d
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r7, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r6, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xa8
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #5
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r2, r1, #0
|
|
|
|
mov r3, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221FAEC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x72
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r7, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r4, r0, #0x18
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r4, #5
|
|
|
|
blo _0221F9E8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x10]
|
|
|
|
_0221FA3C:
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r1, _0221FAE8 ; =0x0221FCF4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [sp, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrb r0, [r1, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x18
|
|
|
|
mov r3, #0
|
|
|
|
lsl r6, r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [sp, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, #0x30
|
|
|
|
mul r1, r0
|
|
|
|
mov r0, #0x60
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, r5, r1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r6, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
mov r1, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221FAEC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x77
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r7, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
_0221FA70:
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r4, #4
|
|
|
|
add r0, #0xa8
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
str r6, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
mov r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r2, r1, #0
|
|
|
|
mov r3, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221FAEC
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r4, #2
|
|
|
|
add r2, r7, r1
|
|
|
|
mov r1, #0x1e
|
|
|
|
lsl r1, r1, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r2, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r4, r0, #0x18
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r4, #5
|
|
|
|
blo _0221FA70
|
|
|
|
ldr r0, [sp, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r0, r0, #0x18
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x10]
|
|
|
|
cmp r0, #5
|
|
|
|
blo _0221FA3C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x30
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x48
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r2, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
mov r1, #3
|
|
|
|
add r3, r2, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r2, [sp, #0xc]
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221FAEC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x95
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x32
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #6
|
2021-08-12 19:28:01 +00:00
|
|
|
bl AllocFromHeap
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x96
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221FBA0
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x14
|
|
|
|
pop {r4, r5, r6, r7, pc}
|
|
|
|
nop
|
2021-06-27 18:48:56 +00:00
|
|
|
_0221FAE8: .word 0x0221FCF4
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221F9E0
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221FAEC
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221FAEC: ; 0x0221FAEC
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, lr}
|
|
|
|
sub sp, #0x80
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mvn r0, r0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r2, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0
|
|
|
|
mov r0, #0x13
|
2021-06-18 12:29:26 +00:00
|
|
|
str r2, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r3, [sp, #0x10]
|
|
|
|
ldr r3, [r4, r0]
|
|
|
|
str r3, [sp, #0x14]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r3, r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r4, r3]
|
|
|
|
str r3, [sp, #0x18]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r3, r0, #0
|
|
|
|
add r3, #8
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r4, r3]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0xc
|
2021-06-18 12:29:26 +00:00
|
|
|
str r3, [sp, #0x1c]
|
|
|
|
ldr r0, [r4, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r3, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x20]
|
|
|
|
str r2, [sp, #0x24]
|
|
|
|
str r2, [sp, #0x28]
|
|
|
|
add r0, sp, #0x2c
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02009D48
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4]
|
|
|
|
add r2, sp, #0x2c
|
|
|
|
str r0, [sp]
|
|
|
|
ldr r1, [r4, #4]
|
|
|
|
add r0, sp, #0x50
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
bl ov97_0221FB80
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [sp, #0x90]
|
|
|
|
str r5, [sp, #0x74]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0xc
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x58]
|
|
|
|
ldr r0, [sp, #0x94]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r0, #0xc
|
|
|
|
mov r0, #1
|
|
|
|
lsl r0, r0, #0x14
|
|
|
|
add r0, r1, r0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x5c]
|
|
|
|
add r0, sp, #0x50
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024624
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
|
|
|
add r4, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0202484C
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [sp, #0x98]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020248F0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024A04
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [sp, #0x9c]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02024830
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x80
|
|
|
|
pop {r3, r4, r5, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221FAEC
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221FB80
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221FB80: ; 0x0221FB80
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [r0]
|
|
|
|
str r2, [r0, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0
|
|
|
|
mov r1, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r2, [r0, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #0xc
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [r0, #0x14]
|
|
|
|
str r1, [r0, #0x18]
|
|
|
|
str r1, [r0, #0x1c]
|
|
|
|
strh r2, [r0, #0x20]
|
|
|
|
str r2, [r0, #0x24]
|
|
|
|
ldr r1, [sp]
|
|
|
|
str r3, [r0, #0x28]
|
|
|
|
str r1, [r0, #0x2c]
|
|
|
|
bx lr
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221FB80
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_start ov97_0221FBA0
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221FBA0: ; 0x0221FBA0
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, r5, r6, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
|
|
|
mov r0, #0x5f
|
|
|
|
lsl r0, r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r4, [r5, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r0, r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200AF00
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r0, #0
|
|
|
|
add r0, r4, #0
|
|
|
|
add r1, r6, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200B0F8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
add r0, r6, #0
|
|
|
|
mov r1, #2
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020B802C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x9f
|
|
|
|
lsl r1, r1, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #2
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020B8078
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xa
|
|
|
|
lsl r1, r1, #6
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, r1]
|
|
|
|
pop {r4, r5, r6, pc}
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221FBA0
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221FBDC
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221FBDC: ; 0x0221FBDC
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r4, r5, lr}
|
|
|
|
sub sp, #0x24
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r1, #0
|
|
|
|
add r4, r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
ldrb r0, [r5, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
|
|
|
ldrb r0, [r5, #7]
|
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r5]
|
|
|
|
str r0, [sp, #8]
|
|
|
|
ldrh r1, [r5, #4]
|
|
|
|
ldrb r2, [r5, #8]
|
|
|
|
add r0, sp, #0x14
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020701E4
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #0x96
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldrh r0, [r5, #4]
|
|
|
|
add r1, sp, #0x10
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r3, r3, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
str r0, [sp, #0xc]
|
|
|
|
ldrh r0, [r1, #4]
|
|
|
|
ldrh r1, [r1, #6]
|
|
|
|
ldr r2, [r4]
|
|
|
|
ldr r3, [r4, r3]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02014540
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0x10
|
|
|
|
ldrh r0, [r1, #4]
|
|
|
|
ldrh r1, [r1, #8]
|
|
|
|
ldr r2, [r4]
|
2021-08-12 19:28:01 +00:00
|
|
|
bl AllocAndReadWholeNarcMemberByIdPair
|
2021-06-26 19:39:05 +00:00
|
|
|
add r1, sp, #0x10
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020B7140
|
2021-06-26 19:39:05 +00:00
|
|
|
cmp r0, #1
|
|
|
|
beq _0221FC3A
|
2021-06-27 12:46:42 +00:00
|
|
|
bl GF_AssertFail
|
2021-06-26 19:39:05 +00:00
|
|
|
_0221FC3A:
|
|
|
|
ldr r0, [sp, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x97
|
|
|
|
lsl r1, r1, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r0, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r4, r1
|
|
|
|
mov r2, #0x20
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020D47B8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-08-12 19:28:01 +00:00
|
|
|
bl FreeToHeap
|
2021-06-26 19:39:05 +00:00
|
|
|
add sp, #0x24
|
|
|
|
pop {r4, r5, pc}
|
|
|
|
thumb_func_end ov97_0221FBDC
|
|
|
|
|
|
|
|
thumb_func_start ov97_0221FC54
|
2021-06-27 18:48:56 +00:00
|
|
|
ov97_0221FC54: ; 0x0221FC54
|
2021-06-26 19:39:05 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
mov r0, #0x96
|
|
|
|
lsl r0, r0, #2
|
|
|
|
mov r1, #0x32
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #6
|
|
|
|
bl DC_FlushRange
|
|
|
|
mov r1, #0x96
|
|
|
|
lsl r1, r1, #2
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r0, [r4, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, #0x24
|
|
|
|
mov r2, #0x32
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r1, [r4, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r2, r2, #6
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020CFECC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x97
|
|
|
|
lsl r0, r0, #2
|
|
|
|
add r0, r4, r0
|
|
|
|
mov r1, #0x20
|
|
|
|
bl DC_FlushRange
|
|
|
|
mov r1, #0x97
|
|
|
|
lsl r1, r1, #2
|
|
|
|
add r0, r4, r1
|
|
|
|
add r1, #0x24
|
2021-06-26 19:39:05 +00:00
|
|
|
ldr r1, [r4, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0x20
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020CFD70
|
2021-06-26 19:39:05 +00:00
|
|
|
pop {r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 19:39:05 +00:00
|
|
|
thumb_func_end ov97_0221FC54
|
|
|
|
|
|
|
|
.rodata
|
|
|
|
|
|
|
|
_0221FC98:
|
|
|
|
.byte 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00
|
|
|
|
.byte 0x00, 0x40, 0x00, 0x00, 0x5C, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x60, 0x00, 0x00, 0x00, 0x01, 0x03, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x02, 0x04
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x1E, 0x02, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x01, 0x00, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x1D, 0x00
|
|
|
|
.byte 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x1F, 0x02, 0x01, 0x03, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00
|
2021-06-27 18:48:56 +00:00
|
|
|
; 0x0221FD74
|