2021-06-27 19:25:29 +00:00
|
|
|
.include "asm/macros.inc"
|
2023-01-27 22:42:00 +00:00
|
|
|
.include "overlay_113.inc"
|
2021-06-27 19:25:29 +00:00
|
|
|
.include "global.inc"
|
|
|
|
|
|
|
|
.text
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E5900
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5900: ; 0x021E5900
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, r5, r6, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r1, #0
|
|
|
|
beq _021E5912
|
|
|
|
cmp r1, #1
|
|
|
|
beq _021E5954
|
|
|
|
b _021E5964
|
|
|
|
_021E5912:
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E59F8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #2
|
|
|
|
mov r0, #3
|
|
|
|
mov r1, #0x98
|
|
|
|
lsl r2, r2, #0x10
|
2021-09-11 22:01:09 +00:00
|
|
|
bl CreateHeap
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x16
|
|
|
|
add r0, r6, #0
|
|
|
|
lsl r1, r1, #4
|
|
|
|
mov r2, #0x98
|
2021-09-11 22:01:09 +00:00
|
|
|
bl OverlayManager_CreateAndGetData
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0x16
|
|
|
|
mov r1, #0
|
|
|
|
lsl r2, r2, #4
|
|
|
|
add r4, r0, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl MI_CpuFill8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x98
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
2022-06-05 23:40:40 +00:00
|
|
|
bl OverlayManager_GetArgs
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5A7C
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5]
|
|
|
|
b _021E5964
|
|
|
|
_021E5954:
|
2021-09-11 22:01:09 +00:00
|
|
|
bl OverlayManager_GetData
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5B70
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _021E5964
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r4, r5, r6, pc}
|
|
|
|
_021E5964:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r4, r5, r6, pc}
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5900
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E5968
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5968: ; 0x021E5968
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r3, r4, r5, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r1, #0
|
2021-09-11 22:01:09 +00:00
|
|
|
bl OverlayManager_GetData
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r1, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
cmp r1, #4
|
|
|
|
bhi _021E59B2
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r1, r1
|
2021-06-26 22:16:58 +00:00
|
|
|
add r1, pc
|
|
|
|
ldrh r1, [r1, #6]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #0x10
|
|
|
|
asr r1, r1, #0x10
|
2021-06-26 22:16:58 +00:00
|
|
|
add pc, r1
|
2021-06-27 18:48:56 +00:00
|
|
|
_021E5984: ; jump table
|
|
|
|
.short _021E598E - _021E5984 - 2 ; case 0
|
|
|
|
.short _021E5996 - _021E5984 - 2 ; case 1
|
|
|
|
.short _021E599E - _021E5984 - 2 ; case 2
|
|
|
|
.short _021E59A6 - _021E5984 - 2 ; case 3
|
|
|
|
.short _021E59AE - _021E5984 - 2 ; case 4
|
2021-06-26 22:16:58 +00:00
|
|
|
_021E598E:
|
|
|
|
bl ov113_021E5BC4
|
|
|
|
str r0, [r4]
|
|
|
|
b _021E59B2
|
|
|
|
_021E5996:
|
|
|
|
bl ov113_021E5C0C
|
|
|
|
str r0, [r4]
|
|
|
|
b _021E59B2
|
|
|
|
_021E599E:
|
|
|
|
bl ov113_021E5C60
|
|
|
|
str r0, [r4]
|
|
|
|
b _021E59B2
|
|
|
|
_021E59A6:
|
|
|
|
bl ov113_021E5C68
|
|
|
|
str r0, [r4]
|
|
|
|
b _021E59B2
|
|
|
|
_021E59AE:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
_021E59B2:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0xb0
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200D020
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, #0xb4
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r5]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200D020
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
thumb_func_end ov113_021E5968
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E59C8
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E59C8: ; 0x021E59C8
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r3, r4, r5, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-09-11 22:01:09 +00:00
|
|
|
bl OverlayManager_GetData
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5BB0
|
|
|
|
cmp r0, #0
|
|
|
|
bne _021E59DE
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
_021E59DE:
|
|
|
|
bl ov113_021E59F8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5B60
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-09-11 22:01:09 +00:00
|
|
|
bl OverlayManager_FreeData
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x98
|
2021-09-11 22:01:09 +00:00
|
|
|
bl DestroyHeap
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
thumb_func_end ov113_021E59C8
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E59F8
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E59F8: ; 0x021E59F8
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
add r1, r0, #0
|
2021-09-18 16:36:50 +00:00
|
|
|
bl Main_SetVBlankIntrCB
|
2022-01-31 17:22:29 +00:00
|
|
|
bl HBlankInterruptDisable
|
2023-11-04 03:02:28 +00:00
|
|
|
bl GfGfx_DisableEngineAPlanes
|
|
|
|
bl GfGfx_DisableEngineBPlanes
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #1
|
|
|
|
lsl r2, r2, #0x1a
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r2]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _021E5A40 ; =0xFFFFE0FF
|
|
|
|
and r1, r0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [r2]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r2, _021E5A44 ; =0x04001000
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r2]
|
2021-06-27 18:48:56 +00:00
|
|
|
and r0, r1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r2]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
add r1, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200FBF4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
|
|
|
mov r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200FBF4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200FBDC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200FBDC
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r3, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 18:48:56 +00:00
|
|
|
_021E5A40: .word 0xFFFFE0FF
|
|
|
|
_021E5A44: .word 0x04001000
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E59F8
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E5A48
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5A48: ; 0x021E5A48
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r5, #0
|
|
|
|
add r7, r0, #0
|
|
|
|
add r6, r1, #0
|
|
|
|
add r4, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E5A52:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
add r1, r4, #0
|
|
|
|
mov r2, #1
|
2023-06-29 20:41:31 +00:00
|
|
|
bl Pokedex_GetSeenFormByIdx_Unown
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r0, r0, #0x18
|
|
|
|
add r1, r0, #0
|
|
|
|
add r1, #0xe6
|
|
|
|
lsl r1, r1, #0x18
|
|
|
|
lsr r1, r1, #0x18
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r1, #1
|
|
|
|
bhi _021E5A70
|
|
|
|
strb r0, [r6, r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r5, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E5A70:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r4, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r4, #0x1c
|
|
|
|
blt _021E5A52
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5A48
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E5A7C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5A7C: ; 0x021E5A7C
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, r6, lr}
|
|
|
|
sub sp, #4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, #4]
|
|
|
|
ldr r0, [r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020183F0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, #0x14]
|
|
|
|
ldr r0, [r5, #4]
|
|
|
|
ldr r0, [r0, #4]
|
2023-06-05 00:17:37 +00:00
|
|
|
bl Save_PlayerData_GetOptionsAddr
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-09-17 00:20:16 +00:00
|
|
|
bl Options_GetTextFrameDelay
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r0, [r5, #0x18]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-09-17 00:20:16 +00:00
|
|
|
bl Options_GetFrame
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r0, [r5, #0x19]
|
|
|
|
ldr r0, [r5, #4]
|
|
|
|
ldr r0, [r0, #4]
|
2023-06-04 18:46:40 +00:00
|
|
|
bl Save_Pokedex_Get
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r5, #0xc]
|
|
|
|
ldr r0, [r5, #4]
|
|
|
|
ldr r0, [r0, #4]
|
2023-06-24 11:32:16 +00:00
|
|
|
bl Save_VarsFlags_Get
|
|
|
|
bl Save_VarsFlags_GetUnownReportLevel
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r5, #0
|
|
|
|
add r1, #0x3c
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5D80
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r0, [r5, #0x1d]
|
|
|
|
ldr r0, [r5, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2023-06-29 20:41:31 +00:00
|
|
|
bl Pokedex_GetSeenFormNum_Unown
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r0, [r5, #0x1f]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x3c
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrb r0, [r0]
|
|
|
|
cmp r0, #4
|
|
|
|
blo _021E5B10
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E5ADE:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, r1
|
|
|
|
add r0, #0x20
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r1, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r1, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r1, #0x19
|
|
|
|
ble _021E5ADE
|
|
|
|
ldr r0, [r5, #0xc]
|
|
|
|
add r1, sp, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5A48
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r3, r0, #0x18
|
|
|
|
mov r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r3, #0
|
|
|
|
ble _021E5B32
|
|
|
|
add r2, sp, #0
|
|
|
|
_021E5AFE:
|
|
|
|
ldrb r1, [r2]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, r4
|
|
|
|
add r0, #0x3a
|
|
|
|
add r4, r4, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r1, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r2, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r4, r3
|
|
|
|
blt _021E5AFE
|
|
|
|
b _021E5B32
|
|
|
|
_021E5B10:
|
|
|
|
ldrb r0, [r5, #0x1f]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r0, #0
|
|
|
|
ble _021E5B32
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r6, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E5B1A:
|
|
|
|
ldr r0, [r5, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r4, #0
|
|
|
|
add r2, r6, #0
|
2023-06-29 20:41:31 +00:00
|
|
|
bl Pokedex_GetSeenFormByIdx_Unown
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r5, r4
|
|
|
|
add r1, #0x20
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r0, [r1]
|
|
|
|
ldrb r0, [r5, #0x1f]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r4, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r4, r0
|
|
|
|
blt _021E5B1A
|
|
|
|
_021E5B32:
|
|
|
|
ldrb r0, [r5, #0x1f]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xe
|
2021-08-11 14:29:41 +00:00
|
|
|
bl _s32_div_f
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r0, [r5, #0x1c]
|
|
|
|
ldrb r0, [r5, #0x1f]
|
|
|
|
cmp r0, #0
|
|
|
|
beq _021E5B52
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xe
|
2021-08-11 14:29:41 +00:00
|
|
|
bl _s32_div_f
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r1, #0
|
|
|
|
beq _021E5B52
|
|
|
|
ldrb r0, [r5, #0x1c]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r0, [r5, #0x1c]
|
|
|
|
_021E5B52:
|
|
|
|
ldrb r1, [r5, #0x1c]
|
|
|
|
ldrb r0, [r5, #0x1d]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r1, r0
|
|
|
|
add r0, r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r0, [r5, #0x1b]
|
|
|
|
add sp, #4
|
|
|
|
pop {r3, r4, r5, r6, pc}
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5A7C
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E5B60
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5B60: ; 0x021E5B60
|
|
|
|
add r1, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r1, #4]
|
2021-06-27 19:11:25 +00:00
|
|
|
ldr r3, _021E5B6C ; =sub_02018410
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1, #0x14]
|
|
|
|
bx r3
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 19:11:25 +00:00
|
|
|
_021E5B6C: .word sub_02018410
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5B60
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E5B70
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5B70: ; 0x021E5B70
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrh r1, [r4, #0x10]
|
|
|
|
cmp r1, #0
|
|
|
|
beq _021E5B80
|
|
|
|
cmp r1, #1
|
|
|
|
beq _021E5B8C
|
|
|
|
b _021E5BAC
|
|
|
|
_021E5B80:
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5CF8
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrh r0, [r4, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
strh r0, [r4, #0x10]
|
|
|
|
b _021E5BAC
|
|
|
|
_021E5B8C:
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5D4C
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020210BC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02021148
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
mov r0, #0x45
|
|
|
|
add r2, r1, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02004EC4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
strh r0, [r4, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r4, pc}
|
|
|
|
_021E5BAC:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r4, pc}
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5B70
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E5BB0
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5BB0: ; 0x021E5BB0
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02021238
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5D28
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5BB0
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E5BC4
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5BC4: ; 0x021E5BC4
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r3, r4, lr}
|
|
|
|
sub sp, #0xc
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
ldrh r0, [r4, #0x10]
|
|
|
|
cmp r0, #0
|
|
|
|
beq _021E5BD6
|
|
|
|
cmp r0, #1
|
|
|
|
beq _021E5BF4
|
|
|
|
b _021E5C06
|
|
|
|
_021E5BD6:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #6
|
|
|
|
mov r1, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
str r0, [sp]
|
|
|
|
str r1, [sp, #4]
|
|
|
|
ldr r0, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r1, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
add r3, r0, #0
|
2022-03-15 12:19:04 +00:00
|
|
|
bl BeginNormalPaletteFade
|
2021-06-26 22:16:58 +00:00
|
|
|
ldrh r0, [r4, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
strh r0, [r4, #0x10]
|
|
|
|
b _021E5C06
|
|
|
|
_021E5BF4:
|
2022-03-27 22:00:16 +00:00
|
|
|
bl IsPaletteFadeFinished
|
2021-06-26 22:16:58 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _021E5C06
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
strh r0, [r4, #0x10]
|
|
|
|
add sp, #0xc
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r3, r4, pc}
|
|
|
|
_021E5C06:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
add sp, #0xc
|
|
|
|
pop {r3, r4, pc}
|
|
|
|
thumb_func_end ov113_021E5BC4
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E5C0C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5C0C: ; 0x021E5C0C
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r3, r4, lr}
|
|
|
|
sub sp, #0xc
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
ldrh r1, [r4, #0x10]
|
|
|
|
cmp r1, #0
|
|
|
|
beq _021E5C1E
|
|
|
|
cmp r1, #1
|
|
|
|
beq _021E5C46
|
|
|
|
b _021E5C58
|
|
|
|
_021E5C1E:
|
|
|
|
bl ov113_021E5EC4
|
|
|
|
cmp r0, #0
|
|
|
|
bne _021E5C58
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #6
|
2021-06-26 22:16:58 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r4]
|
|
|
|
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
|
2022-03-15 12:19:04 +00:00
|
|
|
bl BeginNormalPaletteFade
|
2021-06-26 22:16:58 +00:00
|
|
|
ldrh r0, [r4, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
strh r0, [r4, #0x10]
|
|
|
|
b _021E5C58
|
|
|
|
_021E5C46:
|
2022-03-27 22:00:16 +00:00
|
|
|
bl IsPaletteFadeFinished
|
2021-06-26 22:16:58 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _021E5C58
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
strh r0, [r4, #0x10]
|
|
|
|
add sp, #0xc
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r3, r4, pc}
|
|
|
|
_021E5C58:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
add sp, #0xc
|
|
|
|
pop {r3, r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5C0C
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E5C60
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5C60: ; 0x021E5C60
|
|
|
|
ldr r3, _021E5C64 ; =ov113_021E5D60
|
2021-06-26 22:16:58 +00:00
|
|
|
bx r3
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 18:48:56 +00:00
|
|
|
_021E5C64: .word ov113_021E5D60
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5C60
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E5C68
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5C68: ; 0x021E5C68
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r3, r4, lr}
|
|
|
|
sub sp, #0xc
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
ldrh r0, [r4, #0x10]
|
|
|
|
cmp r0, #3
|
|
|
|
bhi _021E5CF2
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, r0
|
2021-06-26 22:16:58 +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 22:16:58 +00:00
|
|
|
add pc, r0
|
2021-06-27 18:48:56 +00:00
|
|
|
_021E5C80: ; jump table
|
|
|
|
.short _021E5C88 - _021E5C80 - 2 ; case 0
|
|
|
|
.short _021E5CA8 - _021E5C80 - 2 ; case 1
|
|
|
|
.short _021E5CC0 - _021E5C80 - 2 ; case 2
|
|
|
|
.short _021E5CE0 - _021E5C80 - 2 ; case 3
|
2021-06-26 22:16:58 +00:00
|
|
|
_021E5C88:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #6
|
2021-06-26 22:16:58 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #4
|
2021-06-26 22:16:58 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
mov r2, #2
|
|
|
|
add r3, r0, #0
|
2022-03-15 12:19:04 +00:00
|
|
|
bl BeginNormalPaletteFade
|
2021-06-26 22:16:58 +00:00
|
|
|
ldrh r0, [r4, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
strh r0, [r4, #0x10]
|
|
|
|
b _021E5CF2
|
|
|
|
_021E5CA8:
|
2022-03-27 22:00:16 +00:00
|
|
|
bl IsPaletteFadeFinished
|
2021-06-26 22:16:58 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _021E5CF2
|
|
|
|
ldrb r1, [r4, #0x1a]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5DA4
|
|
|
|
ldrh r0, [r4, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
strh r0, [r4, #0x10]
|
|
|
|
b _021E5CF2
|
|
|
|
_021E5CC0:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #6
|
2021-06-26 22:16:58 +00:00
|
|
|
str r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #3
|
2021-06-26 22:16:58 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
mov r2, #5
|
|
|
|
add r3, r0, #0
|
2022-03-15 12:19:04 +00:00
|
|
|
bl BeginNormalPaletteFade
|
2021-06-26 22:16:58 +00:00
|
|
|
ldrh r0, [r4, #0x10]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
strh r0, [r4, #0x10]
|
|
|
|
b _021E5CF2
|
|
|
|
_021E5CE0:
|
2022-03-27 22:00:16 +00:00
|
|
|
bl IsPaletteFadeFinished
|
2021-06-26 22:16:58 +00:00
|
|
|
cmp r0, #0
|
|
|
|
beq _021E5CF2
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
strh r0, [r4, #0x10]
|
|
|
|
add sp, #0xc
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r3, r4, pc}
|
|
|
|
_021E5CF2:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-26 22:16:58 +00:00
|
|
|
add sp, #0xc
|
|
|
|
pop {r3, r4, pc}
|
|
|
|
thumb_func_end ov113_021E5C68
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E5CF8
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5CF8: ; 0x021E5CF8
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6300
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E650C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6680
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E671C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6988
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _021E5D24 ; =ov113_021E62B0
|
|
|
|
add r1, r4, #0
|
2021-09-18 16:36:50 +00:00
|
|
|
bl Main_SetVBlankIntrCB
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r4, pc}
|
|
|
|
nop
|
2021-06-27 18:48:56 +00:00
|
|
|
_021E5D24: .word ov113_021E62B0
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5CF8
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E5D28
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5D28: ; 0x021E5D28
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E69A8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6754
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E66E4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E663C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6490
|
|
|
|
pop {r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5D28
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E5D4C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5D4C: ; 0x021E5D4C
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
mov r1, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5E64
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrb r1, [r4, #0x1a]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5DA4
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r4, pc}
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5D4C
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E5D60
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5D60: ; 0x021E5D60
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r3, r4, lr}
|
|
|
|
sub sp, #4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
str r1, [sp]
|
|
|
|
add r1, sp, #0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5F94
|
|
|
|
ldr r1, [sp]
|
|
|
|
cmp r1, #0
|
|
|
|
bne _021E5D7C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5F48
|
|
|
|
_021E5D7C:
|
|
|
|
add sp, #4
|
|
|
|
pop {r3, r4, pc}
|
|
|
|
thumb_func_end ov113_021E5D60
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E5D80
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5D80: ; 0x021E5D80
|
|
|
|
add r0, #0x3c
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrb r3, [r0]
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r2, _021E5DA0 ; =ov113_021E6BD0
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E5D88:
|
|
|
|
ldrh r0, [r2]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x10
|
|
|
|
lsr r0, r0, #0x18
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r0, r3
|
|
|
|
bgt _021E5D9A
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r1, #1
|
|
|
|
add r2, r2, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r1, #6
|
|
|
|
blt _021E5D88
|
|
|
|
_021E5D9A:
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r1, #0x18
|
|
|
|
lsr r0, r0, #0x18
|
2021-06-18 12:29:26 +00:00
|
|
|
bx lr
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-11-28 00:40:57 +00:00
|
|
|
_021E5DA0: .word ov113_021E6BD0
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5D80
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E5DA4
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5DA4: ; 0x021E5DA4
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, lr}
|
|
|
|
sub sp, #0x10
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
add r0, #0x78
|
|
|
|
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, #0x88
|
|
|
|
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, #0x98
|
|
|
|
mov r1, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl FillWindowPixelBuffer
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrb r3, [r4, #0x1a]
|
|
|
|
cmp r3, #0
|
|
|
|
bne _021E5DD4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5FC0
|
2021-06-18 12:29:26 +00:00
|
|
|
b _021E5DF6
|
|
|
|
_021E5DD4:
|
|
|
|
ldrb r2, [r4, #0x1c]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, r3, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r1, r2
|
|
|
|
bge _021E5DE8
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #0x18
|
|
|
|
add r0, r4, #0
|
|
|
|
lsr r1, r1, #0x18
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6084
|
2021-06-18 12:29:26 +00:00
|
|
|
b _021E5DF6
|
|
|
|
_021E5DE8:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r2, #1
|
|
|
|
sub r1, r3, r1
|
|
|
|
lsl r1, r1, #0x18
|
|
|
|
add r0, r4, #0
|
|
|
|
lsr r1, r1, #0x18
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E613C
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E5DF6:
|
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 r3, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r3, [sp, #4]
|
|
|
|
ldrb r2, [r4, #0x1a]
|
|
|
|
ldr r0, [r4, #0x48]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r2, #1
|
2021-08-17 00:42:24 +00:00
|
|
|
bl BufferIntegerAsString
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
mov r1, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
str r1, [sp, #4]
|
|
|
|
ldrb r2, [r4, #0x1b]
|
|
|
|
ldr r0, [r4, #0x48]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r3, r1, #0
|
2021-08-17 00:42:24 +00:00
|
|
|
bl BufferIntegerAsString
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4, #0x48]
|
|
|
|
ldr r1, [r4, #0x50]
|
|
|
|
ldr r2, [r4, #0x58]
|
2021-08-14 00:11:40 +00:00
|
|
|
bl StringExpandPlaceholders
|
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, _021E5E60 ; =0x000F0200
|
|
|
|
add r3, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r2, [r4, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x98
|
2023-12-13 17:28:12 +00:00
|
|
|
bl AddTextPrinterParameterizedWithColor
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x78
|
2022-01-14 16:53:04 +00:00
|
|
|
bl ScheduleWindowCopyToVram
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x88
|
2022-01-14 16:53:04 +00:00
|
|
|
bl ScheduleWindowCopyToVram
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x98
|
2022-01-14 16:53:04 +00:00
|
|
|
bl ScheduleWindowCopyToVram
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6B1C
|
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
|
|
|
_021E5E60: .word 0x000F0200
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5DA4
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E5E64
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5E64: ; 0x021E5E64
|
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 r0, #0xb8
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2022-04-02 16:49:09 +00:00
|
|
|
bl Set2dSpriteAnimSeqNo
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0xb8
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2023-09-04 01:42:26 +00:00
|
|
|
bl Sprite_ResetAnimCtrlState
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0x68
|
|
|
|
mov r1, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl FillWindowPixelBuffer
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r4, #0x54]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
|
|
|
mov r2, #0
|
2022-03-10 15:29:01 +00:00
|
|
|
bl FontID_String_GetWidth
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
add r3, r0, #0
|
|
|
|
mov r5, #0x30
|
|
|
|
sub r3, r5, r3
|
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, _021E5EC0 ; =0x00070F00
|
|
|
|
lsr r3, r3, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r2, [r4, #0x54]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x68
|
|
|
|
mov r1, #4
|
2023-12-13 17:28:12 +00:00
|
|
|
bl AddTextPrinterParameterizedWithColor
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, #0x68
|
|
|
|
add r0, r4, #0
|
2022-01-14 16:53:04 +00:00
|
|
|
bl ScheduleWindowCopyToVram
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x10
|
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
nop
|
2021-06-27 18:48:56 +00:00
|
|
|
_021E5EC0: .word 0x00070F00
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5E64
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E5EC4
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5EC4: ; 0x021E5EC4
|
2023-12-26 19:50:55 +00:00
|
|
|
ldr r3, _021E5ECC ; =Sprite_IsCellAnimationFinished
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0xb8
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
bx r3
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2023-12-26 19:50:55 +00:00
|
|
|
_021E5ECC: .word Sprite_IsCellAnimationFinished
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5EC4
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E5ED0
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5ED0: ; 0x021E5ED0
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
cmp r1, #0
|
|
|
|
beq _021E5EE2
|
|
|
|
cmp r1, #1
|
|
|
|
beq _021E5EF4
|
|
|
|
cmp r1, #2
|
|
|
|
beq _021E5F16
|
|
|
|
b _021E5F3C
|
|
|
|
_021E5EE2:
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _021E5F40 ; =0x000005DD
|
2021-08-13 18:03:14 +00:00
|
|
|
bl PlaySE
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5E64
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r4, pc}
|
|
|
|
_021E5EF4:
|
|
|
|
ldrb r0, [r4, #0x1a]
|
|
|
|
cmp r0, #0
|
|
|
|
bne _021E5EFE
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r4, pc}
|
|
|
|
_021E5EFE:
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r0, r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
strb r0, [r4, #0x1a]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, #0xbc
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #3
|
2022-04-02 16:49:09 +00:00
|
|
|
bl Set2dSpriteAnimSeqNo
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _021E5F44 ; =0x000005DC
|
2021-08-13 18:03:14 +00:00
|
|
|
bl PlaySE
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r4, pc}
|
|
|
|
_021E5F16:
|
|
|
|
ldrb r0, [r4, #0x1b]
|
|
|
|
ldrb r1, [r4, #0x1a]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r0, r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
cmp r1, r0
|
|
|
|
blt _021E5F24
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r4, pc}
|
|
|
|
_021E5F24:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r1, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
strb r0, [r4, #0x1a]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, #0xc0
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #6
|
2022-04-02 16:49:09 +00:00
|
|
|
bl Set2dSpriteAnimSeqNo
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r0, _021E5F44 ; =0x000005DC
|
2021-08-13 18:03:14 +00:00
|
|
|
bl PlaySE
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r4, pc}
|
|
|
|
_021E5F3C:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 18:48:56 +00:00
|
|
|
_021E5F40: .word 0x000005DD
|
|
|
|
_021E5F44: .word 0x000005DC
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5ED0
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E5F48
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5F48: ; 0x021E5F48
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r3, lr}
|
2022-02-01 20:44:20 +00:00
|
|
|
ldr r1, _021E5F8C ; =gSystem
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r2, [r1, #0x48]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r1, _021E5F90 ; =0x00000CF3
|
2021-06-26 22:16:58 +00:00
|
|
|
tst r1, r2
|
|
|
|
beq _021E5F58
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
str r1, [r0, #0x14]
|
|
|
|
_021E5F58:
|
2022-02-01 20:44:20 +00:00
|
|
|
ldr r1, _021E5F8C ; =gSystem
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r3, [r1, #0x48]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #2
|
|
|
|
add r2, r3, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
tst r2, r1
|
|
|
|
beq _021E5F6C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5ED0
|
|
|
|
pop {r3, pc}
|
|
|
|
_021E5F6C:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0x40
|
2021-06-26 22:16:58 +00:00
|
|
|
tst r2, r3
|
|
|
|
beq _021E5F7A
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5ED0
|
|
|
|
pop {r3, pc}
|
|
|
|
_021E5F7A:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0x80
|
2021-06-26 22:16:58 +00:00
|
|
|
tst r2, r3
|
|
|
|
beq _021E5F86
|
|
|
|
bl ov113_021E5ED0
|
|
|
|
pop {r3, pc}
|
|
|
|
_021E5F86:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r1, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r3, pc}
|
|
|
|
nop
|
2022-02-01 20:44:20 +00:00
|
|
|
_021E5F8C: .word gSystem
|
2021-06-27 18:48:56 +00:00
|
|
|
_021E5F90: .word 0x00000CF3
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5F48
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E5F94
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5F94: ; 0x021E5F94
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r3, r4, r5, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r0, _021E5FBC ; =ov113_021E6B82
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r1, #0
|
2023-12-25 04:36:40 +00:00
|
|
|
bl TouchscreenHitbox_FindHitboxAtTouchNew
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r0, #0
|
|
|
|
mov r0, #0
|
|
|
|
mvn r0, r0
|
2021-06-26 22:16:58 +00:00
|
|
|
cmp r1, r0
|
|
|
|
bne _021E5FAE
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r3, r4, r5, pc}
|
|
|
|
_021E5FAE:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
str r0, [r4]
|
|
|
|
str r0, [r5, #0x14]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E5ED0
|
|
|
|
pop {r3, r4, r5, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-11-28 00:40:57 +00:00
|
|
|
_021E5FBC: .word ov113_021E6B82
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5F94
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E5FC0
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E5FC0: ; 0x021E5FC0
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x13
|
|
|
|
add r6, r0, #0
|
|
|
|
lsl r1, r1, #4
|
|
|
|
add r1, r6, r1
|
|
|
|
mov r2, #6
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6238
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
|
|
|
lsl r1, r1, #8
|
|
|
|
add r0, r6, #0
|
|
|
|
add r1, r6, r1
|
|
|
|
mov r2, #2
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6238
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
|
|
|
add r5, r6, #0
|
|
|
|
add r7, r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E5FE6:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0xc4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r7, #0
|
2023-09-03 20:57:28 +00:00
|
|
|
bl UnkImageStruct_SetSpriteVisibleFlag
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r4, #1
|
|
|
|
add r5, r5, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r4, #0xe
|
|
|
|
blt _021E5FE6
|
|
|
|
ldr r0, [r6, #0x44]
|
|
|
|
ldr r2, [r6, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-08-14 00:11:40 +00:00
|
|
|
bl ReadMsgDataIntoString
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r6, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x78
|
|
|
|
mov r2, #0
|
|
|
|
mov r3, #0x38
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E629C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r6, #0x5c]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r0, #0
|
2022-03-10 15:29:01 +00:00
|
|
|
bl FontID_String_GetWidth
|
2021-06-27 18:48:56 +00:00
|
|
|
add r3, r0, #0
|
|
|
|
mov r2, #0xb0
|
|
|
|
sub r2, r2, r3
|
|
|
|
add r0, r6, #0
|
|
|
|
lsl r2, r2, #0x10
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r6, #0x5c]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x78
|
|
|
|
lsr r2, r2, #0x10
|
|
|
|
mov r3, #0x48
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E629C
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r6, #0x44]
|
|
|
|
ldr r2, [r6, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #3
|
2021-08-14 00:11:40 +00:00
|
|
|
bl ReadMsgDataIntoString
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r6, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x88
|
|
|
|
mov r2, #4
|
|
|
|
mov r3, #0x3c
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E629C
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r6, #0x44]
|
|
|
|
ldr r2, [r6, #0x4c]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #4
|
2021-08-14 00:11:40 +00:00
|
|
|
bl ReadMsgDataIntoString
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
str r0, [sp, #4]
|
|
|
|
ldrb r2, [r6, #0x1f]
|
|
|
|
ldr r0, [r6, #0x48]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
mov r3, #2
|
2021-08-17 00:42:24 +00:00
|
|
|
bl BufferIntegerAsString
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r6, #0x48]
|
|
|
|
ldr r1, [r6, #0x50]
|
|
|
|
ldr r2, [r6, #0x4c]
|
2021-08-14 00:11:40 +00:00
|
|
|
bl StringExpandPlaceholders
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r6, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x88
|
|
|
|
mov r2, #4
|
|
|
|
mov r3, #0x4c
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E629C
|
2021-06-18 12:29:26 +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 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E5FC0
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E6084
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E6084: ; 0x021E6084
|
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 r4, r1, #0
|
|
|
|
mov r1, #5
|
|
|
|
add r5, r0, #0
|
|
|
|
lsl r1, r1, #6
|
|
|
|
add r1, r5, r1
|
|
|
|
mov r2, #6
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6238
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x11
|
|
|
|
lsl r1, r1, #4
|
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r5, r1
|
|
|
|
mov r2, #2
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6238
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xe
|
|
|
|
mul r0, r4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x88
|
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 r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0x78
|
2021-06-18 12:29:26 +00:00
|
|
|
str r5, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
_021E60C2:
|
|
|
|
ldr r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, r0, r4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrb r0, [r5, #0x1f]
|
|
|
|
cmp r7, r0
|
|
|
|
blt _021E60DA
|
|
|
|
ldr r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
add r0, #0xc4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2023-09-03 20:57:28 +00:00
|
|
|
bl UnkImageStruct_SetSpriteVisibleFlag
|
2021-06-18 12:29:26 +00:00
|
|
|
b _021E612A
|
|
|
|
_021E60DA:
|
|
|
|
ldr r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
|
|
|
add r0, #0xc4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2023-09-03 20:57:28 +00:00
|
|
|
bl UnkImageStruct_SetSpriteVisibleFlag
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r5, r7
|
|
|
|
add r2, #0x20
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrb r2, [r2]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6AE8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r5, r7
|
|
|
|
add r1, #0x20
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrb r1, [r1]
|
|
|
|
ldr r0, [r5, #0x44]
|
|
|
|
ldr r2, [r5, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, #0x14
|
2021-08-14 00:11:40 +00:00
|
|
|
bl ReadMsgDataIntoString
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r4, #7
|
|
|
|
bge _021E6118
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r3, r6, #0x10
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [sp, #8]
|
|
|
|
ldr r1, [r5, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0x30
|
|
|
|
lsr r3, r3, #0x10
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E629C
|
2021-06-18 12:29:26 +00:00
|
|
|
b _021E612A
|
|
|
|
_021E6118:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r3, r6, #0
|
|
|
|
sub r3, #0xa8
|
|
|
|
lsl r3, r3, #0x10
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [sp, #0xc]
|
|
|
|
ldr r1, [r5, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0x30
|
|
|
|
lsr r3, r3, #0x10
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E629C
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E612A:
|
|
|
|
ldr r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r4, #1
|
|
|
|
add r0, r0, #4
|
|
|
|
add r6, #0x18
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
cmp r4, #0xe
|
|
|
|
blt _021E60C2
|
|
|
|
add sp, #0x10
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E6084
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E613C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E613C: ; 0x021E613C
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #4]
|
|
|
|
cmp r1, #0
|
|
|
|
bne _021E617C
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x15
|
|
|
|
lsl r1, r1, #4
|
|
|
|
add r1, r5, r1
|
|
|
|
mov r2, #6
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6238
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x12
|
|
|
|
lsl r1, r1, #4
|
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r5, r1
|
|
|
|
mov r2, #2
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6238
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r6, #0
|
|
|
|
add r4, r5, #0
|
|
|
|
add r7, r6, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E6168:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0xc4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r7, #0
|
2023-09-03 20:57:28 +00:00
|
|
|
bl UnkImageStruct_SetSpriteVisibleFlag
|
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, #0xe
|
|
|
|
blt _021E6168
|
|
|
|
_021E617C:
|
|
|
|
ldr r0, [sp, #4]
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r1, _021E6234 ; =ov113_021E6BD0
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #2
|
|
|
|
add r4, r1, r0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrh r1, [r1, r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r1, #0x10
|
|
|
|
lsr r2, r0, #0x18
|
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x3c
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrb r0, [r0]
|
|
|
|
cmp r2, r0
|
|
|
|
bgt _021E61E8
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r1, #0x18
|
|
|
|
lsr r0, r0, #0x1e
|
|
|
|
mov r6, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r0, #0
|
|
|
|
ble _021E61E8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, r5, #0
|
|
|
|
add r7, #0x78
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E61A2:
|
|
|
|
ldrh r1, [r4]
|
|
|
|
ldr r0, [r5, #0x44]
|
|
|
|
ldr r2, [r5, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #0x1a
|
|
|
|
lsr r1, r1, #0x1a
|
|
|
|
add r1, r1, r6
|
2021-08-14 00:11:40 +00:00
|
|
|
bl ReadMsgDataIntoString
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrh r0, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #0x1a
|
|
|
|
lsr r0, r0, #0x1a
|
|
|
|
add r0, r0, r6
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r0, #0xf
|
|
|
|
bne _021E61D0
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
ldr r1, [r5, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
mov r2, #3
|
|
|
|
mov r3, #4
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6274
|
2021-06-18 12:29:26 +00:00
|
|
|
b _021E61DC
|
|
|
|
_021E61D0:
|
|
|
|
ldr r1, [r5, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
mov r2, #4
|
|
|
|
mov r3, #0x18
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E629C
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E61DC:
|
|
|
|
ldrh r0, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r6, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r0, r0, #0x1e
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r6, r0
|
|
|
|
blt _021E61A2
|
|
|
|
_021E61E8:
|
|
|
|
ldrh r1, [r4, #2]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r1, #0x10
|
|
|
|
lsr r2, r0, #0x18
|
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0x3c
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrb r0, [r0]
|
|
|
|
cmp r2, r0
|
|
|
|
bgt _021E622E
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r1, #0x18
|
|
|
|
lsr r0, r0, #0x1e
|
|
|
|
mov r6, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r0, #0
|
|
|
|
ble _021E622E
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, r5, #0
|
|
|
|
add r7, #0x88
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E6206:
|
|
|
|
ldrh r1, [r4, #2]
|
|
|
|
ldr r0, [r5, #0x44]
|
|
|
|
ldr r2, [r5, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r1, #0x1a
|
|
|
|
lsr r1, r1, #0x1a
|
|
|
|
add r1, r1, r6
|
2021-08-14 00:11:40 +00:00
|
|
|
bl ReadMsgDataIntoString
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r5, #0x50]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r7, #0
|
|
|
|
mov r2, #4
|
|
|
|
mov r3, #0x18
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E629C
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrh r0, [r4, #2]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r6, #1
|
|
|
|
lsl r0, r0, #0x18
|
|
|
|
lsr r0, r0, #0x1e
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r6, r0
|
|
|
|
blt _021E6206
|
|
|
|
_021E622E:
|
|
|
|
add sp, #8
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
|
|
|
nop
|
2021-11-28 00:40:57 +00:00
|
|
|
_021E6234: .word ov113_021E6BD0
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E613C
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E6238
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E6238: ; 0x021E6238
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, r5, lr}
|
|
|
|
sub sp, #0x1c
|
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, #0x18
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r1, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r2, #0
|
|
|
|
mov r2, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
str r2, [sp, #0xc]
|
|
|
|
str r2, [sp, #0x10]
|
|
|
|
ldrb r0, [r1, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r3, r2, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x14]
|
|
|
|
ldrb r0, [r1, #0xd]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r4, #0x18
|
|
|
|
lsr r1, r1, #0x18
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x18]
|
|
|
|
ldr r0, [r5, #0x40]
|
2022-01-14 16:53:04 +00:00
|
|
|
bl CopyToBgTilemapRect
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r1, r4, #0x18
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsr r1, r1, #0x18
|
2021-08-14 18:09:09 +00:00
|
|
|
bl ScheduleBgTilemapBufferTransfer
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x1c
|
|
|
|
pop {r4, r5, pc}
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E6238
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E6274
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E6274: ; 0x021E6274
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, lr}
|
|
|
|
sub sp, #0x10
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
add r1, sp, #8
|
|
|
|
ldrh r1, [r1, #0x10]
|
|
|
|
str r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0xff
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r1, _021E6298 ; =0x00010200
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #8]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r2, #0
|
|
|
|
add r2, r4, #0
|
2023-12-13 17:28:12 +00:00
|
|
|
bl AddTextPrinterParameterizedWithColor
|
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
|
|
|
_021E6298: .word 0x00010200
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E6274
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E629C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E629C: ; 0x021E629C
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, lr}
|
|
|
|
sub sp, #4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r2, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r3, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0
|
|
|
|
add r3, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6274
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #4
|
|
|
|
pop {r3, r4, pc}
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E629C
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E62B0
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E62B0: ; 0x021E62B0
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
add r0, #0xac
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
cmp r0, #0
|
|
|
|
beq _021E62C0
|
2023-09-02 01:04:02 +00:00
|
|
|
bl thunk_OamManager_ApplyAndResetBuffers
|
2021-06-26 22:16:58 +00:00
|
|
|
_021E62C0:
|
2022-02-27 13:41:56 +00:00
|
|
|
bl GF_RunVramTransferTasks
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2023-07-06 02:07:45 +00:00
|
|
|
bl DoScheduledBgGpuUpdates
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r3, _021E62D8 ; =0x027E0000
|
|
|
|
ldr r1, _021E62DC ; =0x00003FF8
|
|
|
|
mov r0, #1
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r2, [r3, r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
orr r0, r2
|
2021-06-26 22:16:58 +00:00
|
|
|
str r0, [r3, r1]
|
|
|
|
pop {r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-27 18:48:56 +00:00
|
|
|
_021E62D8: .word 0x027E0000
|
|
|
|
_021E62DC: .word 0x00003FF8
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E62B0
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E62E0
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E62E0: ; 0x021E62E0
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, lr}
|
|
|
|
sub sp, #0x28
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r4, _021E62FC ; =ov113_021E6CD0
|
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
|
|
|
_021E62EA:
|
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 _021E62EA
|
|
|
|
add r0, sp, #0
|
2023-11-04 03:02:28 +00:00
|
|
|
bl GfGfx_SetBanks
|
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-11-28 00:40:57 +00:00
|
|
|
_021E62FC: .word ov113_021E6CD0
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E62E0
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E6300
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E6300: ; 0x021E6300
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, lr}
|
|
|
|
sub sp, #0xb8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E62E0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4]
|
2021-09-16 00:11:18 +00:00
|
|
|
bl BgConfig_Alloc
|
2021-06-18 12:29:26 +00:00
|
|
|
add r3, sp, #0xa8
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r5, _021E646C ; =ov113_021E6B94
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r3, #0
|
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
ldmia r5!, {r0, r1}
|
|
|
|
stmia r3!, {r0, r1}
|
|
|
|
add r0, r2, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl SetBothScreensModesAndDisable
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r2, _021E6470 ; =0x04000304
|
|
|
|
ldr r0, _021E6474 ; =0xFFFF7FFF
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrh r1, [r2]
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r5, _021E6478 ; =ov113_021E6C3C
|
2021-06-18 12:29:26 +00:00
|
|
|
add r3, sp, #0x8c
|
2021-06-27 18:48:56 +00:00
|
|
|
and r0, r1
|
2021-06-18 12:29:26 +00:00
|
|
|
strh r0, [r2]
|
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]
|
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl InitBgFromTemplate
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #5
|
2021-09-18 16:36:50 +00:00
|
|
|
bl BgClearTilemapBufferAndCommit
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r5, _021E647C ; =ov113_021E6C74
|
2021-06-18 12:29:26 +00:00
|
|
|
add r3, sp, #0x70
|
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]
|
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl InitBgFromTemplate
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #6
|
2021-09-18 16:36:50 +00:00
|
|
|
bl BgClearTilemapBufferAndCommit
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r5, _021E6480 ; =ov113_021E6BE8
|
2021-06-18 12:29:26 +00:00
|
|
|
add r3, sp, #0x54
|
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]
|
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl InitBgFromTemplate
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #7
|
2021-09-18 16:36:50 +00:00
|
|
|
bl BgClearTilemapBufferAndCommit
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r5, _021E6484 ; =ov113_021E6C04
|
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]
|
|
|
|
str r0, [r3]
|
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
|
|
|
mov r3, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl InitBgFromTemplate
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-09-18 16:36:50 +00:00
|
|
|
bl BgClearTilemapBufferAndCommit
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r5, _021E6488 ; =ov113_021E6C20
|
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, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r3]
|
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl InitBgFromTemplate
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #2
|
2021-09-18 16:36:50 +00:00
|
|
|
bl BgClearTilemapBufferAndCommit
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r5, _021E648C ; =ov113_021E6C58
|
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, #3
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r3]
|
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl InitBgFromTemplate
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #3
|
2021-09-18 16:36:50 +00:00
|
|
|
bl BgClearTilemapBufferAndCommit
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #5
|
|
|
|
mov r1, #0x20
|
|
|
|
mov r2, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl BG_ClearCharDataRange
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #6
|
|
|
|
mov r1, #0x20
|
|
|
|
mov r2, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl BG_ClearCharDataRange
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #7
|
|
|
|
mov r1, #0x20
|
|
|
|
mov r2, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl BG_ClearCharDataRange
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
|
|
|
mov r1, #0x20
|
|
|
|
mov r2, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl BG_ClearCharDataRange
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
|
|
|
mov r1, #0x20
|
|
|
|
mov r2, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl BG_ClearCharDataRange
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #3
|
|
|
|
mov r1, #0x20
|
|
|
|
mov r2, #0
|
2021-09-16 00:11:18 +00:00
|
|
|
bl BG_ClearCharDataRange
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0xb8
|
|
|
|
pop {r3, r4, r5, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-11-28 00:40:57 +00:00
|
|
|
_021E646C: .word ov113_021E6B94
|
2021-06-27 18:48:56 +00:00
|
|
|
_021E6470: .word 0x04000304
|
|
|
|
_021E6474: .word 0xFFFF7FFF
|
2021-11-28 00:40:57 +00:00
|
|
|
_021E6478: .word ov113_021E6C3C
|
|
|
|
_021E647C: .word ov113_021E6C74
|
|
|
|
_021E6480: .word ov113_021E6BE8
|
|
|
|
_021E6484: .word ov113_021E6C04
|
|
|
|
_021E6488: .word ov113_021E6C20
|
|
|
|
_021E648C: .word ov113_021E6C58
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E6300
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E6490
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E6490: ; 0x021E6490
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #3
|
2021-09-16 00:11:18 +00:00
|
|
|
bl FreeBgTilemapBuffer
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #2
|
2021-09-16 00:11:18 +00:00
|
|
|
bl FreeBgTilemapBuffer
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2021-09-16 00:11:18 +00:00
|
|
|
bl FreeBgTilemapBuffer
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #7
|
2021-09-16 00:11:18 +00:00
|
|
|
bl FreeBgTilemapBuffer
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #6
|
2021-09-16 00:11:18 +00:00
|
|
|
bl FreeBgTilemapBuffer
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #5
|
2021-09-16 00:11:18 +00:00
|
|
|
bl FreeBgTilemapBuffer
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x40]
|
2021-08-12 19:28:01 +00:00
|
|
|
bl FreeToHeap
|
2021-06-27 18:48:56 +00:00
|
|
|
ldr r2, _021E64D8 ; =0x04000304
|
2021-06-26 22:16:58 +00:00
|
|
|
ldrh r1, [r2]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsr r0, r2, #0xb
|
|
|
|
orr r0, r1
|
2021-06-26 22:16:58 +00:00
|
|
|
strh r0, [r2]
|
|
|
|
pop {r4, pc}
|
|
|
|
nop
|
2021-06-27 18:48:56 +00:00
|
|
|
_021E64D8: .word 0x04000304
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E6490
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E64DC
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E64DC: ; 0x021E64DC
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, lr}
|
|
|
|
sub sp, #4
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r3, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r1, #0
|
|
|
|
add r1, r2, #0
|
|
|
|
mov r2, #1
|
|
|
|
add r3, r4, #4
|
2022-01-27 21:18:13 +00:00
|
|
|
bl GfGfxLoader_GetScrnDataFromOpenNarc
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4]
|
|
|
|
ldr r0, [r4, #4]
|
|
|
|
ldrh r0, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsr r0, r0, #3
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r0, [r4, #0xc]
|
|
|
|
ldr r0, [r4, #4]
|
|
|
|
ldrh r0, [r0, #2]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsr r0, r0, #3
|
2021-06-18 12:29:26 +00:00
|
|
|
strb r0, [r4, #0xd]
|
|
|
|
ldr r0, [r4, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0xc
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #8]
|
|
|
|
add sp, #4
|
|
|
|
pop {r3, r4, pc}
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E64DC
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E650C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E650C: ; 0x021E650C
|
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
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xf1
|
2023-06-04 17:22:55 +00:00
|
|
|
bl NARC_New
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r2, [sp]
|
|
|
|
ldr r1, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r3, r2, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #5
|
|
|
|
add r4, r0, #0
|
2022-01-27 21:18:13 +00:00
|
|
|
bl GfGfxLoader_GXLoadPalFromOpenNarc
|
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 r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #7
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
|
|
|
ldr r2, [r5, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r3, #3
|
2022-01-27 21:18:13 +00:00
|
|
|
bl GfGfxLoader_LoadCharDataFromOpenNarc
|
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 r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #9
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
|
|
|
ldr r2, [r5, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r3, #3
|
2022-01-27 21:18:13 +00:00
|
|
|
bl GfGfxLoader_LoadScrnDataFromOpenNarc
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r3, [sp]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r2, r1, #0
|
2022-01-27 21:18:13 +00:00
|
|
|
bl GfGfxLoader_GXLoadPalFromOpenNarc
|
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 r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #6
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
|
|
|
ldr r2, [r5, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r3, #7
|
2022-01-27 21:18:13 +00:00
|
|
|
bl GfGfxLoader_LoadCharDataFromOpenNarc
|
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 r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #8]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #8
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0xc]
|
|
|
|
ldr r2, [r5, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r3, #7
|
2022-01-27 21:18:13 +00:00
|
|
|
bl GfGfxLoader_LoadScrnDataFromOpenNarc
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x13
|
|
|
|
lsl r0, r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, r0
|
|
|
|
add r1, r4, #0
|
|
|
|
mov r2, #0xa
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E64DC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #5
|
|
|
|
lsl r0, r0, #6
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, r0
|
|
|
|
add r1, r4, #0
|
|
|
|
mov r2, #0xc
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E64DC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x15
|
|
|
|
lsl r0, r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, r0
|
|
|
|
add r1, r4, #0
|
|
|
|
mov r2, #0xe
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E64DC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
|
|
|
lsl r0, r0, #8
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, r0
|
|
|
|
add r1, r4, #0
|
|
|
|
mov r2, #0xb
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E64DC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x11
|
|
|
|
lsl r0, r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, r0
|
|
|
|
add r1, r4, #0
|
|
|
|
mov r2, #0xd
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E64DC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x12
|
|
|
|
lsl r0, r0, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, r0
|
|
|
|
add r1, r4, #0
|
|
|
|
mov r2, #0xf
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E64DC
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2023-06-04 17:27:11 +00:00
|
|
|
bl NARC_Delete
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrb r0, [r5, #0x19]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
|
|
|
add r2, r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
ldr r0, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #0xd
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
|
|
|
ldr r0, [r5, #0x40]
|
2022-04-05 13:33:59 +00:00
|
|
|
bl LoadUserFrameGfx2
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #6
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r2, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
lsl r1, r1, #6
|
2022-03-10 15:29:01 +00:00
|
|
|
bl LoadFontPal1
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #6
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r2, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
|
|
|
lsl r1, r1, #6
|
2022-03-10 15:29:01 +00:00
|
|
|
bl LoadFontPal1
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #0x10
|
|
|
|
pop {r3, r4, r5, pc}
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E650C
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E663C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E663C: ; 0x021E663C
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
mov r0, #0x12
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, r0]
|
2021-08-12 19:28:01 +00:00
|
|
|
bl FreeToHeap
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x11
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, r0]
|
2021-08-12 19:28:01 +00:00
|
|
|
bl FreeToHeap
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
|
|
|
lsl r0, r0, #8
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, r0]
|
2021-08-12 19:28:01 +00:00
|
|
|
bl FreeToHeap
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x15
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, r0]
|
2021-08-12 19:28:01 +00:00
|
|
|
bl FreeToHeap
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #5
|
|
|
|
lsl r0, r0, #6
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, r0]
|
2021-08-12 19:28:01 +00:00
|
|
|
bl FreeToHeap
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x13
|
|
|
|
lsl r0, r0, #4
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, r0]
|
2021-08-12 19:28:01 +00:00
|
|
|
bl FreeToHeap
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E663C
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E6680
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E6680: ; 0x021E6680
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
2022-03-10 15:29:01 +00:00
|
|
|
bl FontID_Alloc
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r3, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0
|
|
|
|
mov r1, #0x1b
|
|
|
|
mov r2, #1
|
2021-08-13 18:03:14 +00:00
|
|
|
bl NewMsgDataFromNarc
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #0x44]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x10
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r2, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r0, #0
|
2023-06-04 17:31:05 +00:00
|
|
|
bl MessageFormat_New_Custom
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #0x48]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #8
|
2023-06-03 07:18:52 +00:00
|
|
|
bl String_New
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #0x4c]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
lsl r0, r0, #8
|
2023-06-03 07:18:52 +00:00
|
|
|
bl String_New
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #0x50]
|
|
|
|
ldr r0, [r4, #0x44]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2021-08-14 00:11:40 +00:00
|
|
|
bl NewString_ReadMsgData
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #0x54]
|
|
|
|
ldr r0, [r4, #0x44]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #5
|
2021-08-14 00:11:40 +00:00
|
|
|
bl NewString_ReadMsgData
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #0x58]
|
|
|
|
ldr r0, [r4, #4]
|
|
|
|
ldr r0, [r0, #4]
|
2023-06-05 00:17:37 +00:00
|
|
|
bl Save_PlayerData_GetProfileAddr
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r4]
|
2021-09-10 12:45:45 +00:00
|
|
|
bl PlayerProfile_GetPlayerName_NewString
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r4, #0x5c]
|
|
|
|
pop {r4, pc}
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E6680
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E66E4
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E66E4: ; 0x021E66E4
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x5c]
|
2023-06-04 17:27:11 +00:00
|
|
|
bl String_Delete
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x58]
|
2023-06-04 17:27:11 +00:00
|
|
|
bl String_Delete
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x54]
|
2023-06-04 17:27:11 +00:00
|
|
|
bl String_Delete
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x50]
|
2023-06-04 17:27:11 +00:00
|
|
|
bl String_Delete
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x4c]
|
2023-06-04 17:27:11 +00:00
|
|
|
bl String_Delete
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x48]
|
2023-06-04 17:48:28 +00:00
|
|
|
bl MessageFormat_Delete
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4, #0x44]
|
2021-08-13 18:03:14 +00:00
|
|
|
bl DestroyMsgData
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #4
|
2022-03-10 15:29:01 +00:00
|
|
|
bl FontID_Release
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E66E4
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E671C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E671C: ; 0x021E671C
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, r0, #0
|
|
|
|
add r5, r7, #0
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r4, _021E6750 ; =ov113_021E6C90
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r6, #0
|
|
|
|
add r5, #0x68
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E6728:
|
|
|
|
ldr r0, [r7, #0x40]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r5, #0
|
|
|
|
add r2, r4, #0
|
2021-08-13 18:03:14 +00:00
|
|
|
bl AddWindow
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
mov r1, #0
|
2021-08-13 14:06:39 +00:00
|
|
|
bl FillWindowPixelBuffer
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r6, #1
|
|
|
|
add r4, #8
|
|
|
|
add r5, #0x10
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r6, #4
|
|
|
|
blt _021E6728
|
|
|
|
ldr r0, [r7]
|
2023-12-26 19:50:55 +00:00
|
|
|
bl YesNoPrompt_Create
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, #0xa8
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r7]
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-11-28 00:40:57 +00:00
|
|
|
_021E6750: .word ov113_021E6C90
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E671C
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E6754
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E6754: ; 0x021E6754
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r4, r5, r6, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r0, #0
|
|
|
|
add r5, r6, #0
|
|
|
|
mov r4, #0
|
|
|
|
add r5, #0x68
|
2021-06-26 22:16:58 +00:00
|
|
|
_021E675E:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-08-14 12:42:17 +00:00
|
|
|
bl ClearWindowTilemapAndCopyToVram
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
2021-08-13 18:03:14 +00:00
|
|
|
bl RemoveWindow
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r4, #1
|
|
|
|
add r5, #0x10
|
2021-06-26 22:16:58 +00:00
|
|
|
cmp r4, #4
|
|
|
|
blt _021E675E
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, #0xa8
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r6]
|
2023-12-26 19:50:55 +00:00
|
|
|
bl YesNoPrompt_Destroy
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r4, r5, r6, pc}
|
|
|
|
thumb_func_end ov113_021E6754
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E677C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E677C: ; 0x021E677C
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #0x28
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x20
|
2022-02-27 13:41:56 +00:00
|
|
|
bl GF_CreateVramTransferManager
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5]
|
2023-09-02 01:04:02 +00:00
|
|
|
bl SpriteRenderer_Create
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r5, #0
|
|
|
|
add r1, #0xac
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0xac
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r1, _021E6920 ; =ov113_021E6CB0
|
|
|
|
ldr r2, _021E6924 ; =ov113_021E6BA4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #2
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200CF70
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200B2E0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r5]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200B2E8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0xac
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2023-09-02 01:04:02 +00:00
|
|
|
bl SpriteRenderer_CreateGfxHandler
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r5, #0
|
|
|
|
add r1, #0xb0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r5, #0
|
|
|
|
add r0, #0xac
|
|
|
|
add r1, #0xb0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0x11
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200CFF4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r3, #0
|
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r3, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, #0xac
|
|
|
|
add r1, #0xb0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r2, _021E6928 ; =ov113_021E6B74
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200D2A4
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r3, _021E692C ; =ov113_021E6BB8
|
2021-06-18 12:29:26 +00:00
|
|
|
add r2, sp, #0x10
|
2021-06-27 18:48:56 +00:00
|
|
|
ldmia r3!, {r0, r1}
|
|
|
|
stmia r2!, {r0, r1}
|
|
|
|
ldmia r3!, {r0, r1}
|
|
|
|
stmia r2!, {r0, r1}
|
|
|
|
ldmia r3!, {r0, r1}
|
|
|
|
stmia r2!, {r0, r1}
|
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0xac
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2023-09-02 01:04:02 +00:00
|
|
|
bl SpriteRenderer_CreateGfxHandler
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r5, #0
|
|
|
|
add r1, #0xb4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r5, #0
|
|
|
|
add r0, #0xac
|
|
|
|
add r1, #0xb4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
|
|
|
add r2, sp, #0x10
|
2023-09-02 01:04:02 +00:00
|
|
|
bl SpriteRenderer_Init2DGfxResManagersFromCountsArray
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0xb0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200E2B0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r0, #0
|
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0xb4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200E2B4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r1, [r5]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x14
|
2023-06-04 17:22:55 +00:00
|
|
|
bl NARC_New
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r5, #0
|
|
|
|
add r1, #0xfc
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r1]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074490
|
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]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
|
|
|
add r2, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r1, [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]
|
|
|
|
str r1, [sp, #0xc]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r5, #0
|
|
|
|
add r0, #0xac
|
|
|
|
add r1, #0xb4
|
|
|
|
add r2, #0xfc
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
|
|
|
ldr r2, [r2]
|
2023-09-02 01:04:02 +00:00
|
|
|
bl SpriteRenderer_LoadPlttResObjFromOpenNarc
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_02074494
|
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]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r5, #0
|
|
|
|
add r2, r5, #0
|
|
|
|
add r0, #0xac
|
|
|
|
add r1, #0xb4
|
|
|
|
add r2, #0xfc
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
|
|
|
ldr r2, [r2]
|
2023-09-02 01:04:02 +00:00
|
|
|
bl SpriteRenderer_LoadCellResObjFromOpenNarc
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_020744A0
|
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]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r5, #0
|
|
|
|
add r0, #0xac
|
|
|
|
add r1, #0xb4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r2, #0x14
|
2023-09-02 01:04:02 +00:00
|
|
|
bl SpriteRenderer_LoadAnimResObjFromNarcId
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
|
|
|
add r6, r4, #0
|
|
|
|
mov r7, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E68B4:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xc9
|
|
|
|
mov r1, #0
|
|
|
|
add r2, r4, #0
|
2022-02-28 21:25:27 +00:00
|
|
|
bl GetMonIconNaixEx
|
2021-06-18 12:29:26 +00:00
|
|
|
str r6, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r3, r0, #0
|
|
|
|
add r1, r5, #0
|
|
|
|
add r2, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r7, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
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, #0xac
|
|
|
|
add r1, #0xb4
|
|
|
|
add r2, #0xfc
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
|
|
|
ldr r2, [r2]
|
2023-09-02 01:04:02 +00:00
|
|
|
bl SpriteRenderer_LoadCharResObjFromOpenNarc
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r4, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r4, #7
|
|
|
|
blt _021E68B4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #7
|
|
|
|
mov r6, #0
|
|
|
|
mov r7, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E68EA:
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xc9
|
|
|
|
mov r1, #0
|
|
|
|
add r2, r4, #0
|
2022-02-28 21:25:27 +00:00
|
|
|
bl GetMonIconNaixEx
|
2021-06-18 12:29:26 +00:00
|
|
|
str r6, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r3, r0, #0
|
|
|
|
add r1, r5, #0
|
|
|
|
add r2, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r7, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
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, #0xac
|
|
|
|
add r1, #0xb4
|
|
|
|
add r2, #0xfc
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
|
|
|
ldr r2, [r2]
|
2023-09-02 01:04:02 +00:00
|
|
|
bl SpriteRenderer_LoadCharResObjFromOpenNarc
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r4, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r4, #0xe
|
|
|
|
blt _021E68EA
|
|
|
|
add sp, #0x28
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
|
|
|
nop
|
2021-11-28 00:40:57 +00:00
|
|
|
_021E6920: .word ov113_021E6CB0
|
|
|
|
_021E6924: .word ov113_021E6BA4
|
|
|
|
_021E6928: .word ov113_021E6B74
|
|
|
|
_021E692C: .word ov113_021E6BB8
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E677C
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E6930
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E6930: ; 0x021E6930
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
add r1, r4, #0
|
|
|
|
add r0, #0xac
|
|
|
|
add r1, #0xb4
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
2023-09-03 20:57:28 +00:00
|
|
|
bl SpriteRenderer_UnloadResourcesAndRemoveGfxHandler
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r1, r4, #0
|
|
|
|
add r0, #0xac
|
|
|
|
add r1, #0xb0
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
2023-09-02 01:04:02 +00:00
|
|
|
bl SpriteRenderer_RemoveGfxHandler
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #0
|
|
|
|
add r0, #0xb4
|
2021-06-26 22:16:58 +00:00
|
|
|
str r1, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0xb0
|
2021-06-26 22:16:58 +00:00
|
|
|
str r1, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0xfc
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r0]
|
2023-06-04 17:27:11 +00:00
|
|
|
bl NARC_Delete
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0xac
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r0]
|
2023-09-02 01:04:02 +00:00
|
|
|
bl SpriteRenderer_Delete
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
mov r1, #0
|
|
|
|
add r0, #0xac
|
2021-06-26 22:16:58 +00:00
|
|
|
str r1, [r0]
|
2022-02-27 13:41:56 +00:00
|
|
|
bl GF_DestroyVramTransferManager
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r4]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200B2E0
|
2021-06-26 22:16:58 +00:00
|
|
|
pop {r4, pc}
|
|
|
|
thumb_func_end ov113_021E6930
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E6988
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E6988: ; 0x021E6988
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E677C
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E69CC
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x10
|
|
|
|
mov r1, #1
|
2023-11-04 03:02:28 +00:00
|
|
|
bl GfGfx_EngineATogglePlanes
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x10
|
|
|
|
mov r1, #1
|
2023-11-04 03:02:28 +00:00
|
|
|
bl GfGfx_EngineBTogglePlanes
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r4, pc}
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E6988
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E69A8
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E69A8: ; 0x021E69A8
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
|
|
|
mov r0, #0x10
|
|
|
|
mov r1, #0
|
2023-11-04 03:02:28 +00:00
|
|
|
bl GfGfx_EngineBTogglePlanes
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0x10
|
|
|
|
mov r1, #0
|
2023-11-04 03:02:28 +00:00
|
|
|
bl GfGfx_EngineATogglePlanes
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6AB0
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
bl ov113_021E6930
|
|
|
|
pop {r4, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E69A8
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E69CC
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E69CC: ; 0x021E69CC
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, r6, r7, lr}
|
|
|
|
sub sp, #0x38
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
2021-11-28 00:40:57 +00:00
|
|
|
ldr r6, _021E6AAC ; =ov113_021E6CF8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r7, #0
|
|
|
|
add r4, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E69D8:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r5, #0
|
|
|
|
add r0, #0xac
|
|
|
|
add r1, #0xb0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r2, r6, #0
|
2023-09-02 01:04:02 +00:00
|
|
|
bl SpriteRenderer_CreateSprite
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r4, #0
|
|
|
|
add r1, #0xb8
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0xb8
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2022-04-01 01:10:09 +00:00
|
|
|
bl Set2dSpriteVisibleFlag
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0xb8
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #1
|
2022-04-02 16:49:09 +00:00
|
|
|
bl Set2dSpriteAnimActiveFlag
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0xb8
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #2
|
2023-09-04 01:42:26 +00:00
|
|
|
bl Sprite_SetPriority
|
2021-06-27 18:48:56 +00:00
|
|
|
add r7, r7, #1
|
|
|
|
add r6, #0x28
|
|
|
|
add r4, r4, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r7, #3
|
|
|
|
blt _021E69D8
|
|
|
|
add r0, sp, #4
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
|
|
|
mov r2, #0x34
|
2021-09-16 00:11:18 +00:00
|
|
|
bl MI_CpuFill8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
|
|
|
mov r1, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x30]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #0xc9
|
|
|
|
add r2, r1, #0
|
2022-02-28 20:51:29 +00:00
|
|
|
bl GetMonIconPaletteEx
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x10]
|
|
|
|
str r4, [sp, #0x34]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0x28
|
2021-06-18 12:29:26 +00:00
|
|
|
add r0, sp, #4
|
|
|
|
strh r1, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x1c]
|
|
|
|
str r0, [sp, #0x20]
|
|
|
|
str r0, [sp, #0x24]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r0, r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x28]
|
|
|
|
str r0, [sp, #0x2c]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r7, #0x1d
|
2021-06-18 12:29:26 +00:00
|
|
|
str r4, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r5, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E6A56:
|
|
|
|
cmp r4, #7
|
|
|
|
add r0, sp, #4
|
|
|
|
bge _021E6A64
|
|
|
|
strh r7, [r0, #2]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #2
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x14]
|
|
|
|
b _021E6A6E
|
|
|
|
_021E6A64:
|
|
|
|
ldr r1, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r1, #0x9b
|
2021-06-18 12:29:26 +00:00
|
|
|
strh r1, [r0, #2]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x14]
|
|
|
|
_021E6A6E:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #0x18]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r5, #0
|
|
|
|
add r0, #0xac
|
|
|
|
add r1, #0xb4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
|
|
|
add r2, sp, #4
|
2023-09-03 20:57:28 +00:00
|
|
|
bl SpriteRenderer_LoadResourcesAndCreateSprite
|
2021-06-27 18:48:56 +00:00
|
|
|
add r1, r6, #0
|
|
|
|
add r1, #0xc4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [r1]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r6, #0
|
|
|
|
add r0, #0xc4
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #0
|
2023-09-03 20:57:28 +00:00
|
|
|
bl UnkImageStruct_SetSpriteVisibleFlag
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [sp]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r4, #1
|
|
|
|
add r0, #0x18
|
|
|
|
add r7, #0x18
|
|
|
|
add r6, r6, #4
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp]
|
|
|
|
cmp r4, #0xe
|
|
|
|
blt _021E6A56
|
|
|
|
add sp, #0x38
|
|
|
|
pop {r3, r4, r5, r6, r7, pc}
|
|
|
|
nop
|
2021-11-28 00:40:57 +00:00
|
|
|
_021E6AAC: .word ov113_021E6CF8
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E69CC
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E6AB0
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E6AB0: ; 0x021E6AB0
|
2021-06-26 22:16:58 +00:00
|
|
|
push {r4, r5, r6, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
|
|
|
mov r6, #0
|
|
|
|
add r4, r5, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
_021E6AB8:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0xc4
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
cmp r0, #0
|
|
|
|
beq _021E6AC6
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200D9DC
|
2021-06-26 22:16:58 +00:00
|
|
|
_021E6AC6:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r6, r6, #1
|
|
|
|
add r4, r4, #4
|
2021-06-26 22:16:58 +00:00
|
|
|
cmp r6, #0xe
|
|
|
|
blt _021E6AB8
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r4, #0
|
2021-06-26 22:16:58 +00:00
|
|
|
_021E6AD0:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r0, #0xb8
|
2021-06-26 22:16:58 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
cmp r0, #0
|
|
|
|
beq _021E6ADE
|
2023-01-10 08:17:26 +00:00
|
|
|
bl Sprite_Delete
|
2021-06-26 22:16:58 +00:00
|
|
|
_021E6ADE:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r4, #1
|
|
|
|
add r5, r5, #4
|
2021-06-26 22:16:58 +00:00
|
|
|
cmp r4, #3
|
|
|
|
blt _021E6AD0
|
|
|
|
pop {r4, r5, r6, pc}
|
|
|
|
thumb_func_end ov113_021E6AB0
|
|
|
|
|
|
|
|
thumb_func_start ov113_021E6AE8
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E6AE8: ; 0x021E6AE8
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r3, r4, r5, lr}
|
|
|
|
sub sp, #8
|
2021-06-27 18:48:56 +00:00
|
|
|
add r5, r0, #0
|
|
|
|
add r4, r1, #0
|
|
|
|
mov r0, #0xc9
|
|
|
|
mov r1, #0
|
2022-02-28 21:25:27 +00:00
|
|
|
bl GetMonIconNaixEx
|
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]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
str r0, [sp, #4]
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r5, #0
|
|
|
|
add r1, r5, #0
|
|
|
|
add r0, #0xac
|
|
|
|
add r1, #0xb4
|
|
|
|
add r5, #0xfc
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, [r1]
|
|
|
|
ldr r2, [r5]
|
2021-06-27 19:11:25 +00:00
|
|
|
bl sub_0200E2B8
|
2021-06-18 12:29:26 +00:00
|
|
|
add sp, #8
|
|
|
|
pop {r3, r4, r5, pc}
|
2021-08-08 01:30:37 +00:00
|
|
|
.balign 4, 0
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E6AE8
|
2021-06-18 12:29:26 +00:00
|
|
|
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_start ov113_021E6B1C
|
2021-06-27 18:48:56 +00:00
|
|
|
ov113_021E6B1C: ; 0x021E6B1C
|
2021-06-18 12:29:26 +00:00
|
|
|
push {r4, lr}
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, r0, #0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldrb r0, [r4, #0x1b]
|
|
|
|
cmp r0, #1
|
|
|
|
beq _021E6B2C
|
|
|
|
ldrb r0, [r4, #0x1a]
|
|
|
|
cmp r0, #0
|
|
|
|
bne _021E6B3A
|
|
|
|
_021E6B2C:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0xbc
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #4
|
2022-04-02 16:49:09 +00:00
|
|
|
bl Set2dSpriteAnimSeqNo
|
2021-06-18 12:29:26 +00:00
|
|
|
b _021E6B46
|
|
|
|
_021E6B3A:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r0, r4, #0
|
|
|
|
add r0, #0xbc
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r0]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #2
|
2022-04-02 16:49:09 +00:00
|
|
|
bl Set2dSpriteAnimSeqNo
|
2021-06-18 12:29:26 +00:00
|
|
|
_021E6B46:
|
|
|
|
ldrb r0, [r4, #0x1b]
|
|
|
|
cmp r0, #1
|
|
|
|
beq _021E6B54
|
|
|
|
ldrb r1, [r4, #0x1a]
|
2021-06-27 18:48:56 +00:00
|
|
|
sub r0, r0, #1
|
2021-06-18 12:29:26 +00:00
|
|
|
cmp r1, r0
|
|
|
|
bne _021E6B60
|
|
|
|
_021E6B54:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, #0xc0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #7
|
2022-04-02 16:49:09 +00:00
|
|
|
bl Set2dSpriteAnimSeqNo
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r4, pc}
|
|
|
|
_021E6B60:
|
2021-06-27 18:48:56 +00:00
|
|
|
add r4, #0xc0
|
2021-06-18 12:29:26 +00:00
|
|
|
ldr r0, [r4]
|
2021-06-27 18:48:56 +00:00
|
|
|
mov r1, #5
|
2022-04-02 16:49:09 +00:00
|
|
|
bl Set2dSpriteAnimSeqNo
|
2021-06-18 12:29:26 +00:00
|
|
|
pop {r4, pc}
|
2021-06-26 22:16:58 +00:00
|
|
|
thumb_func_end ov113_021E6B1C
|
|
|
|
|
|
|
|
.rodata
|
|
|
|
|
|
|
|
_021E6B6C:
|
|
|
|
.byte 0x00, 0x0F, 0x07, 0x00
|
2021-11-28 00:40:57 +00:00
|
|
|
.byte 0x00, 0x0F, 0x01, 0x00
|
|
|
|
|
|
|
|
ov113_021E6B74: ; 0x021E6B74
|
|
|
|
.byte 0x06, 0x00, 0x07, 0x00, 0x05, 0x00, 0x04, 0x00, 0xFF, 0xFF, 0xFF, 0xFF
|
|
|
|
.byte 0x49, 0x00
|
|
|
|
|
|
|
|
ov113_021E6B82: ; 0x021E6B82
|
|
|
|
.byte 0xA0, 0xC0, 0xC0, 0x00, 0x10, 0x25, 0xDC, 0xF4, 0x78, 0x8D, 0xDC, 0xF4, 0xFF, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00
|
|
|
|
|
|
|
|
ov113_021E6B94: ; 0x021E6B94
|
|
|
|
.byte 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00
|
|
|
|
|
|
|
|
ov113_021E6BA4: ; 0x021E6BA4
|
|
|
|
.byte 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x40, 0x00, 0x00
|
|
|
|
.byte 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00
|
|
|
|
|
|
|
|
ov113_021E6BB8: ; 0x021E6BB8
|
|
|
|
.byte 0x0E, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00
|
2021-06-26 22:16:58 +00:00
|
|
|
.byte 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
2021-11-28 00:40:57 +00:00
|
|
|
|
|
|
|
ov113_021E6BD0: ; 0x021E6BD0
|
2021-06-26 22:16:58 +00:00
|
|
|
.byte 0x46, 0x01, 0x47, 0x01, 0x48, 0x02, 0x49, 0x03, 0x4A, 0x04, 0x4B, 0x04, 0x4C, 0x05, 0x4D, 0x06
|
2021-11-28 00:40:57 +00:00
|
|
|
.byte 0xCE, 0x07, 0x51, 0x07, 0x52, 0x08, 0x53, 0x08
|
|
|
|
|
|
|
|
ov113_021E6BE8: ; 0x021E6BE8
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
2021-06-26 22:16:58 +00:00
|
|
|
.byte 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x1D, 0x00, 0x00, 0x03, 0x00, 0x00
|
2021-11-28 00:40:57 +00:00
|
|
|
.byte 0x00, 0x00, 0x00, 0x00
|
|
|
|
|
|
|
|
ov113_021E6C04: ; 0x021E6C04
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00
|
2021-06-26 22:16:58 +00:00
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x1F, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
2021-11-28 00:40:57 +00:00
|
|
|
|
|
|
|
ov113_021E6C20: ; 0x021E6C20
|
2021-06-26 22:16:58 +00:00
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
2021-11-28 00:40:57 +00:00
|
|
|
.byte 0x01, 0x00, 0x1E, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
|
|
|
|
|
|
ov113_021E6C3C: ; 0x021E6C3C
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00
|
2021-06-26 22:16:58 +00:00
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x1F, 0x04
|
2021-11-28 00:40:57 +00:00
|
|
|
.byte 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
|
|
|
|
|
|
ov113_021E6C58: ; 0x021E6C58
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
2021-06-26 22:16:58 +00:00
|
|
|
.byte 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x1D, 0x00, 0x00, 0x03, 0x00, 0x00
|
2021-11-28 00:40:57 +00:00
|
|
|
.byte 0x00, 0x00, 0x00, 0x00
|
|
|
|
|
|
|
|
ov113_021E6C74: ; 0x021E6C74
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00
|
2021-06-26 22:16:58 +00:00
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x1E, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
2021-11-28 00:40:57 +00:00
|
|
|
|
|
|
|
ov113_021E6C90: ; 0x021E6C90
|
2021-06-26 22:16:58 +00:00
|
|
|
.byte 0x01, 0x19, 0x15, 0x06, 0x02, 0x0C, 0xE1, 0x01, 0x05, 0x02, 0x03, 0x18, 0x14, 0x0C, 0x01, 0x00
|
|
|
|
.byte 0x01, 0x02, 0x01, 0x18, 0x14, 0x0C, 0x01, 0x00, 0x01, 0x1C, 0x09, 0x03, 0x02, 0x0C, 0xED, 0x01
|
2021-11-28 00:40:57 +00:00
|
|
|
|
|
|
|
ov113_021E6CB0: ; 0x021E6CB0
|
2021-06-26 22:16:58 +00:00
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00
|
2021-11-28 00:40:57 +00:00
|
|
|
|
|
|
|
ov113_021E6CD0: ; 0x021E6CD0
|
2021-06-26 22:16:58 +00:00
|
|
|
.byte 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
2021-11-28 00:40:57 +00:00
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
|
|
|
|
|
|
ov113_021E6CF8: ; 0x021E6CF8
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0xE0, 0x00, 0xB0, 0x00
|
2021-06-26 22:16:58 +00:00
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0xEC, 0x00, 0x1C, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEC, 0x00, 0x84, 0x00
|
|
|
|
.byte 0x00, 0x00, 0x05, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00
|
|
|
|
.byte 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
2021-06-27 18:48:56 +00:00
|
|
|
; 0x021E6D70
|