pokeheartgold/asm/overlay_57.s

8683 lines
151 KiB
ArmAsm
Raw Normal View History

.include "asm/macros.inc"
.include "global.inc"
.text
2021-06-18 12:29:26 +00:00
2021-06-25 22:31:03 +00:00
thumb_func_start ov57_022378C0
2021-06-27 18:48:56 +00:00
ov57_022378C0: ; 0x022378C0
2021-06-18 12:29:26 +00:00
push {r3, lr}
ldr r0, _022378D4 ; =SDK_OVERLAY_OVY_6_ID
2021-06-27 18:48:56 +00:00
mov r1, #2
bl HandleLoadOverlay
ldr r0, _022378D8 ; =SDK_OVERLAY_OVY_7_ID
2021-06-27 18:48:56 +00:00
mov r1, #2
bl HandleLoadOverlay
2021-06-18 12:29:26 +00:00
pop {r3, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
_022378D4: .word SDK_OVERLAY_OVY_6_ID
_022378D8: .word SDK_OVERLAY_OVY_7_ID
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_022378C0
thumb_func_start ov57_022378DC
2021-06-27 18:48:56 +00:00
ov57_022378DC: ; 0x022378DC
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
mov r2, #2
add r5, r0, #0
mov r0, #3
mov r1, #0x34
lsl r2, r2, #0x12
bl CreateHeap
2021-06-27 18:48:56 +00:00
mov r1, #0x46
add r0, r5, #0
lsl r1, r1, #4
mov r2, #0x34
bl OverlayManager_CreateAndGetData
2021-06-27 18:48:56 +00:00
mov r2, #0x46
mov r1, #0
lsl r2, r2, #4
add r4, r0, #0
bl memset
2021-06-27 18:48:56 +00:00
add r0, r5, #0
bl OverlayManager_GetField18
2021-06-25 22:31:03 +00:00
str r0, [r4]
2021-06-27 18:48:56 +00:00
mov r0, #0xb4
mov r1, #0x34
2021-08-12 19:28:01 +00:00
bl NARC_ctor
2021-06-27 18:48:56 +00:00
ldr r1, _02237AE4 ; =0x0000045C
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
ldr r0, [r4]
ldr r0, [r0, #0x2c]
2021-06-27 19:11:25 +00:00
bl sub_020183F0
2021-06-27 18:48:56 +00:00
ldr r1, _02237AE8 ; =0x0000040C
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-09-05 21:46:23 +00:00
bl AllocMonZeroed
2021-06-27 18:48:56 +00:00
ldr r1, _02237AEC ; =0x00000458
mov r2, #0xff
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xd4
2021-06-25 22:31:03 +00:00
str r2, [r0]
2021-06-27 18:48:56 +00:00
mov r5, #0
sub r1, #0x10
2021-06-25 22:31:03 +00:00
str r5, [r4, r1]
ldr r0, [r4]
ldr r0, [r0, #0x20]
bl SealCase_CountUniqueSeals
2021-06-27 18:48:56 +00:00
lsr r2, r0, #0x1f
lsl r1, r0, #0x1d
sub r1, r1, r2
mov r0, #0x1d
ror r1, r0
add r0, r2, r1
2021-06-25 22:31:03 +00:00
beq _02237954
2021-06-27 18:48:56 +00:00
mov r5, #1
2021-06-25 22:31:03 +00:00
_02237954:
ldr r0, [r4]
ldr r0, [r0, #0x20]
bl SealCase_CountUniqueSeals
2021-06-27 18:48:56 +00:00
asr r1, r0, #2
lsr r1, r1, #0x1d
add r1, r0, r1
asr r0, r1, #3
add r1, r5, r0
ldr r0, _02237AF0 ; =0x0000044C
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
ldr r1, [r4, r0]
cmp r1, #0xa
ble _02237974
2021-06-27 18:48:56 +00:00
mov r1, #0xa
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
_02237974:
ldr r0, [r4]
bl ov57_02237E78
2021-06-27 18:48:56 +00:00
mov r1, #0xfb
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
ldr r0, [r4]
bl ov57_02237E78
2021-06-27 18:48:56 +00:00
mov r1, #0x3f
lsl r1, r1, #4
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
ldr r0, [r4]
ldr r0, [r0, #0x20]
2021-11-09 15:27:41 +00:00
bl SealCase_inventory_get
2021-06-25 22:31:03 +00:00
str r0, [r4, #0x64]
2021-06-27 18:48:56 +00:00
mov r6, #0
add r5, r4, #0
mov r7, #0xff
2021-06-25 22:31:03 +00:00
_0223799C:
ldr r0, [r4]
2021-06-27 18:48:56 +00:00
add r1, r6, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #0x20]
2021-11-09 15:27:41 +00:00
bl SealCase_GetCapsuleI
2021-06-25 22:31:03 +00:00
str r7, [r5, #4]
str r0, [r5, #8]
2021-06-27 18:48:56 +00:00
add r6, r6, #1
add r5, #8
2021-06-25 22:31:03 +00:00
cmp r6, #0xc
blt _0223799C
2021-06-27 18:48:56 +00:00
mov r5, #0
add r6, r5, #0
mov r7, #0xa2
2021-06-25 22:31:03 +00:00
_022379B8:
ldr r0, [r4]
2021-06-27 18:48:56 +00:00
add r0, r0, r6
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #4]
cmp r0, #0
beq _022379D6
2021-06-27 18:48:56 +00:00
add r1, r7, #0
mov r2, #0
2021-09-06 13:41:18 +00:00
bl GetMonData
2021-06-25 22:31:03 +00:00
cmp r0, #0
beq _022379D6
2021-06-27 18:48:56 +00:00
lsl r0, r0, #3
add r0, r4, r0
sub r0, r0, #4
2021-06-25 22:31:03 +00:00
str r5, [r0]
_022379D6:
2021-06-27 18:48:56 +00:00
add r5, r5, #1
add r6, r6, #4
2021-06-25 22:31:03 +00:00
cmp r5, #6
blt _022379B8
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-25 22:31:03 +00:00
bl ov57_02237CA8
bl ov57_0223BB5C
bl ov57_02238B28
2021-06-27 18:48:56 +00:00
mov r1, #0x96
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-09-16 00:11:18 +00:00
bl BgConfig_Alloc
2021-06-27 18:48:56 +00:00
add r1, r4, #0
add r1, #0xe4
2021-06-25 22:31:03 +00:00
str r0, [r1]
2021-06-27 18:48:56 +00:00
mov r0, #0x40
mov r1, #0x34
2021-06-27 19:11:25 +00:00
bl sub_0202055C
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-27 19:11:25 +00:00
bl sub_020030E8
2021-06-27 18:48:56 +00:00
add r1, r4, #0
add r1, #0xe8
2021-06-25 22:31:03 +00:00
str r0, [r1]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_02003B50
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
mov r2, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
lsl r2, r2, #8
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_AllocBuffers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
mov r1, #1
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
lsl r2, r1, #9
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_AllocBuffers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
mov r1, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
lsl r2, r1, #8
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_AllocBuffers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
mov r2, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #3
lsl r2, r2, #8
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_AllocBuffers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
bl ov57_02237CEC
bl ov57_02238BCC
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-27 19:11:25 +00:00
bl sub_02007FD4
2021-06-27 18:48:56 +00:00
mov r1, #0x71
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
mov r1, #1
mov r2, #0
2021-06-27 19:11:25 +00:00
bl sub_02016EDC
2021-06-27 18:48:56 +00:00
mov r1, #0xa1
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
ldr r0, [r4]
ldr r0, [r0, #0x24]
2021-09-17 00:20:16 +00:00
bl Options_GetFrame
2021-06-27 18:48:56 +00:00
add r5, r0, #0
add r0, r4, #0
add r1, r4, #0
add r0, #0xe4
add r1, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r1]
2021-06-27 18:48:56 +00:00
add r2, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_022395B8
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r4, #0
add r0, #0xe4
add r1, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r1]
2021-06-27 18:48:56 +00:00
add r2, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239670
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xd4
2021-06-25 22:31:03 +00:00
bl ov57_02239058
2021-06-27 19:11:25 +00:00
bl sub_020210BC
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-27 19:11:25 +00:00
bl sub_02021148
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223BB84
2021-06-27 18:48:56 +00:00
ldr r0, _02237AF4 ; =ov57_02237E38
add r1, r4, #0
2021-09-18 16:36:50 +00:00
bl Main_SetVBlankIntrCB
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022386F0
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02237AE4: .word 0x0000045C
_02237AE8: .word 0x0000040C
_02237AEC: .word 0x00000458
_02237AF0: .word 0x0000044C
_02237AF4: .word ov57_02237E38
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_022378DC
thumb_func_start ov57_02237AF8
2021-06-27 18:48:56 +00:00
ov57_02237AF8: ; 0x02237AF8
2021-06-25 22:31:03 +00:00
push {r4, lr}
bl OverlayManager_GetData
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223A0E0
cmp r0, #0
bne _02237B0C
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_02237B0C:
2021-06-27 18:48:56 +00:00
mov r0, #0x71
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_02008120
2021-06-25 22:31:03 +00:00
bl ov57_02238C0C
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02237AF8
thumb_func_start ov57_02237B20
2021-06-27 18:48:56 +00:00
ov57_02237B20: ; 0x02237B20
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
bl OverlayManager_GetData
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #1
mov r1, #0
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
2021-06-27 18:48:56 +00:00
mov r0, #2
mov r1, #0
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
2021-06-27 18:48:56 +00:00
mov r0, #4
mov r1, #0
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
2021-06-27 18:48:56 +00:00
mov r0, #8
mov r1, #0
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
2021-06-27 18:48:56 +00:00
mov r0, #1
mov r1, #0
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
2021-06-27 18:48:56 +00:00
mov r0, #2
mov r1, #0
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
2021-06-27 18:48:56 +00:00
mov r0, #4
mov r1, #0
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
2021-06-27 18:48:56 +00:00
mov r0, #8
mov r1, #0
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-09-16 00:11:18 +00:00
bl FreeBgTilemapBuffer
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #2
2021-09-16 00:11:18 +00:00
bl FreeBgTilemapBuffer
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #3
2021-09-16 00:11:18 +00:00
bl FreeBgTilemapBuffer
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #4
2021-09-16 00:11:18 +00:00
bl FreeBgTilemapBuffer
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #5
2021-09-16 00:11:18 +00:00
bl FreeBgTilemapBuffer
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #6
2021-09-16 00:11:18 +00:00
bl FreeBgTilemapBuffer
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #7
2021-09-16 00:11:18 +00:00
bl FreeBgTilemapBuffer
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-08-12 19:28:01 +00:00
bl FreeToHeap
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-08-13 18:03:14 +00:00
bl PaletteData_FreeBuffers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-08-13 18:03:14 +00:00
bl PaletteData_FreeBuffers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #2
2021-08-13 18:03:14 +00:00
bl PaletteData_FreeBuffers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #3
2021-08-13 18:03:14 +00:00
bl PaletteData_FreeBuffers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 19:11:25 +00:00
bl sub_02003104
2021-06-27 18:48:56 +00:00
mov r1, #0xfb
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
ldr r0, [r4]
2021-06-27 18:48:56 +00:00
lsl r1, r1, #0x18
lsr r1, r1, #0x18
2021-06-25 22:31:03 +00:00
bl ov57_02237E80
2021-06-27 18:48:56 +00:00
ldr r0, _02237C94 ; =0x00000458
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-08-12 19:28:01 +00:00
bl FreeToHeap
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022383AC
2021-06-27 18:48:56 +00:00
mov r0, #0x7b
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_02026CAC
2021-06-27 18:48:56 +00:00
mov r0, #0x71
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_02008524
2021-06-27 18:48:56 +00:00
mov r0, #0xa1
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_02016F2C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238714
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xd4
2021-06-25 22:31:03 +00:00
bl ov57_022390F4
2021-06-27 19:11:25 +00:00
bl sub_020205AC
2021-06-27 18:48:56 +00:00
mov r0, #0x96
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_02026F54
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-25 22:31:03 +00:00
bl ov57_02237CDC
2021-06-27 18:48:56 +00:00
ldr r0, _02237C98 ; =0x0000045C
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-08-12 19:28:01 +00:00
bl NARC_dtor
2021-06-25 22:31:03 +00:00
ldr r0, [r4]
2021-06-27 18:48:56 +00:00
ldr r1, _02237C9C ; =0x0000040C
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #0x2c]
ldr r1, [r4, r1]
2021-06-27 19:11:25 +00:00
bl sub_02018410
2021-06-27 18:48:56 +00:00
add r0, r5, #0
bl OverlayManager_FreeData
2021-06-27 19:11:25 +00:00
bl sub_02021238
2021-06-27 18:48:56 +00:00
mov r0, #0x34
bl DestroyHeap
ldr r0, _02237CA0 ; =SDK_OVERLAY_OVY_6_ID
bl UnloadOverlayByID
ldr r0, _02237CA4 ; =SDK_OVERLAY_OVY_7_ID
bl UnloadOverlayByID
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02237C94: .word 0x00000458
_02237C98: .word 0x0000045C
_02237C9C: .word 0x0000040C
_02237CA0: .word SDK_OVERLAY_OVY_6_ID
_02237CA4: .word SDK_OVERLAY_OVY_7_ID
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02237B20
thumb_func_start ov57_02237CA8
2021-06-27 18:48:56 +00:00
ov57_02237CA8: ; 0x02237CA8
2021-06-25 22:31:03 +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
2021-06-27 19:11:25 +00:00
bl sub_0201A108
2021-09-18 16:36:50 +00:00
bl GX_DisableEngineALayers
bl GX_DisableEngineBLayers
2021-06-27 18:48:56 +00:00
mov r2, #1
lsl r2, r2, #0x1a
2021-06-25 22:31:03 +00:00
ldr r1, [r2]
2021-06-27 18:48:56 +00:00
ldr r0, _02237CD4 ; =0xFFFFE0FF
and r1, r0
2021-06-25 22:31:03 +00:00
str r1, [r2]
2021-06-27 18:48:56 +00:00
ldr r2, _02237CD8 ; =0x04001000
2021-06-25 22:31:03 +00:00
ldr r1, [r2]
2021-06-27 18:48:56 +00:00
and r0, r1
2021-06-25 22:31:03 +00:00
str r0, [r2]
pop {r3, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02237CD4: .word 0xFFFFE0FF
_02237CD8: .word 0x04001000
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02237CA8
thumb_func_start ov57_02237CDC
2021-06-27 18:48:56 +00:00
ov57_02237CDC: ; 0x02237CDC
2021-06-25 22:31:03 +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
2021-06-27 19:11:25 +00:00
bl sub_0201A108
2021-06-25 22:31:03 +00:00
pop {r3, pc}
thumb_func_end ov57_02237CDC
thumb_func_start ov57_02237CEC
2021-06-27 18:48:56 +00:00
ov57_02237CEC: ; 0x02237CEC
2021-06-25 22:31:03 +00:00
push {r4, r5, lr}
sub sp, #0xfc
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-09-18 16:36:50 +00:00
bl GX_DisableEngineALayers
ldr r5, _02237E24 ; =ov57_0223BC90
2021-06-25 22:31:03 +00:00
add r3, sp, #0x10
2021-06-27 18:48:56 +00:00
mov r2, #5
2021-06-25 22:31:03 +00:00
_02237CFC:
2021-06-27 18:48:56 +00:00
ldmia r5!, {r0, r1}
stmia r3!, {r0, r1}
sub r2, r2, #1
2021-06-25 22:31:03 +00:00
bne _02237CFC
add r0, sp, #0x10
bl GX_SetBanks
2021-06-27 18:48:56 +00:00
mov r1, #6
mov r2, #2
mov r0, #0
lsl r1, r1, #0x18
lsl r2, r2, #0x12
bl MIi_CpuClear32
2021-06-27 18:48:56 +00:00
mov r1, #0x62
mov r2, #2
mov r0, #0
lsl r1, r1, #0x14
lsl r2, r2, #0x10
bl MIi_CpuClear32
2021-06-27 18:48:56 +00:00
mov r1, #0x19
mov r2, #1
mov r0, #0
lsl r1, r1, #0x16
lsl r2, r2, #0x12
bl MIi_CpuClear32
2021-06-27 18:48:56 +00:00
mov r1, #0x66
mov r2, #2
mov r0, #0
lsl r1, r1, #0x14
lsl r2, r2, #0x10
bl MIi_CpuClear32
2021-06-27 18:48:56 +00:00
ldr r5, _02237E28 ; =_0223BC80
2021-06-25 22:31:03 +00:00
add r3, sp, #0
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
ldr r5, _02237E2C ; =ov57_0223BCB8
2021-06-25 22:31:03 +00:00
add r3, sp, #0xa8
2021-06-27 18:48:56 +00:00
mov r2, #0xa
2021-06-25 22:31:03 +00:00
_02237D5C:
2021-06-27 18:48:56 +00:00
ldmia r5!, {r0, r1}
stmia r3!, {r0, r1}
sub r2, r2, #1
2021-06-25 22:31:03 +00:00
bne _02237D5C
ldr r0, [r5]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-25 22:31:03 +00:00
str r0, [r3]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
add r2, sp, #0xa8
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-09-16 00:11:18 +00:00
bl InitBgFromTemplate
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #2
2021-06-25 22:31:03 +00:00
add r2, sp, #0xc4
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-09-16 00:11:18 +00:00
bl InitBgFromTemplate
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #3
2021-06-25 22:31:03 +00:00
add r2, sp, #0xe0
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-09-16 00:11:18 +00:00
bl InitBgFromTemplate
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-09-18 16:36:50 +00:00
bl BgClearTilemapBufferAndCommit
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #2
2021-09-18 16:36:50 +00:00
bl BgClearTilemapBufferAndCommit
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #3
2021-09-18 16:36:50 +00:00
bl BgClearTilemapBufferAndCommit
2021-06-27 18:48:56 +00:00
ldr r1, _02237E30 ; =0x04000008
mov r0, #3
2021-06-25 22:31:03 +00:00
ldrh r2, [r1]
2021-06-27 18:48:56 +00:00
bic r2, r0
mov r0, #1
orr r2, r0
2021-06-25 22:31:03 +00:00
strh r2, [r1]
2021-06-27 18:48:56 +00:00
add r1, r0, #0
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
ldr r5, _02237E34 ; =ov57_0223BD0C
2021-06-25 22:31:03 +00:00
add r3, sp, #0x38
2021-06-27 18:48:56 +00:00
mov r2, #0xe
2021-06-25 22:31:03 +00:00
_02237DBE:
2021-06-27 18:48:56 +00:00
ldmia r5!, {r0, r1}
stmia r3!, {r0, r1}
sub r2, r2, #1
2021-06-25 22:31:03 +00:00
bne _02237DBE
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #4
2021-06-25 22:31:03 +00:00
add r2, sp, #0x38
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-09-16 00:11:18 +00:00
bl InitBgFromTemplate
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #5
2021-06-25 22:31:03 +00:00
add r2, sp, #0x54
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-09-16 00:11:18 +00:00
bl InitBgFromTemplate
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #6
2021-06-25 22:31:03 +00:00
add r2, sp, #0x70
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-09-16 00:11:18 +00:00
bl InitBgFromTemplate
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #7
2021-06-25 22:31:03 +00:00
add r2, sp, #0x8c
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-09-16 00:11:18 +00:00
bl InitBgFromTemplate
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #4
2021-09-18 16:36:50 +00:00
bl BgClearTilemapBufferAndCommit
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #5
2021-09-18 16:36:50 +00:00
bl BgClearTilemapBufferAndCommit
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #6
2021-09-18 16:36:50 +00:00
bl BgClearTilemapBufferAndCommit
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #7
2021-09-18 16:36:50 +00:00
bl BgClearTilemapBufferAndCommit
2021-06-27 18:48:56 +00:00
mov r0, #4
mov r1, #0
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
2021-06-25 22:31:03 +00:00
add sp, #0xfc
pop {r4, r5, pc}
nop
_02237E24: .word ov57_0223BC90
2021-06-27 18:48:56 +00:00
_02237E28: .word _0223BC80
_02237E2C: .word ov57_0223BCB8
2021-06-27 18:48:56 +00:00
_02237E30: .word 0x04000008
_02237E34: .word ov57_0223BD0C
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02237CEC
thumb_func_start ov57_02237E38
2021-06-27 18:48:56 +00:00
ov57_02237E38: ; 0x02237E38
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0x71
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_02009418
bl sub_0200D034
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 19:11:25 +00:00
bl sub_0200398C
2021-06-27 18:48:56 +00:00
add r4, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r4]
2021-06-27 19:11:25 +00:00
bl sub_0201EEB4
bl sub_0202061C
2021-06-27 18:48:56 +00:00
ldr r3, _02237E70 ; =0x027E0000
ldr r1, _02237E74 ; =0x00003FF8
mov r0, #1
2021-06-25 22:31:03 +00:00
ldr r2, [r3, r1]
2021-06-27 18:48:56 +00:00
orr r0, r2
2021-06-25 22:31:03 +00:00
str r0, [r3, r1]
pop {r4, pc}
nop
2021-06-27 18:48:56 +00:00
_02237E70: .word 0x027E0000
_02237E74: .word 0x00003FF8
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02237E38
thumb_func_start ov57_02237E78
2021-06-27 18:48:56 +00:00
ov57_02237E78: ; 0x02237E78
add r0, #0x30
2021-06-25 22:31:03 +00:00
ldrb r0, [r0]
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02237E78
thumb_func_start ov57_02237E80
2021-06-27 18:48:56 +00:00
ov57_02237E80: ; 0x02237E80
add r0, #0x30
2021-06-25 22:31:03 +00:00
strb r1, [r0]
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02237E80
thumb_func_start ov57_02237E88
2021-06-27 18:48:56 +00:00
ov57_02237E88: ; 0x02237E88
add r0, #0x31
2021-06-25 22:31:03 +00:00
strb r1, [r0]
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02237E88
thumb_func_start ov57_02237E90
2021-06-27 18:48:56 +00:00
ov57_02237E90: ; 0x02237E90
add r3, r2, #0
sub r3, #0xa
2021-06-25 22:31:03 +00:00
strb r3, [r0]
2021-06-27 18:48:56 +00:00
add r3, r1, #0
sub r3, #0xa
2021-06-25 22:31:03 +00:00
strb r3, [r0, #2]
2021-06-27 18:48:56 +00:00
add r2, #0xa
2021-06-25 22:31:03 +00:00
strb r2, [r0, #1]
2021-06-27 18:48:56 +00:00
add r1, #0xa
2021-06-25 22:31:03 +00:00
strb r1, [r0, #3]
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02237E90
thumb_func_start ov57_02237EA8
2021-06-27 18:48:56 +00:00
ov57_02237EA8: ; 0x02237EA8
mov r1, #0
2021-06-25 22:31:03 +00:00
strb r1, [r0]
strb r1, [r0, #2]
2021-06-27 18:48:56 +00:00
mov r1, #0xc0
2021-06-25 22:31:03 +00:00
strb r1, [r0, #1]
2021-06-27 18:48:56 +00:00
mov r1, #0xff
2021-06-25 22:31:03 +00:00
strb r1, [r0, #3]
bx lr
thumb_func_end ov57_02237EA8
thumb_func_start ov57_02237EB8
2021-06-27 18:48:56 +00:00
ov57_02237EB8: ; 0x02237EB8
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
add r4, r1, #0
2021-06-25 22:31:03 +00:00
beq _02237F0C
cmp r2, #1
bne _02237EE8
2021-09-01 12:41:12 +00:00
ldr r3, _02237F10 ; =gMain + 0x40
2021-06-27 18:48:56 +00:00
mov r1, #0x20
mov r2, #0x22
2021-06-25 22:31:03 +00:00
ldrsh r1, [r3, r1]
ldrsh r2, [r3, r2]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DDB8
2021-06-25 22:31:03 +00:00
add r1, sp, #0
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, #2
2021-06-25 22:31:03 +00:00
add r2, sp, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DE44
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02237EA8
pop {r3, r4, r5, pc}
_02237EE8:
add r1, sp, #0
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, #2
2021-06-25 22:31:03 +00:00
add r2, sp, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DE44
2021-06-25 22:31:03 +00:00
add r3, sp, #0
2021-06-27 18:48:56 +00:00
mov r1, #2
mov r2, #0
2021-06-25 22:31:03 +00:00
ldrsh r1, [r3, r1]
ldrsh r2, [r3, r2]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
lsl r1, r1, #0x18
lsl r2, r2, #0x18
lsr r1, r1, #0x18
lsr r2, r2, #0x18
2021-06-25 22:31:03 +00:00
bl ov57_02237E90
_02237F0C:
pop {r3, r4, r5, pc}
nop
2021-09-01 12:41:12 +00:00
_02237F10: .word gMain + 0x40
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02237EB8
thumb_func_start ov57_02237F14
2021-06-27 18:48:56 +00:00
ov57_02237F14: ; 0x02237F14
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
mov r4, #0
add r7, r4, #0
mov r6, #0xd5
add r5, r0, #0
sub r7, #0x38
lsl r6, r6, #2
2021-06-25 22:31:03 +00:00
_02237F22:
ldr r0, [r5, r6]
cmp r0, #0
beq _02237F30
2021-06-27 18:48:56 +00:00
add r1, r7, #0
mov r2, #0x10
2021-06-27 19:11:25 +00:00
bl sub_0200DED0
2021-06-25 22:31:03 +00:00
_02237F30:
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, #0x10
2021-06-25 22:31:03 +00:00
cmp r4, #8
blt _02237F22
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02237F14
thumb_func_start ov57_02237F3C
2021-06-27 18:48:56 +00:00
ov57_02237F3C: ; 0x02237F3C
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r7, r0, #0
mov r0, #0xfb
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r7, r0]
2021-06-27 18:48:56 +00:00
mov r6, #0
lsl r0, r0, #3
add r0, r7, r0
2021-06-25 22:31:03 +00:00
ldr r4, [r0, #8]
2021-06-27 18:48:56 +00:00
add r5, r7, #0
2021-06-25 22:31:03 +00:00
_02237F50:
ldrb r1, [r4]
cmp r1, #0
beq _02237F8E
2021-06-27 18:48:56 +00:00
mov r0, #0x35
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
strb r1, [r5, r0]
ldrb r1, [r4, #1]
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
strb r1, [r5, r0]
ldrb r1, [r4, #2]
2021-06-27 18:48:56 +00:00
ldr r0, _02237FA8 ; =0x00000352
2021-06-25 22:31:03 +00:00
strb r1, [r5, r0]
2021-06-27 18:48:56 +00:00
lsl r1, r6, #0x18
add r0, r7, #0
lsr r1, r1, #0x18
2021-06-25 22:31:03 +00:00
bl ov57_02238260
2021-06-27 18:48:56 +00:00
mov r0, #0xd6
mov r1, #0xd5
lsl r0, r0, #2
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
ldr r1, [r5, r1]
2021-06-27 18:48:56 +00:00
mov r2, #0
2021-06-25 22:31:03 +00:00
bl ov57_02237EB8
2021-06-27 18:48:56 +00:00
mov r0, #0xd3
mov r1, #1
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r1, [r5, r0]
b _02237F9A
_02237F8E:
2021-06-27 18:48:56 +00:00
mov r0, #0xd3
mov r1, #0
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r1, [r5, r0]
2021-06-27 18:48:56 +00:00
add r0, r0, #4
2021-06-25 22:31:03 +00:00
strb r1, [r5, r0]
_02237F9A:
2021-06-27 18:48:56 +00:00
add r6, r6, #1
add r4, r4, #3
add r5, #0x10
2021-06-25 22:31:03 +00:00
cmp r6, #8
blt _02237F50
pop {r3, r4, r5, r6, r7, pc}
nop
2021-06-27 18:48:56 +00:00
_02237FA8: .word 0x00000352
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02237F3C
thumb_func_start ov57_02237FAC
2021-06-27 18:48:56 +00:00
ov57_02237FAC: ; 0x02237FAC
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0xc
2021-06-27 18:48:56 +00:00
add r6, r0, #0
mov r0, #0xd3
mov r4, #0
add r3, r6, #0
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
_02237FBA:
ldr r2, [r3, r0]
cmp r2, #1
beq _0223801A
2021-06-27 18:48:56 +00:00
mov r0, #0x45
add r1, r6, r1
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldrb r2, [r1, r0]
2021-06-27 18:48:56 +00:00
lsl r5, r4, #4
mov r0, #0x35
add r1, r6, r5
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
strb r2, [r1, r0]
2021-06-27 18:48:56 +00:00
add r1, r0, #1
add r7, r6, r1
mov r1, #0xbe
add r0, r0, #2
2021-06-25 22:31:03 +00:00
strb r1, [r7, r5]
2021-06-27 18:48:56 +00:00
add r0, r6, r0
mov r1, #0x46
2021-06-25 22:31:03 +00:00
strb r1, [r0, r5]
str r0, [sp]
add r0, sp, #8
add r1, sp, #4
2021-06-27 19:11:25 +00:00
bl sub_02025364
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #8]
strb r0, [r7, r5]
ldr r1, [sp, #4]
ldr r0, [sp]
strb r1, [r0, r5]
2021-06-27 18:48:56 +00:00
lsl r1, r4, #0x18
add r0, r6, #0
lsr r1, r1, #0x18
2021-06-25 22:31:03 +00:00
bl ov57_02238260
2021-06-27 18:48:56 +00:00
lsl r1, r4, #0x18
add r0, r6, #0
lsr r1, r1, #0x18
2021-06-25 22:31:03 +00:00
bl ov57_02238044
2021-06-27 18:48:56 +00:00
mov r0, #0xd3
mov r2, #1
add r1, r6, r5
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r2, [r1, r0]
add sp, #0xc
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
pop {r4, r5, r6, r7, pc}
_0223801A:
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r3, #0x10
2021-06-25 22:31:03 +00:00
cmp r4, #8
blt _02237FBA
2021-06-27 18:48:56 +00:00
mov r0, #0xff
2021-06-25 22:31:03 +00:00
add sp, #0xc
pop {r4, r5, r6, r7, pc}
thumb_func_end ov57_02237FAC
thumb_func_start ov57_02238028
2021-06-27 18:48:56 +00:00
ov57_02238028: ; 0x02238028
mov r1, #0xd3
mov r3, #0
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
_0223802E:
ldr r2, [r0, r1]
cmp r2, #1
beq _02238038
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
bx lr
_02238038:
2021-06-27 18:48:56 +00:00
add r3, r3, #1
add r0, #0x10
2021-06-25 22:31:03 +00:00
cmp r3, #8
blt _0223802E
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
bx lr
thumb_func_end ov57_02238028
thumb_func_start ov57_02238044
2021-06-27 18:48:56 +00:00
ov57_02238044: ; 0x02238044
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
mov r7, #0xd3
add r5, r0, #0
add r6, r1, #0
mov r4, #0
lsl r7, r7, #2
2021-06-25 22:31:03 +00:00
_02238050:
ldr r0, [r5, r7]
cmp r0, #1
bne _02238090
cmp r4, r6
bne _02238068
2021-06-27 18:48:56 +00:00
mov r0, #0xd5
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DD68
2021-06-25 22:31:03 +00:00
b _02238090
_02238068:
2021-06-27 18:48:56 +00:00
mov r0, #0xd5
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DD7C
2021-06-27 18:48:56 +00:00
add r1, r0, #0
2021-06-25 22:31:03 +00:00
bne _02238084
2021-06-27 18:48:56 +00:00
mov r0, #0xd5
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-27 19:11:25 +00:00
bl sub_0200DD68
2021-06-25 22:31:03 +00:00
b _02238090
_02238084:
2021-06-27 18:48:56 +00:00
mov r0, #0xd5
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #2
2021-06-27 19:11:25 +00:00
bl sub_0200DD68
2021-06-25 22:31:03 +00:00
_02238090:
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, #0x10
2021-06-25 22:31:03 +00:00
cmp r4, #8
blt _02238050
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238044
thumb_func_start ov57_0223809C
2021-06-27 18:48:56 +00:00
ov57_0223809C: ; 0x0223809C
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x18
2021-06-27 18:48:56 +00:00
add r7, r1, #0
add r1, r0, #0
add r1, #0xdc
2021-06-25 22:31:03 +00:00
ldr r4, [r1]
2021-06-27 18:48:56 +00:00
add r1, r0, #0
add r1, #0xe0
2021-06-25 22:31:03 +00:00
ldr r5, [r1]
2021-06-27 18:48:56 +00:00
mov r1, #0x57
2021-06-25 22:31:03 +00:00
str r1, [sp]
2021-06-27 18:48:56 +00:00
mov r1, #6
2021-06-25 22:31:03 +00:00
str r1, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r1, #2
2021-06-25 22:31:03 +00:00
str r1, [sp, #0x10]
2021-06-27 18:48:56 +00:00
ldr r1, _02238124 ; =0x0000520E
add r6, r2, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #0x14]
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #3
add r2, r4, #0
add r3, r5, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D644
2021-06-27 18:48:56 +00:00
add r0, r7, #0
2021-06-27 19:11:25 +00:00
bl sub_02091054
2021-06-27 18:48:56 +00:00
add r3, r0, #0
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _02238128 ; =0x00004E20
add r1, r5, #0
add r0, r6, r0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r2, #0x57
2021-06-27 19:11:25 +00:00
bl sub_0200D4A4
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _0223812C ; =0x00005616
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r2, #0x57
mov r3, #0x26
2021-06-27 19:11:25 +00:00
bl sub_0200D6D4
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _02238130 ; =0x000059FC
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r2, #0x57
mov r3, #0x24
2021-06-27 19:11:25 +00:00
bl sub_0200D704
2021-06-25 22:31:03 +00:00
add sp, #0x18
pop {r3, r4, r5, r6, r7, pc}
nop
2021-06-27 18:48:56 +00:00
_02238124: .word 0x0000520E
_02238128: .word 0x00004E20
_0223812C: .word 0x00005616
_02238130: .word 0x000059FC
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223809C
thumb_func_start ov57_02238134
2021-06-27 18:48:56 +00:00
ov57_02238134: ; 0x02238134
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x74
2021-06-27 18:48:56 +00:00
mov r1, #0xa2
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [sp]
ldr r0, [r0, r1]
cmp r0, #0
bne _02238146
b _02238254
_02238146:
ldr r0, [sp]
2021-06-27 18:48:56 +00:00
mov r7, #0
2021-06-25 22:31:03 +00:00
str r7, [r0, r1]
add r4, sp, #0x54
add r5, sp, #0x34
2021-06-27 18:48:56 +00:00
add r6, r0, #0
2021-06-25 22:31:03 +00:00
_02238152:
2021-06-27 18:48:56 +00:00
mov r0, #0xff
2021-06-25 22:31:03 +00:00
str r0, [r4]
str r0, [r5]
2021-06-27 18:48:56 +00:00
mov r0, #0xd5
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r6, r0]
cmp r0, #0
beq _0223816A
2021-06-27 19:11:25 +00:00
bl sub_0200DD7C
2021-06-25 22:31:03 +00:00
str r0, [r4]
str r7, [r5]
_0223816A:
2021-06-27 18:48:56 +00:00
add r7, r7, #1
add r4, r4, #4
add r5, r5, #4
add r6, #0x10
2021-06-25 22:31:03 +00:00
cmp r7, #8
blt _02238152
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
mov ip, r0
_0223817A:
mov r0, ip
2021-06-27 18:48:56 +00:00
mov r3, #7
2021-06-25 22:31:03 +00:00
cmp r0, #7
bge _022381AA
add r4, sp, #0x70
add r5, sp, #0x50
_02238186:
2021-06-27 18:48:56 +00:00
sub r7, r4, #4
2021-06-25 22:31:03 +00:00
ldr r2, [r4]
ldr r0, [r7]
cmp r0, r2
blt _0223819E
ldr r1, [r5]
2021-06-27 18:48:56 +00:00
sub r6, r5, #4
2021-06-25 22:31:03 +00:00
str r0, [r4]
ldr r0, [r6]
str r0, [r5]
str r2, [r7]
str r1, [r6]
_0223819E:
2021-06-27 18:48:56 +00:00
sub r3, r3, #1
2021-06-25 22:31:03 +00:00
mov r0, ip
2021-06-27 18:48:56 +00:00
sub r4, r4, #4
sub r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r3, r0
bgt _02238186
_022381AA:
mov r0, ip
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
mov ip, r0
cmp r0, #7
blt _0223817A
2021-06-27 18:48:56 +00:00
mov r3, #0x35
lsl r3, r3, #4
2021-06-25 22:31:03 +00:00
ldr r0, [sp]
2021-06-27 18:48:56 +00:00
mov r2, #0
2021-06-25 22:31:03 +00:00
add r1, sp, #0x1c
2021-06-27 18:48:56 +00:00
add r4, r3, #1
add r5, r3, #2
2021-06-25 22:31:03 +00:00
_022381C2:
ldrb r6, [r0, r3]
2021-06-27 18:48:56 +00:00
add r2, r2, #1
2021-06-25 22:31:03 +00:00
strb r6, [r1]
ldrb r6, [r0, r4]
strb r6, [r1, #1]
ldrb r6, [r0, r5]
2021-06-27 18:48:56 +00:00
add r0, #0x10
2021-06-25 22:31:03 +00:00
strb r6, [r1, #2]
2021-06-27 18:48:56 +00:00
add r1, r1, #3
2021-06-25 22:31:03 +00:00
cmp r2, #8
blt _022381C2
add r3, sp, #0x1c
add r2, sp, #4
2021-06-27 18:48:56 +00:00
mov r1, #0x18
2021-06-25 22:31:03 +00:00
_022381DE:
ldrb r0, [r3]
2021-06-27 18:48:56 +00:00
add r3, r3, #1
2021-06-25 22:31:03 +00:00
strb r0, [r2]
2021-06-27 18:48:56 +00:00
add r2, r2, #1
sub r1, r1, #1
2021-06-25 22:31:03 +00:00
bne _022381DE
ldr r5, [sp]
2021-06-27 18:48:56 +00:00
mov r6, #0
2021-06-25 22:31:03 +00:00
add r4, sp, #0x34
add r7, sp, #4
_022381F2:
ldr r1, [r4]
cmp r1, #0xff
bne _0223820A
2021-06-27 18:48:56 +00:00
mov r0, #0x35
mov r1, #0
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
strb r1, [r5, r0]
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
strb r1, [r5, r0]
2021-06-27 18:48:56 +00:00
ldr r0, _02238258 ; =0x00000352
2021-06-25 22:31:03 +00:00
strb r1, [r5, r0]
b _0223824A
_0223820A:
2021-06-27 18:48:56 +00:00
lsl r0, r1, #1
add r0, r1, r0
2021-06-25 22:31:03 +00:00
ldrb r1, [r7, r0]
2021-06-27 18:48:56 +00:00
mov r0, #0x35
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
strb r1, [r5, r0]
ldr r1, [r4]
2021-06-27 18:48:56 +00:00
lsl r0, r1, #1
add r0, r1, r0
add r0, r7, r0
2021-06-25 22:31:03 +00:00
ldrb r1, [r0, #1]
2021-06-27 18:48:56 +00:00
ldr r0, _0223825C ; =0x00000351
2021-06-25 22:31:03 +00:00
strb r1, [r5, r0]
ldr r1, [r4]
2021-06-27 18:48:56 +00:00
lsl r0, r1, #1
add r0, r1, r0
add r0, r7, r0
2021-06-25 22:31:03 +00:00
ldrb r1, [r0, #2]
2021-06-27 18:48:56 +00:00
ldr r0, _02238258 ; =0x00000352
2021-06-25 22:31:03 +00:00
strb r1, [r5, r0]
ldr r0, [r4]
2021-06-27 18:48:56 +00:00
lsl r1, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [sp]
2021-06-27 18:48:56 +00:00
add r1, r0, r1
mov r0, #0xd5
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r1, r0]
cmp r0, #0
beq _0223824A
2021-06-27 18:48:56 +00:00
add r1, r6, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DD68
2021-06-25 22:31:03 +00:00
_0223824A:
2021-06-27 18:48:56 +00:00
add r6, r6, #1
add r4, r4, #4
add r5, #0x10
2021-06-25 22:31:03 +00:00
cmp r6, #8
blt _022381F2
_02238254:
add sp, #0x74
pop {r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02238258: .word 0x00000352
_0223825C: .word 0x00000351
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238134
thumb_func_start ov57_02238260
2021-06-27 18:48:56 +00:00
ov57_02238260: ; 0x02238260
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x34
2021-06-27 18:48:56 +00:00
add r5, r1, #0
add r1, r0, #0
add r1, #0xdc
2021-06-25 22:31:03 +00:00
ldr r7, [r1]
2021-06-27 18:48:56 +00:00
add r1, r0, #0
add r1, #0xe0
2021-06-25 22:31:03 +00:00
ldr r6, [r1]
2021-06-27 18:48:56 +00:00
mov r1, #0xd3
lsl r1, r1, #2
add r2, r0, r1
lsl r1, r5, #4
add r4, r2, r1
2021-06-25 22:31:03 +00:00
ldr r1, [r2, r1]
cmp r1, #1
bne _0223828C
bl GF_AssertFail
2021-06-25 22:31:03 +00:00
add sp, #0x34
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, r5, r6, r7, pc}
_0223828C:
ldrb r1, [r4, #4]
2021-06-27 18:48:56 +00:00
add r2, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223809C
ldrb r1, [r4, #5]
add r0, sp, #0
strh r1, [r0]
ldrb r1, [r4, #6]
strh r1, [r0, #2]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
strh r1, [r0, #4]
strh r1, [r0, #6]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x2c]
2021-06-27 18:48:56 +00:00
sub r0, r0, #2
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
str r1, [sp, #0x30]
str r1, [sp, #8]
str r0, [sp, #0x24]
str r0, [sp, #0x28]
ldrb r0, [r4, #4]
2021-06-27 19:11:25 +00:00
bl sub_02091054
2021-06-27 18:48:56 +00:00
ldr r0, _022382E8 ; =0x00004E20
add r1, r6, #0
add r0, r5, r0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x14]
2021-06-27 18:48:56 +00:00
ldr r0, _022382EC ; =0x0000520E
2021-06-25 22:31:03 +00:00
add r2, sp, #0
str r0, [sp, #0x18]
2021-06-27 18:48:56 +00:00
ldr r0, _022382F0 ; =0x00005616
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
ldr r0, _022382F4 ; =0x000059FC
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x20]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D734
2021-06-25 22:31:03 +00:00
str r0, [r4, #8]
2021-06-27 19:11:25 +00:00
bl sub_0200DC18
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
add sp, #0x34
pop {r4, r5, r6, r7, pc}
nop
2021-06-27 18:48:56 +00:00
_022382E8: .word 0x00004E20
_022382EC: .word 0x0000520E
_022382F0: .word 0x00005616
_022382F4: .word 0x000059FC
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238260
thumb_func_start ov57_022382F8
2021-06-27 18:48:56 +00:00
ov57_022382F8: ; 0x022382F8
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r5, r2, #0
add r6, r1, #0
mov r1, #0xd3
add r4, r0, #0
lsl r7, r5, #4
add r3, r4, r7
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r2, [r3, r1]
cmp r2, #0
bne _02238312
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, r6, r7, pc}
_02238312:
cmp r6, #3
bhi _022383A2
2021-06-27 18:48:56 +00:00
add r2, r6, r6
2021-06-25 22:31:03 +00:00
add r2, pc
ldrh r2, [r2, #6]
2021-06-27 18:48:56 +00:00
lsl r2, r2, #0x10
asr r2, r2, #0x10
2021-06-25 22:31:03 +00:00
add pc, r2
2021-06-27 18:48:56 +00:00
_02238322: ; jump table
.short _0223832A - _02238322 - 2 ; case 0
.short _0223836A - _02238322 - 2 ; case 1
.short _02238340 - _02238322 - 2 ; case 2
.short _0223836A - _02238322 - 2 ; case 3
2021-06-25 22:31:03 +00:00
_0223832A:
2021-06-27 18:48:56 +00:00
add r1, r4, #0
add r1, #0xd4
2021-06-25 22:31:03 +00:00
ldr r1, [r1]
cmp r1, #0xff
bne _022383A6
2021-06-27 18:48:56 +00:00
add r4, #0xd4
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r5, [r4]
bl ov57_02238044
b _022383A6
_02238340:
2021-06-27 18:48:56 +00:00
add r0, #0xd4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
cmp r0, r5
bne _022383A6
2021-06-27 18:48:56 +00:00
add r0, r1, #0
add r0, #0xc
add r1, #8
2021-06-25 22:31:03 +00:00
ldr r0, [r3, r0]
ldr r1, [r3, r1]
2021-06-27 18:48:56 +00:00
mov r2, #1
2021-06-25 22:31:03 +00:00
bl ov57_02237EB8
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223848C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238508
b _022383A6
_0223836A:
2021-06-27 18:48:56 +00:00
add r1, r4, #0
add r1, #0xd4
2021-06-25 22:31:03 +00:00
ldr r1, [r1]
cmp r1, #0xff
bne _022383A6
2021-06-27 18:48:56 +00:00
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_022383F8
2021-06-27 18:48:56 +00:00
mov r1, #0xd6
add r2, r4, r7
lsl r1, r1, #2
add r6, r0, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r2, r1]
2021-06-27 18:48:56 +00:00
sub r1, r1, #4
2021-06-25 22:31:03 +00:00
ldr r1, [r2, r1]
2021-06-27 18:48:56 +00:00
mov r2, #0
2021-06-25 22:31:03 +00:00
bl ov57_02237EB8
cmp r6, #0
bne _0223839A
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238438
_0223839A:
2021-06-27 18:48:56 +00:00
mov r0, #0xff
add r4, #0xd4
2021-06-25 22:31:03 +00:00
str r0, [r4]
b _022383A6
_022383A2:
bl GF_AssertFail
2021-06-25 22:31:03 +00:00
_022383A6:
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_022382F8
thumb_func_start ov57_022383AC
2021-06-27 18:48:56 +00:00
ov57_022383AC: ; 0x022383AC
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r6, r0, #0
mov r7, #0xd3
mov r4, #0
add r5, r6, #0
lsl r7, r7, #2
2021-06-25 22:31:03 +00:00
_022383B8:
ldr r0, [r5, r7]
cmp r0, #1
bne _022383C6
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r1, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238438
_022383C6:
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, #0x10
2021-06-25 22:31:03 +00:00
cmp r4, #8
blt _022383B8
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov57_022383AC
thumb_func_start ov57_022383D0
2021-06-27 18:48:56 +00:00
ov57_022383D0: ; 0x022383D0
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
mov r7, #0xd3
add r5, r0, #0
add r6, r1, #0
mov r4, #0
lsl r7, r7, #2
2021-06-25 22:31:03 +00:00
_022383DC:
ldr r0, [r5, r7]
cmp r0, #1
bne _022383EE
2021-06-27 18:48:56 +00:00
mov r0, #0xd5
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
add r1, r6, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DCE8
2021-06-25 22:31:03 +00:00
_022383EE:
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, #0x10
2021-06-25 22:31:03 +00:00
cmp r4, #8
blt _022383DC
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov57_022383D0
thumb_func_start ov57_022383F8
2021-06-27 18:48:56 +00:00
ov57_022383F8: ; 0x022383F8
2021-06-25 22:31:03 +00:00
push {r3, lr}
2021-06-27 18:48:56 +00:00
lsl r1, r1, #4
add r2, r0, r1
mov r0, #0xd3
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r2, r0]
cmp r1, #0
bne _0223840C
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r3, pc}
_0223840C:
2021-06-27 18:48:56 +00:00
add r0, #8
2021-06-25 22:31:03 +00:00
ldr r0, [r2, r0]
add r1, sp, #0
2021-06-27 18:48:56 +00:00
add r1, #2
2021-06-25 22:31:03 +00:00
add r2, sp, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DE44
2021-06-25 22:31:03 +00:00
add r2, sp, #0
2021-06-27 18:48:56 +00:00
mov r0, #2
mov r1, #0
2021-06-25 22:31:03 +00:00
ldrsh r0, [r2, r0]
ldrsh r1, [r2, r1]
2021-06-27 18:48:56 +00:00
mov r2, #0xbe
mov r3, #0x46
bl ov07_022344E4
2021-06-25 22:31:03 +00:00
cmp r0, #0x3c
bgt _02238434
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r3, pc}
_02238434:
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r3, pc}
thumb_func_end ov57_022383F8
thumb_func_start ov57_02238438
2021-06-27 18:48:56 +00:00
ov57_02238438: ; 0x02238438
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r0, #0x35
add r7, r1, #0
lsl r0, r0, #4
lsl r4, r7, #4
add r6, r5, r0
2021-06-25 22:31:03 +00:00
ldrb r0, [r6, r4]
2021-06-27 19:11:25 +00:00
bl sub_02091054
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xe0
ldr r1, _02238488 ; =0x00004E20
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r7, r1
2021-06-27 19:11:25 +00:00
bl sub_0200D958
2021-06-27 18:48:56 +00:00
mov r0, #0xd5
lsl r0, r0, #2
add r7, r5, r0
2021-06-25 22:31:03 +00:00
ldr r0, [r7, r4]
2021-06-27 19:11:25 +00:00
bl sub_0200D9DC
2021-06-27 18:48:56 +00:00
mov r1, #0
mov r2, #0xd3
lsl r2, r2, #2
2021-06-25 22:31:03 +00:00
str r1, [r7, r4]
2021-06-27 18:48:56 +00:00
add r3, r5, r4
2021-06-25 22:31:03 +00:00
str r1, [r3, r2]
strb r1, [r6, r4]
2021-06-27 18:48:56 +00:00
add r0, r2, #5
2021-06-25 22:31:03 +00:00
strb r1, [r3, r0]
2021-06-27 18:48:56 +00:00
add r0, r2, #6
add r2, #0xc
2021-06-25 22:31:03 +00:00
strb r1, [r3, r0]
ldr r0, [r3, r2]
2021-06-27 18:48:56 +00:00
add r2, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_02237E90
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02238488: .word 0x00004E20
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238438
thumb_func_start ov57_0223848C
2021-06-27 18:48:56 +00:00
ov57_0223848C: ; 0x0223848C
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
add r5, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_022383F8
cmp r0, #0
bne _022384AC
2021-06-27 18:48:56 +00:00
lsl r0, r5, #4
add r1, r4, r0
mov r0, #0xd5
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r1, r0]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_0200E0FC
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
_022384AC:
2021-06-27 18:48:56 +00:00
lsl r0, r5, #4
add r1, r4, r0
mov r0, #0xd5
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r1, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200E0FC
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223848C
thumb_func_start ov57_022384C0
2021-06-27 18:48:56 +00:00
ov57_022384C0: ; 0x022384C0
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7}
2021-06-27 18:48:56 +00:00
mov r2, #0xfb
lsl r2, r2, #2
2021-06-25 22:31:03 +00:00
ldr r2, [r0, r2]
2021-06-27 18:48:56 +00:00
ldr r4, _02238504 ; =0x00000351
lsl r2, r2, #3
add r2, r0, r2
2021-06-25 22:31:03 +00:00
ldr r2, [r2, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0
add r3, r4, #1
sub r5, r4, #1
2021-06-25 22:31:03 +00:00
_022384D6:
ldrb r7, [r0, r5]
ldrb r6, [r2]
cmp r7, r6
bne _022384EE
ldrb r7, [r0, r4]
ldrb r6, [r2, #1]
cmp r7, r6
bne _022384EE
ldrb r7, [r0, r3]
ldrb r6, [r2, #2]
cmp r7, r6
beq _022384F4
_022384EE:
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r4, r5, r6, r7}
bx lr
_022384F4:
2021-06-27 18:48:56 +00:00
add r1, r1, #1
add r2, r2, #3
add r0, #0x10
2021-06-25 22:31:03 +00:00
cmp r1, #8
blt _022384D6
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, r5, r6, r7}
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02238504: .word 0x00000351
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_022384C0
thumb_func_start ov57_02238508
2021-06-27 18:48:56 +00:00
ov57_02238508: ; 0x02238508
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
lsl r4, r1, #4
mov r0, #0xd5
add r1, r5, r4
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r1, r0]
add r1, sp, #0
2021-06-27 18:48:56 +00:00
add r1, #2
2021-06-25 22:31:03 +00:00
add r2, sp, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DE44
2021-06-25 22:31:03 +00:00
add r2, sp, #0
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
ldrsh r1, [r2, r0]
2021-06-27 18:48:56 +00:00
ldr r0, _02238538 ; =0x00000351
add r3, r5, r4
2021-06-25 22:31:03 +00:00
strb r1, [r3, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
ldrsh r1, [r2, r1]
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
strb r1, [r3, r0]
pop {r3, r4, r5, pc}
nop
2021-06-27 18:48:56 +00:00
_02238538: .word 0x00000351
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238508
thumb_func_start ov57_0223853C
2021-06-27 18:48:56 +00:00
ov57_0223853C: ; 0x0223853C
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x18
2021-06-27 18:48:56 +00:00
mov r3, #0x35
add r7, r0, #0
lsl r3, r3, #4
mov r0, #0
add r1, r7, #0
2021-06-25 22:31:03 +00:00
add r2, sp, #0
2021-06-27 18:48:56 +00:00
add r4, r3, #1
add r5, r3, #2
2021-06-25 22:31:03 +00:00
_02238550:
ldrb r6, [r1, r3]
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
strb r6, [r2]
ldrb r6, [r1, r4]
strb r6, [r2, #1]
ldrb r6, [r1, r5]
2021-06-27 18:48:56 +00:00
add r1, #0x10
2021-06-25 22:31:03 +00:00
strb r6, [r2, #2]
2021-06-27 18:48:56 +00:00
add r2, r2, #3
2021-06-25 22:31:03 +00:00
cmp r0, #8
blt _02238550
ldr r0, [r7]
2021-06-27 18:48:56 +00:00
mov r2, #0xfb
lsl r2, r2, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #0x20]
ldr r2, [r7, r2]
add r1, sp, #0
bl SealCase_SetCapsuleI
2021-06-25 22:31:03 +00:00
add sp, #0x18
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223853C
thumb_func_start ov57_0223857C
2021-06-27 18:48:56 +00:00
ov57_0223857C: ; 0x0223857C
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6}
2021-06-27 18:48:56 +00:00
mov r3, #0x35
lsl r3, r3, #4
mov r2, #0
add r4, r3, #1
add r5, r3, #2
2021-06-25 22:31:03 +00:00
_02238588:
ldrb r6, [r1, r3]
2021-06-27 18:48:56 +00:00
add r2, r2, #1
2021-06-25 22:31:03 +00:00
strb r6, [r0]
ldrb r6, [r1, r4]
strb r6, [r0, #1]
ldrb r6, [r1, r5]
2021-06-27 18:48:56 +00:00
add r1, #0x10
2021-06-25 22:31:03 +00:00
strb r6, [r0, #2]
2021-06-27 18:48:56 +00:00
add r0, r0, #3
2021-06-25 22:31:03 +00:00
cmp r2, #8
blt _02238588
pop {r3, r4, r5, r6}
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223857C
thumb_func_start ov57_022385A4
2021-06-27 18:48:56 +00:00
ov57_022385A4: ; 0x022385A4
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, lr}
sub sp, #4
2021-06-27 18:48:56 +00:00
add r5, r0, #0
add r0, r1, #0
2021-06-25 22:31:03 +00:00
add r1, sp, #0
2021-06-27 18:48:56 +00:00
add r4, r2, #0
add r1, #2
2021-06-25 22:31:03 +00:00
add r2, sp, #0
2021-06-27 18:48:56 +00:00
add r6, r3, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DE44
2021-06-25 22:31:03 +00:00
add r1, sp, #0
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
ldrsh r2, [r1, r0]
2021-06-27 18:48:56 +00:00
sub r2, r2, r6
2021-06-25 22:31:03 +00:00
strb r2, [r5]
ldrsh r0, [r1, r0]
2021-06-27 18:48:56 +00:00
add r0, r0, r6
2021-06-25 22:31:03 +00:00
strb r0, [r5, #1]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
ldrsh r2, [r1, r0]
2021-06-27 18:48:56 +00:00
sub r2, r2, r4
2021-06-25 22:31:03 +00:00
strb r2, [r5, #2]
ldrsh r0, [r1, r0]
2021-06-27 18:48:56 +00:00
add r0, r0, r4
2021-06-25 22:31:03 +00:00
strb r0, [r5, #3]
add sp, #4
pop {r3, r4, r5, r6, pc}
thumb_func_end ov57_022385A4
thumb_func_start ov57_022385DC
2021-06-27 18:48:56 +00:00
ov57_022385DC: ; 0x022385DC
2021-06-25 22:31:03 +00:00
push {r4, lr}
sub sp, #0x10
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0x15
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x1e
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0x3a
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
add r1, r4, #0
mov r2, #1
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, #0xec
add r3, r2, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239814
2021-06-27 18:48:56 +00:00
mov r0, #0x15
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x14
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0x3a
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r0, #0xe4
add r1, #0xe2
mov r2, #1
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
add r3, r2, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239814
2021-06-27 18:48:56 +00:00
mov r0, #0x15
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #8
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0x76
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r0, #0xe4
add r1, #0x96
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
mov r2, #1
mov r3, #0x17
2021-06-25 22:31:03 +00:00
bl ov57_02239814
add sp, #0x10
pop {r4, pc}
thumb_func_end ov57_022385DC
thumb_func_start ov57_0223864C
2021-06-27 18:48:56 +00:00
ov57_0223864C: ; 0x0223864C
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
add r0, #0xec
2021-08-13 18:03:14 +00:00
bl RemoveWindow
2021-06-27 18:48:56 +00:00
mov r0, #0x47
lsl r0, r0, #2
add r0, r4, r0
2021-08-13 18:03:14 +00:00
bl RemoveWindow
2021-06-27 18:48:56 +00:00
mov r0, #0x43
lsl r0, r0, #2
add r0, r4, r0
2021-08-13 18:03:14 +00:00
bl RemoveWindow
2021-06-25 22:31:03 +00:00
pop {r4, pc}
thumb_func_end ov57_0223864C
thumb_func_start ov57_0223866C
2021-06-27 18:48:56 +00:00
ov57_0223866C: ; 0x0223866C
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, lr}
sub sp, #0x10
2021-06-27 18:48:56 +00:00
add r5, r0, #0
2021-06-25 22:31:03 +00:00
cmp r1, #0
beq _022386DC
2021-06-27 18:48:56 +00:00
mov r0, #0
mov r1, #0x1b
mov r2, #0xb
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl NewMsgDataFromNarc
2021-06-27 18:48:56 +00:00
mov r1, #0x11
add r6, r0, #0
2021-08-14 00:11:40 +00:00
bl NewString_ReadMsgData
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0x43
lsl r0, r0, #2
add r0, r5, r0
mov r1, #0
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
mov r0, #4
add r1, r4, #0
mov r2, #0
2021-06-27 19:11:25 +00:00
bl sub_02002F30
2021-06-27 18:48:56 +00:00
mov r1, #0x40
sub r3, r1, r0
mov r2, #0
2021-06-25 22:31:03 +00:00
str r2, [sp]
2021-06-27 18:48:56 +00:00
mov r1, #0xff
2021-06-25 22:31:03 +00:00
str r1, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _022386EC ; =0x00010F00
add r1, #0xd
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
str r2, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r0, r5, r1
mov r1, #4
add r2, r4, #0
lsr r3, r3, #1
2021-09-16 00:11:18 +00:00
bl AddTextPrinterParameterized2
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-08-14 00:11:40 +00:00
bl String_dtor
2021-06-27 18:48:56 +00:00
add r0, r6, #0
2021-08-13 18:03:14 +00:00
bl DestroyMsgData
2021-06-27 18:48:56 +00:00
mov r0, #0x43
lsl r0, r0, #2
add r0, r5, r0
2021-06-27 19:11:25 +00:00
bl sub_0201D5C8
2021-06-25 22:31:03 +00:00
add sp, #0x10
pop {r4, r5, r6, pc}
_022386DC:
2021-06-27 18:48:56 +00:00
mov r0, #0x43
lsl r0, r0, #2
add r0, r5, r0
2021-06-27 19:11:25 +00:00
bl sub_0201D8E4
2021-06-25 22:31:03 +00:00
add sp, #0x10
pop {r4, r5, r6, pc}
nop
2021-06-27 18:48:56 +00:00
_022386EC: .word 0x00010F00
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223866C
thumb_func_start ov57_022386F0
2021-06-27 18:48:56 +00:00
ov57_022386F0: ; 0x022386F0
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #2
mov r1, #0x34
2021-06-27 19:11:25 +00:00
bl sub_02013534
2021-06-27 18:48:56 +00:00
mov r1, #0x97
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
2021-06-27 18:48:56 +00:00
mov r0, #2
mov r1, #0x34
2021-06-27 19:11:25 +00:00
bl sub_02002CEC
2021-06-27 18:48:56 +00:00
mov r0, #4
mov r1, #0x34
2021-06-27 19:11:25 +00:00
bl sub_02002CEC
2021-06-25 22:31:03 +00:00
pop {r4, pc}
thumb_func_end ov57_022386F0
thumb_func_start ov57_02238714
2021-06-27 18:48:56 +00:00
ov57_02238714: ; 0x02238714
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #4
2021-06-27 19:11:25 +00:00
bl sub_02002DB4
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-27 19:11:25 +00:00
bl sub_02002DB4
2021-06-27 18:48:56 +00:00
mov r0, #0x26
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_02013660
2021-06-27 18:48:56 +00:00
mov r0, #0x9a
lsl r0, r0, #2
add r0, r4, r0
2021-06-27 19:11:25 +00:00
bl sub_02021B5C
2021-06-27 18:48:56 +00:00
mov r0, #0x99
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_02013660
2021-06-27 18:48:56 +00:00
mov r0, #0x9d
lsl r0, r0, #2
add r0, r4, r0
2021-06-27 19:11:25 +00:00
bl sub_02021B5C
2021-06-27 18:48:56 +00:00
mov r0, #0x97
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_020135AC
2021-06-25 22:31:03 +00:00
pop {r4, pc}
thumb_func_end ov57_02238714
thumb_func_start ov57_02238758
2021-06-27 18:48:56 +00:00
ov57_02238758: ; 0x02238758
2021-06-25 22:31:03 +00:00
push {r3, lr}
sub sp, #0x18
2021-06-27 18:48:56 +00:00
add r3, r0, #0
mov r0, #0x10
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #8
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
ldr r0, _02238790 ; =0x00007530
add r2, r3, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x14]
2021-06-27 18:48:56 +00:00
add r0, r3, #0
add r0, #0xe8
add r2, #0xdc
add r3, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r2, [r2]
ldr r3, [r3]
2021-06-27 18:48:56 +00:00
mov r1, #3
2021-06-27 19:11:25 +00:00
bl sub_0200D644
2021-06-25 22:31:03 +00:00
add sp, #0x18
pop {r3, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02238790: .word 0x00007530
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238758
thumb_func_start ov57_02238794
2021-06-27 18:48:56 +00:00
ov57_02238794: ; 0x02238794
2021-06-25 22:31:03 +00:00
push {r3, r4, lr}
sub sp, #4
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238758
2021-06-27 18:48:56 +00:00
mov r1, #0
add r0, r4, #0
mov r2, #0x68
mov r3, #0xa5
2021-06-25 22:31:03 +00:00
str r1, [sp]
bl ov57_022387E0
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
mov r2, #0xc0
mov r3, #0xa5
2021-06-25 22:31:03 +00:00
bl ov57_022387E0
add sp, #4
pop {r3, r4, pc}
thumb_func_end ov57_02238794
thumb_func_start ov57_022387C0
2021-06-27 18:48:56 +00:00
ov57_022387C0: ; 0x022387C0
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r0, #0x26
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
add r4, r1, #0
2021-06-27 19:11:25 +00:00
bl sub_020137C0
2021-06-27 18:48:56 +00:00
mov r0, #0x99
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
add r1, r4, #0
2021-06-27 19:11:25 +00:00
bl sub_020137C0
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_022387C0
thumb_func_start ov57_022387E0
2021-06-27 18:48:56 +00:00
ov57_022387E0: ; 0x022387E0
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x5c
2021-06-27 18:48:56 +00:00
add r5, r0, #0
add r4, r1, #0
2021-06-25 22:31:03 +00:00
str r2, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r7, r3, #0
mov r0, #0
mov r1, #0x1b
mov r2, #0xb
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl NewMsgDataFromNarc
2021-06-27 18:48:56 +00:00
add r1, r4, #5
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x14]
2021-08-14 00:11:40 +00:00
bl NewString_ReadMsgData
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x18]
add r0, sp, #0x1c
2021-09-16 00:11:18 +00:00
bl InitWindow
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
add r1, sp, #0x1c
2021-06-27 18:48:56 +00:00
mov r2, #0xa
mov r3, #2
2021-06-27 19:11:25 +00:00
bl sub_0201D494
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-06-25 22:31:03 +00:00
str r3, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0xff
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _022388DC ; =0x000F0D02
2021-06-25 22:31:03 +00:00
ldr r2, [sp, #0x18]
str r0, [sp, #8]
add r0, sp, #0x1c
2021-06-27 18:48:56 +00:00
mov r1, #2
2021-06-25 22:31:03 +00:00
str r3, [sp, #0xc]
2021-09-16 00:11:18 +00:00
bl AddTextPrinterParameterized2
2021-06-25 22:31:03 +00:00
add r0, sp, #0x1c
2021-06-27 18:48:56 +00:00
mov r1, #2
mov r2, #0x34
2021-06-27 19:11:25 +00:00
bl sub_02013688
2021-06-27 18:48:56 +00:00
mov r3, #0x9a
lsl r3, r3, #2
mov r1, #0xc
add r6, r4, #0
mul r6, r1
add r3, r5, r3
mov r1, #1
mov r2, #2
add r3, r3, r6
2021-06-27 19:11:25 +00:00
bl sub_02021AC8
2021-06-27 18:48:56 +00:00
mov r0, #0x97
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
str r0, [sp, #0x2c]
add r0, sp, #0x1c
str r0, [sp, #0x30]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 19:11:25 +00:00
bl sub_0200E2B0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x34]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
ldr r1, _022388E0 ; =0x00007530
2021-06-27 19:11:25 +00:00
bl sub_0200D934
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x38]
2021-06-27 18:48:56 +00:00
mov r2, #0
mov r0, #0x9b
2021-06-25 22:31:03 +00:00
str r2, [sp, #0x3c]
2021-06-27 18:48:56 +00:00
add r1, r5, r6
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r1, r0]
str r0, [sp, #0x40]
ldr r1, [sp, #0x18]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-27 19:11:25 +00:00
bl sub_02002F30
2021-06-27 18:48:56 +00:00
lsr r1, r0, #1
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r7, #0xc0
sub r0, r0, r1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x44]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x4c]
2021-06-27 18:48:56 +00:00
mov r0, #0x28
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x50]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x54]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x58]
2021-06-27 18:48:56 +00:00
mov r0, #0x26
lsl r0, r0, #4
add r5, r5, r0
2021-06-25 22:31:03 +00:00
str r7, [sp, #0x48]
2021-06-27 18:48:56 +00:00
lsl r4, r4, #2
2021-06-25 22:31:03 +00:00
add r0, sp, #0x2c
2021-06-27 19:11:25 +00:00
bl sub_020135D8
2021-06-25 22:31:03 +00:00
str r0, [r5, r4]
ldr r0, [r5, r4]
ldr r1, [sp, #0x70]
2021-06-27 19:11:25 +00:00
bl sub_020138E0
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #0x18]
2021-08-14 00:11:40 +00:00
bl String_dtor
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #0x14]
2021-08-13 18:03:14 +00:00
bl DestroyMsgData
2021-06-25 22:31:03 +00:00
add r0, sp, #0x1c
2021-08-13 18:03:14 +00:00
bl RemoveWindow
2021-06-25 22:31:03 +00:00
add sp, #0x5c
pop {r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_022388DC: .word 0x000F0D02
_022388E0: .word 0x00007530
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_022387E0
thumb_func_start ov57_022388E4
2021-06-27 18:48:56 +00:00
ov57_022388E4: ; 0x022388E4
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0xc
2021-06-27 18:48:56 +00:00
add r7, r0, #0
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
str r0, [sp]
2021-06-27 18:48:56 +00:00
add r3, r0, #0
add r5, r0, #0
mov r0, #0x45
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
_022388F8:
2021-06-27 18:48:56 +00:00
add r2, r7, r3
add r3, r3, #1
2021-06-25 22:31:03 +00:00
strb r5, [r2, r0]
cmp r3, #8
blt _022388F8
2021-06-27 18:48:56 +00:00
lsl r0, r1, #3
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
_02238906:
2021-06-27 18:48:56 +00:00
mov r6, #0
add r4, r7, #0
2021-06-25 22:31:03 +00:00
_0223890A:
ldr r0, [r4, #8]
2021-06-27 18:48:56 +00:00
add r1, r5, #0
2021-11-09 15:27:41 +00:00
bl SealIsOnCapsule
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _0223891E
2021-06-27 18:48:56 +00:00
add r6, r6, #1
add r4, #8
2021-06-25 22:31:03 +00:00
cmp r6, #0xc
blt _0223890A
_0223891E:
2021-06-27 18:48:56 +00:00
add r1, r7, r5
add r1, #0x80
2021-06-25 22:31:03 +00:00
ldrb r1, [r1]
cmp r1, #0
bne _0223892C
cmp r0, #1
bne _0223894E
_0223892C:
ldr r0, [sp]
2021-06-27 18:48:56 +00:00
add r1, r0, #1
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #8]
str r1, [sp]
cmp r1, r0
ble _0223894E
ldr r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r2, r5, #1
add r1, r7, r0
mov r0, #0x45
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
strb r2, [r1, r0]
ldr r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
cmp r0, #8
bge _02238954
_0223894E:
2021-06-27 18:48:56 +00:00
add r5, r5, #1
2021-06-25 22:31:03 +00:00
cmp r5, #0x51
blt _02238906
_02238954:
add sp, #0xc
pop {r4, r5, r6, r7, pc}
thumb_func_end ov57_022388E4
thumb_func_start ov57_02238958
2021-06-27 18:48:56 +00:00
ov57_02238958: ; 0x02238958
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x1c
2021-06-27 18:48:56 +00:00
add r7, r0, #0
add r0, #0xdc
2021-06-25 22:31:03 +00:00
ldr r6, [r0]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
add r0, #0xe0
2021-06-25 22:31:03 +00:00
ldr r5, [r0]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x18]
_02238972:
2021-06-27 18:48:56 +00:00
mov r0, #0x45
add r1, r7, r4
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldrb r0, [r1, r0]
2021-06-27 19:11:25 +00:00
bl sub_02091054
2021-06-27 18:48:56 +00:00
add r3, r0, #0
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _022389F0 ; =0x000061A8
add r1, r5, #0
add r0, r4, r0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
mov r2, #0x57
2021-06-27 19:11:25 +00:00
bl sub_0200D4A4
2021-06-27 18:48:56 +00:00
add r4, r4, #1
2021-06-25 22:31:03 +00:00
cmp r4, #8
blt _02238972
2021-06-27 18:48:56 +00:00
mov r0, #0x57
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #6
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
ldr r0, _022389F4 ; =0x00006597
mov r1, #3
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x14]
ldr r0, [sp, #0x18]
2021-06-27 18:48:56 +00:00
add r2, r6, #0
add r3, r5, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D644
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _022389F8 ; =0x0000699D
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
mov r2, #0x57
mov r3, #0x25
2021-06-27 19:11:25 +00:00
bl sub_0200D6D4
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _022389FC ; =0x00006D83
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
mov r2, #0x57
mov r3, #0x23
2021-06-27 19:11:25 +00:00
bl sub_0200D704
2021-06-25 22:31:03 +00:00
add sp, #0x1c
pop {r4, r5, r6, r7, pc}
nop
2021-06-27 18:48:56 +00:00
_022389F0: .word 0x000061A8
_022389F4: .word 0x00006597
_022389F8: .word 0x0000699D
_022389FC: .word 0x00006D83
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238958
thumb_func_start ov57_02238A00
2021-06-27 18:48:56 +00:00
ov57_02238A00: ; 0x02238A00
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x58
2021-06-27 18:48:56 +00:00
add r5, r0, #0
add r0, #0xdc
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xe0
2021-06-25 22:31:03 +00:00
ldr r7, [r0]
add r0, sp, #4
strh r4, [r0, #0x20]
strh r4, [r0, #0x22]
strh r4, [r0, #0x24]
strh r4, [r0, #0x26]
2021-06-27 18:48:56 +00:00
mov r0, #0x3c
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x2c]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x34]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x50]
2021-06-27 18:48:56 +00:00
sub r0, r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x48]
str r0, [sp, #0x4c]
2021-06-27 18:48:56 +00:00
ldr r0, _02238AA8 ; =0x00006597
2021-06-25 22:31:03 +00:00
str r4, [sp, #0x54]
str r0, [sp, #0x3c]
2021-06-27 18:48:56 +00:00
ldr r0, _02238AAC ; =0x0000699D
2021-06-25 22:31:03 +00:00
str r4, [sp, #0x30]
str r0, [sp, #0x40]
2021-06-27 18:48:56 +00:00
ldr r0, _02238AB0 ; =0x00006D83
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x44]
2021-06-27 18:48:56 +00:00
ldr r0, _02238AB4 ; =0x00000414
add r6, r5, r0
2021-06-25 22:31:03 +00:00
_02238A44:
2021-06-27 18:48:56 +00:00
ldr r0, _02238AB8 ; =0x000061A8
add r1, r7, #0
add r0, r4, r0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x38]
ldr r0, [sp]
add r2, sp, #0x24
2021-06-27 19:11:25 +00:00
bl sub_0200D734
2021-06-27 18:48:56 +00:00
add r4, r4, #1
stmia r6!, {r0}
2021-06-25 22:31:03 +00:00
cmp r4, #8
blt _02238A44
ldr r3, _02238ABC ; =ov57_0223BDD4
2021-06-25 22:31:03 +00:00
add r2, sp, #4
2021-06-27 18:48:56 +00:00
mov r1, #0x10
2021-06-25 22:31:03 +00:00
_02238A62:
ldrh r0, [r3]
2021-06-27 18:48:56 +00:00
add r3, r3, #2
2021-06-25 22:31:03 +00:00
strh r0, [r2]
2021-06-27 18:48:56 +00:00
add r2, r2, #2
sub r1, r1, #1
2021-06-25 22:31:03 +00:00
bne _02238A62
2021-06-27 18:48:56 +00:00
ldr r7, _02238AB4 ; =0x00000414
mov r6, #0
2021-06-25 22:31:03 +00:00
add r4, sp, #4
_02238A74:
2021-06-27 18:48:56 +00:00
mov r2, #2
2021-06-25 22:31:03 +00:00
ldrsh r2, [r4, r2]
2021-06-27 18:48:56 +00:00
ldr r0, _02238AB4 ; =0x00000414
mov r1, #0
sub r2, r2, #1
lsl r2, r2, #0x10
2021-06-25 22:31:03 +00:00
ldrsh r1, [r4, r1]
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
asr r2, r2, #0x10
2021-06-27 19:11:25 +00:00
bl sub_0200DDB8
2021-06-27 18:48:56 +00:00
ldr r0, _02238AB4 ; =0x00000414
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DC18
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r7]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DCC0
2021-06-27 18:48:56 +00:00
add r6, r6, #1
add r4, r4, #4
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r6, #8
blt _02238A74
add sp, #0x58
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02238AA8: .word 0x00006597
_02238AAC: .word 0x0000699D
_02238AB0: .word 0x00006D83
_02238AB4: .word 0x00000414
_02238AB8: .word 0x000061A8
_02238ABC: .word ov57_0223BDD4
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238A00
thumb_func_start ov57_02238AC0
2021-06-27 18:48:56 +00:00
ov57_02238AC0: ; 0x02238AC0
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r6, r0, #0
ldr r7, _02238AE8 ; =0x00000414
mov r4, #0
add r5, r6, #0
2021-06-25 22:31:03 +00:00
_02238ACA:
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r0, #0xe0
ldr r1, _02238AEC ; =0x000061A8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
2021-06-27 19:11:25 +00:00
bl sub_0200D958
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r7]
2021-06-27 19:11:25 +00:00
bl sub_0200D9DC
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r4, #8
blt _02238ACA
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02238AE8: .word 0x00000414
_02238AEC: .word 0x000061A8
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238AC0
thumb_func_start ov57_02238AF0
2021-06-27 18:48:56 +00:00
ov57_02238AF0: ; 0x02238AF0
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r0, #0x38
mul r0, r1
lsl r0, r0, #0x10
asr r7, r0, #0x10
lsl r0, r1, #4
neg r0, r0
lsl r0, r0, #0x10
asr r6, r0, #0x10
mov r4, #0
2021-06-25 22:31:03 +00:00
_02238B06:
2021-06-27 18:48:56 +00:00
mov r0, #0xd3
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
cmp r0, #0
beq _02238B1E
2021-06-27 18:48:56 +00:00
mov r0, #0xd5
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
add r1, r7, #0
add r2, r6, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DED0
2021-06-25 22:31:03 +00:00
_02238B1E:
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, #0x10
2021-06-25 22:31:03 +00:00
cmp r4, #8
blt _02238B06
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov57_02238AF0
thumb_func_start ov57_02238B28
2021-06-27 18:48:56 +00:00
ov57_02238B28: ; 0x02238B28
2021-06-25 22:31:03 +00:00
push {r3, lr}
sub sp, #8
2021-06-27 18:48:56 +00:00
mov r2, #2
mov r1, #0
ldr r0, _02238B44 ; =ov57_02238B48
2021-06-25 22:31:03 +00:00
str r2, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
add r3, r1, #0
2021-06-27 19:11:25 +00:00
bl sub_02026EB4
2021-06-25 22:31:03 +00:00
add sp, #8
pop {r3, pc}
nop
2021-06-27 18:48:56 +00:00
_02238B44: .word ov57_02238B48
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238B28
thumb_func_start ov57_02238B48
2021-06-27 18:48:56 +00:00
ov57_02238B48: ; 0x02238B48
2021-06-25 22:31:03 +00:00
push {r3, lr}
2021-06-27 18:48:56 +00:00
mov r0, #1
add r1, r0, #0
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
2021-06-27 18:48:56 +00:00
ldr r0, _02238BB4 ; =0x04000008
mov r1, #3
2021-06-25 22:31:03 +00:00
ldrh r2, [r0]
2021-06-27 18:48:56 +00:00
bic r2, r1
mov r1, #1
orr r1, r2
2021-06-25 22:31:03 +00:00
strh r1, [r0]
2021-06-27 18:48:56 +00:00
add r0, #0x58
2021-06-25 22:31:03 +00:00
ldrh r2, [r0]
2021-06-27 18:48:56 +00:00
ldr r1, _02238BB8 ; =0xFFFFCFFD
and r2, r1
2021-06-25 22:31:03 +00:00
strh r2, [r0]
2021-06-27 18:48:56 +00:00
add r2, r1, #2
2021-06-25 22:31:03 +00:00
ldrh r3, [r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #2
and r3, r2
mov r2, #0x10
orr r2, r3
2021-06-25 22:31:03 +00:00
strh r2, [r0]
ldrh r3, [r0]
2021-06-27 18:48:56 +00:00
ldr r2, _02238BBC ; =0x0000CFFB
and r3, r2
2021-06-25 22:31:03 +00:00
strh r3, [r0]
ldrh r3, [r0]
2021-06-27 18:48:56 +00:00
sub r2, #0x1c
and r3, r1
mov r1, #8
orr r1, r3
2021-06-25 22:31:03 +00:00
strh r1, [r0]
ldrh r1, [r0]
2021-06-27 18:48:56 +00:00
and r1, r2
2021-06-25 22:31:03 +00:00
strh r1, [r0]
2021-06-27 18:48:56 +00:00
mov r0, #0
add r1, r0, #0
add r2, r0, #0
add r3, r0, #0
2021-09-01 12:08:31 +00:00
bl G3X_SetFog
2021-06-27 18:48:56 +00:00
mov r0, #0
ldr r2, _02238BC0 ; =0x00007FFF
add r1, r0, #0
mov r3, #0x3f
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-09-01 12:08:31 +00:00
bl G3X_SetClearColor
2021-06-27 18:48:56 +00:00
ldr r1, _02238BC4 ; =0xBFFF0000
ldr r0, _02238BC8 ; =0x04000580
2021-06-25 22:31:03 +00:00
str r1, [r0]
pop {r3, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02238BB4: .word 0x04000008
_02238BB8: .word 0xFFFFCFFD
_02238BBC: .word 0x0000CFFB
_02238BC0: .word 0x00007FFF
_02238BC4: .word 0xBFFF0000
_02238BC8: .word 0x04000580
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238B48
thumb_func_start ov57_02238BCC
2021-06-27 18:48:56 +00:00
ov57_02238BCC: ; 0x02238BCC
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-11-28 17:24:40 +00:00
ldr r3, _02238C04 ; =NNS_GfdDefaultFuncAllocTexVram
2021-06-27 18:48:56 +00:00
mov r0, #2
mov r1, #0
2021-06-25 22:31:03 +00:00
ldr r3, [r3]
2021-06-27 18:48:56 +00:00
lsl r0, r0, #0xe
add r2, r1, #0
2021-06-27 21:10:38 +00:00
blx r3
2021-11-28 17:24:40 +00:00
ldr r3, _02238C08 ; =NNS_GfdDefaultFuncAllocPlttVram
2021-06-27 18:48:56 +00:00
mov r1, #0
add r4, r0, #0
2021-06-25 22:31:03 +00:00
ldr r3, [r3]
2021-06-27 18:48:56 +00:00
mov r0, #0x80
add r2, r1, #0
2021-06-27 21:10:38 +00:00
blx r3
2021-06-27 18:48:56 +00:00
add r5, r0, #0
2021-06-25 22:31:03 +00:00
cmp r4, #0
bne _02238BF4
bl GF_AssertFail
2021-06-25 22:31:03 +00:00
_02238BF4:
cmp r5, #0
bne _02238BFC
bl GF_AssertFail
2021-06-25 22:31:03 +00:00
_02238BFC:
2021-06-27 19:11:25 +00:00
bl sub_02014DA0
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
nop
2021-11-28 17:24:40 +00:00
_02238C04: .word NNS_GfdDefaultFuncAllocTexVram
_02238C08: .word NNS_GfdDefaultFuncAllocPlttVram
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238BCC
thumb_func_start ov57_02238C0C
2021-06-27 18:48:56 +00:00
ov57_02238C0C: ; 0x02238C0C
2021-06-25 22:31:03 +00:00
push {r3, lr}
2021-06-27 19:11:25 +00:00
bl sub_02026E48
bl sub_0201543C
2021-06-25 22:31:03 +00:00
cmp r0, #0
ble _02238C22
2021-06-27 19:11:25 +00:00
bl sub_02026E48
2021-10-26 20:50:59 +00:00
bl NNS_G2dSetupSoftwareSpriteCamera
2021-06-25 22:31:03 +00:00
_02238C22:
2021-06-27 19:11:25 +00:00
bl sub_02015460
2021-06-27 18:48:56 +00:00
mov r0, #1
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_02026E50
2021-06-25 22:31:03 +00:00
pop {r3, pc}
thumb_func_end ov57_02238C0C
thumb_func_start ov57_02238C30
2021-06-27 18:48:56 +00:00
ov57_02238C30: ; 0x02238C30
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x40
2021-06-27 18:48:56 +00:00
add r7, r3, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
ldr r1, [sp, #0x58]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223A0A8
cmp r0, #3
bhi _02238CA2
2021-06-27 18:48:56 +00:00
add r0, r0, r0
2021-06-25 22:31:03 +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-25 22:31:03 +00:00
add pc, r0
2021-06-27 18:48:56 +00:00
_02238C50: ; jump table
.short _02238C58 - _02238C50 - 2 ; case 0
.short _02238C68 - _02238C50 - 2 ; case 1
.short _02238C7C - _02238C50 - 2 ; case 2
.short _02238C90 - _02238C50 - 2 ; case 3
2021-06-25 22:31:03 +00:00
_02238C58:
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x18]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
mov r0, #1
mov r4, #6
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x20]
b _02238CA2
_02238C68:
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x18]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x20]
2021-06-27 18:48:56 +00:00
mov r0, #1
mov r4, #8
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x24]
b _02238CA2
_02238C7C:
2021-06-27 18:48:56 +00:00
mov r0, #3
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x18]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x20]
2021-06-27 18:48:56 +00:00
mov r0, #1
mov r4, #8
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x24]
b _02238CA2
_02238C90:
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x18]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x20]
2021-06-27 18:48:56 +00:00
mov r0, #1
mov r4, #8
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x24]
_02238CA2:
2021-06-27 18:48:56 +00:00
lsr r0, r4, #0x1f
add r0, r4, r0
asr r0, r0, #1
mov r1, #0x34
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x14]
2021-08-13 18:03:14 +00:00
bl ListMenuItems_ctor
2021-06-27 18:48:56 +00:00
mov r1, #0x6f
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r7, r1]
2021-06-27 18:48:56 +00:00
mov r0, #0
mov r1, #0x1b
mov r2, #0xb
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl NewMsgDataFromNarc
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
ldr r0, [sp, #0x14]
2021-06-27 18:48:56 +00:00
mov r6, #0
2021-06-25 22:31:03 +00:00
cmp r0, #0
ble _02238D04
add r5, sp, #0x18
_02238CCE:
ldr r1, [r5]
ldr r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
lsl r2, r1, #3
ldr r1, _02238D74 ; =ov57_0223BECC
2021-06-25 22:31:03 +00:00
ldr r1, [r1, r2]
2021-08-14 00:11:40 +00:00
bl NewString_ReadMsgData
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
ldr r2, [r5]
2021-06-27 18:48:56 +00:00
mov r0, #0x6f
lsl r3, r2, #3
ldr r2, _02238D74 ; =ov57_0223BECC
2021-06-27 18:48:56 +00:00
lsl r0, r0, #2
add r2, r2, r3
2021-06-25 22:31:03 +00:00
ldr r0, [r7, r0]
ldr r2, [r2, #4]
2021-06-27 18:48:56 +00:00
add r1, r4, #0
2021-08-14 20:32:53 +00:00
bl ListMenuItems_AddItem
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-08-14 00:11:40 +00:00
bl String_dtor
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #0x14]
2021-06-27 18:48:56 +00:00
add r6, r6, #1
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r6, r0
blt _02238CCE
_02238D04:
ldr r0, [sp, #0x10]
2021-08-13 18:03:14 +00:00
bl DestroyMsgData
2021-06-25 22:31:03 +00:00
add r0, sp, #0x28
2021-06-27 18:48:56 +00:00
mov r1, #0
mov r2, #0x18
2021-09-16 00:11:18 +00:00
bl MI_CpuFill8
ldr r2, _02238D78 ; =ov57_0223BD7C
2021-06-25 22:31:03 +00:00
add r0, sp, #0x18
ldrh r3, [r2]
add r1, sp, #0x28
strh r3, [r0, #0x10]
ldrh r3, [r2, #2]
strh r3, [r0, #0x12]
ldrh r3, [r2, #4]
strh r3, [r0, #0x14]
ldrh r3, [r2, #6]
strh r3, [r0, #0x16]
ldrh r3, [r2, #8]
ldrh r2, [r2, #0xa]
strh r3, [r0, #0x18]
strh r2, [r0, #0x1a]
2021-06-27 18:48:56 +00:00
mov r0, #0x6f
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r2, [r7, r0]
2021-06-27 18:48:56 +00:00
add r0, #0x8c
2021-06-25 22:31:03 +00:00
str r2, [sp, #0x34]
ldr r2, [sp, #0xc]
str r2, [sp, #0x38]
ldr r2, [sp, #0x14]
2021-06-27 18:48:56 +00:00
lsl r3, r2, #1
2021-06-25 22:31:03 +00:00
strb r2, [r1, #0x14]
2021-06-27 18:48:56 +00:00
add r3, r2, r3
mov r2, #0x17
sub r2, r2, r3
lsl r2, r2, #0x18
lsr r2, r2, #0x18
2021-06-25 22:31:03 +00:00
str r2, [sp]
2021-06-27 18:48:56 +00:00
mov r2, #8
2021-06-25 22:31:03 +00:00
str r2, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r2, #0
2021-06-25 22:31:03 +00:00
str r2, [sp, #8]
2021-06-27 18:48:56 +00:00
ldr r2, _02238D7C ; =0x0000040C
2021-06-25 22:31:03 +00:00
ldr r0, [r7, r0]
ldr r2, [r7, r2]
2021-06-27 18:48:56 +00:00
mov r3, #0x16
lsl r2, r2, #0x18
lsr r2, r2, #0x18
2021-06-27 19:11:25 +00:00
bl sub_020185FC
2021-06-27 18:48:56 +00:00
mov r1, #0x93
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r7, r1]
add sp, #0x40
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
_02238D74: .word ov57_0223BECC
_02238D78: .word ov57_0223BD7C
2021-06-27 18:48:56 +00:00
_02238D7C: .word 0x0000040C
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238C30
thumb_func_start ov57_02238D80
2021-06-27 18:48:56 +00:00
ov57_02238D80: ; 0x02238D80
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
mov r1, #0x93
add r4, r0, #0
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r1]
2021-06-27 18:48:56 +00:00
add r0, #0x27
2021-06-25 22:31:03 +00:00
ldrb r0, [r0]
2021-06-27 18:48:56 +00:00
lsl r0, r0, #0x18
lsr r2, r0, #0x19
ldr r0, _02238DA8 ; =0x0000040C
2021-06-25 22:31:03 +00:00
str r2, [r4, r0]
ldr r0, [r4, r1]
2021-06-27 19:11:25 +00:00
bl sub_02018680
2021-06-27 18:48:56 +00:00
mov r0, #0x6f
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-08-13 18:03:14 +00:00
bl ListMenuItems_dtor
2021-06-25 22:31:03 +00:00
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02238DA8: .word 0x0000040C
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238D80
thumb_func_start ov57_02238DAC
2021-06-27 18:48:56 +00:00
ov57_02238DAC: ; 0x02238DAC
2021-06-25 22:31:03 +00:00
push {r4, r5}
2021-06-27 18:48:56 +00:00
lsr r5, r0, #0x1f
lsl r4, r0, #0x1e
sub r4, r4, r5
mov r3, #0x1e
ror r4, r3
add r4, r5, r4
mov r3, #0x38
mul r3, r4
add r3, #0x28
2021-06-25 22:31:03 +00:00
strh r3, [r1]
2021-06-27 18:48:56 +00:00
asr r1, r0, #2
mov r0, #0x35
mul r0, r1
add r0, #0x1b
2021-06-25 22:31:03 +00:00
strh r0, [r2]
pop {r4, r5}
bx lr
thumb_func_end ov57_02238DAC
thumb_func_start ov57_02238DD0
2021-06-27 18:48:56 +00:00
ov57_02238DD0: ; 0x02238DD0
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, lr}
sub sp, #0x18
2021-06-27 18:48:56 +00:00
add r1, r0, #0
add r1, #0xdc
2021-06-25 22:31:03 +00:00
ldr r4, [r1]
2021-06-27 18:48:56 +00:00
add r1, r0, #0
add r1, #0xe0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r5, [r1]
ldr r6, [r0]
2021-06-27 19:11:25 +00:00
bl sub_02074490
2021-06-27 18:48:56 +00:00
mov r1, #0x14
2021-06-25 22:31:03 +00:00
str r1, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #3
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
mov r0, #0xfa
lsl r0, r0, #6
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x14]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
mov r1, #2
add r2, r4, #0
add r3, r5, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D644
bl sub_0207449C
2021-06-27 18:48:56 +00:00
add r3, r0, #0
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _02238E40 ; =0x00004268
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r2, #0x14
2021-06-27 19:11:25 +00:00
bl sub_0200D6D4
bl sub_020744A8
2021-06-27 18:48:56 +00:00
add r3, r0, #0
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _02238E44 ; =0x00004650
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r2, #0x14
2021-06-27 19:11:25 +00:00
bl sub_0200D704
2021-06-25 22:31:03 +00:00
add sp, #0x18
pop {r4, r5, r6, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02238E40: .word 0x00004268
_02238E44: .word 0x00004650
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238DD0
thumb_func_start ov57_02238E48
2021-06-27 18:48:56 +00:00
ov57_02238E48: ; 0x02238E48
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x4c
2021-06-27 18:48:56 +00:00
add r5, r0, #0
2021-06-25 22:31:03 +00:00
ldr r1, [r5]
2021-06-27 18:48:56 +00:00
mov r6, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r1]
cmp r0, #0
ble _02238F36
str r6, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r4, r5, #0
2021-06-25 22:31:03 +00:00
_02238E5C:
ldr r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r0, r1, r0
2021-06-25 22:31:03 +00:00
ldr r7, [r0, #4]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
2021-06-27 19:11:25 +00:00
bl sub_020741B0
2021-06-27 18:48:56 +00:00
add r3, r0, #0
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _02238F3C ; =0x00003A98
add r1, r5, #0
add r0, r6, r0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xdc
add r1, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r1]
2021-06-27 18:48:56 +00:00
mov r2, #0x14
2021-06-27 19:11:25 +00:00
bl sub_0200E188
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
add r0, sp, #0x18
strh r1, [r0]
strh r1, [r0, #2]
strh r1, [r0, #4]
strh r1, [r0, #6]
2021-06-27 18:48:56 +00:00
mov r0, #0xa
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x20]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x24]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x28]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x44]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x48]
2021-06-27 18:48:56 +00:00
ldr r0, _02238F3C ; =0x00003A98
2021-06-25 22:31:03 +00:00
add r2, sp, #0x18
2021-06-27 18:48:56 +00:00
add r0, r6, r0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x2c]
2021-06-27 18:48:56 +00:00
mov r0, #0xfa
lsl r0, r0, #6
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x30]
2021-06-27 18:48:56 +00:00
ldr r0, _02238F40 ; =0x00004268
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x34]
2021-06-27 18:48:56 +00:00
ldr r0, _02238F44 ; =0x00004650
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x38]
2021-06-27 18:48:56 +00:00
sub r0, r1, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x3c]
2021-06-27 18:48:56 +00:00
sub r0, r1, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x40]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r1, r5, #0
add r0, #0xdc
add r1, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r1]
2021-06-27 19:11:25 +00:00
bl sub_0200D734
2021-06-27 18:48:56 +00:00
mov r1, #0xc9
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
mov r1, #5
mov r2, #0
2021-09-06 13:41:18 +00:00
bl GetMonData
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
mov r1, #0x4c
mov r2, #0
2021-09-06 13:41:18 +00:00
bl GetMonData
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x14]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
mov r1, #0x70
mov r2, #0
2021-09-06 13:41:18 +00:00
bl GetMonData
2021-06-27 18:48:56 +00:00
add r1, r0, #0
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #0x10]
ldr r2, [sp, #0x14]
2021-06-27 19:11:25 +00:00
bl sub_02074364
2021-06-27 18:48:56 +00:00
add r1, r0, #0
mov r0, #0xc9
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
ldr r0, [r0]
2021-06-27 19:11:25 +00:00
bl sub_02024AA8
2021-06-27 18:48:56 +00:00
mov r0, #0xc9
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_0200DC4C
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #0xc]
ldr r1, [r5]
2021-06-27 18:48:56 +00:00
add r0, r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
ldr r0, [r1]
2021-06-27 18:48:56 +00:00
add r6, r6, #1
add r4, r4, #4
2021-06-25 22:31:03 +00:00
cmp r6, r0
blt _02238E5C
_02238F36:
add sp, #0x4c
pop {r4, r5, r6, r7, pc}
nop
2021-06-27 18:48:56 +00:00
_02238F3C: .word 0x00003A98
_02238F40: .word 0x00004268
_02238F44: .word 0x00004650
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238E48
thumb_func_start ov57_02238F48
2021-06-27 18:48:56 +00:00
ov57_02238F48: ; 0x02238F48
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r6, r0, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r6]
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
cmp r0, #0
ble _02238F70
2021-06-27 18:48:56 +00:00
mov r7, #0xc9
add r5, r6, #0
lsl r7, r7, #2
2021-06-25 22:31:03 +00:00
_02238F5C:
ldr r0, [r5, r7]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DCE8
2021-06-25 22:31:03 +00:00
ldr r0, [r6]
2021-06-27 18:48:56 +00:00
add r4, r4, #1
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r4, r0
blt _02238F5C
_02238F70:
2021-06-27 18:48:56 +00:00
mov r5, #0
add r4, r6, #0
2021-06-25 22:31:03 +00:00
_02238F74:
ldr r7, [r4, #4]
cmp r7, #0xff
beq _02238FB8
add r1, sp, #0
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r1, #2
2021-06-25 22:31:03 +00:00
add r2, sp, #0
bl ov57_02238DAC
add r2, sp, #0
2021-06-27 18:48:56 +00:00
mov r1, #2
2021-06-25 22:31:03 +00:00
ldrsh r1, [r2, r1]
2021-06-27 18:48:56 +00:00
add r3, r2, #0
mov r2, #0
2021-06-25 22:31:03 +00:00
ldrsh r2, [r3, r2]
2021-06-27 18:48:56 +00:00
lsl r0, r7, #2
add r7, r6, r0
mov r0, #0xc9
lsl r0, r0, #2
sub r1, #0x10
add r2, #0xc
lsl r1, r1, #0x10
lsl r2, r2, #0x10
2021-06-25 22:31:03 +00:00
ldr r0, [r7, r0]
2021-06-27 18:48:56 +00:00
asr r1, r1, #0x10
asr r2, r2, #0x10
2021-06-27 19:11:25 +00:00
bl sub_0200DDB8
2021-06-27 18:48:56 +00:00
mov r0, #0xc9
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r7, r0]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_0200DCE8
2021-06-25 22:31:03 +00:00
_02238FB8:
2021-06-27 18:48:56 +00:00
add r5, r5, #1
add r4, #8
2021-06-25 22:31:03 +00:00
cmp r5, #0xc
blt _02238F74
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02238F48
thumb_func_start ov57_02238FC4
2021-06-27 18:48:56 +00:00
ov57_02238FC4: ; 0x02238FC4
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r6, r0, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r6]
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
cmp r0, #0
ble _02238FEA
2021-06-27 18:48:56 +00:00
mov r7, #0xc9
add r5, r6, #0
lsl r7, r7, #2
2021-06-25 22:31:03 +00:00
_02238FD8:
ldr r0, [r5, r7]
2021-06-27 19:11:25 +00:00
bl sub_0200DC18
2021-06-25 22:31:03 +00:00
ldr r0, [r6]
2021-06-27 18:48:56 +00:00
add r4, r4, #1
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r4, r0
blt _02238FD8
_02238FEA:
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov57_02238FC4
thumb_func_start ov57_02238FEC
2021-06-27 18:48:56 +00:00
ov57_02238FEC: ; 0x02238FEC
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r6, r0, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r6]
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
cmp r0, #0
ble _02239012
2021-06-27 18:48:56 +00:00
mov r7, #0xc9
add r5, r6, #0
lsl r7, r7, #2
2021-06-25 22:31:03 +00:00
_02239000:
ldr r0, [r5, r7]
2021-06-27 19:11:25 +00:00
bl sub_0200D9DC
2021-06-25 22:31:03 +00:00
ldr r0, [r6]
2021-06-27 18:48:56 +00:00
add r4, r4, #1
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r4, r0
blt _02239000
_02239012:
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov57_02238FEC
thumb_func_start ov57_02239014
2021-06-27 18:48:56 +00:00
ov57_02239014: ; 0x02239014
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r7, r0, #0
mov r6, #0
add r4, r7, #0
add r5, r7, #0
2021-06-25 22:31:03 +00:00
_0223901E:
ldr r0, [r4, #8]
bl ov57_0223A07C
2021-06-27 18:48:56 +00:00
mov r1, #0x29
lsl r1, r1, #4
2021-06-25 22:31:03 +00:00
str r0, [r5, r1]
2021-06-27 18:48:56 +00:00
mov r0, #0xa3
2021-06-25 22:31:03 +00:00
ldr r1, [r4, #4]
2021-06-27 18:48:56 +00:00
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r1, [r5, r0]
2021-06-27 18:48:56 +00:00
add r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
cmp r0, #0
bne _0223904C
2021-06-27 18:48:56 +00:00
mov r0, #0xa3
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
cmp r0, #0xff
beq _0223904C
2021-06-27 18:48:56 +00:00
add r0, r7, #0
add r1, r6, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223BC4C
_0223904C:
2021-06-27 18:48:56 +00:00
add r6, r6, #1
add r4, #8
add r5, #0xc
2021-06-25 22:31:03 +00:00
cmp r6, #0xc
blt _0223901E
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov57_02239014
thumb_func_start ov57_02239058
2021-06-27 18:48:56 +00:00
ov57_02239058: ; 0x02239058
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, lr}
sub sp, #0x4c
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0x34
2021-06-27 19:11:25 +00:00
bl sub_0200CF18
2021-06-25 22:31:03 +00:00
add r2, sp, #0x2c
ldr r5, _022390E8 ; =ov57_0223BDB4
2021-06-25 22:31:03 +00:00
str r0, [r4, #8]
2021-06-27 18:48:56 +00:00
ldmia r5!, {r0, r1}
add r3, r2, #0
stmia r2!, {r0, r1}
ldmia r5!, {r0, r1}
stmia r2!, {r0, r1}
ldmia r5!, {r0, r1}
stmia r2!, {r0, r1}
ldmia r5!, {r0, r1}
ldr r6, _022390EC ; =ov57_0223BD88
2021-06-27 18:48:56 +00:00
stmia r2!, {r0, r1}
2021-06-25 22:31:03 +00:00
add r5, sp, #0x18
2021-06-27 18:48:56 +00:00
ldmia r6!, {r0, r1}
add r2, r5, #0
stmia r5!, {r0, r1}
ldmia r6!, {r0, r1}
stmia r5!, {r0, r1}
2021-06-25 22:31:03 +00:00
ldr r0, [r6]
2021-06-27 18:48:56 +00:00
add r1, r3, #0
2021-06-25 22:31:03 +00:00
str r0, [r5]
ldr r0, [r4, #8]
2021-06-27 18:48:56 +00:00
mov r3, #0x20
2021-06-27 19:11:25 +00:00
bl sub_0200CF70
ldr r3, _022390F0 ; =ov57_0223BD9C
2021-06-25 22:31:03 +00:00
add r2, sp, #0
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}
2021-06-25 22:31:03 +00:00
ldr r0, [r4, #8]
2021-06-27 19:11:25 +00:00
bl sub_0200CF38
2021-06-25 22:31:03 +00:00
str r0, [r4, #0xc]
ldr r0, [r4, #8]
ldr r1, [r4, #0xc]
2021-06-27 18:48:56 +00:00
mov r2, #0x80
2021-06-27 19:11:25 +00:00
bl sub_0200CFF4
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _022390C2
bl GF_AssertFail
2021-06-25 22:31:03 +00:00
_022390C2:
ldr r0, [r4, #8]
ldr r1, [r4, #0xc]
add r2, sp, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D3F8
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _022390D4
bl GF_AssertFail
2021-06-25 22:31:03 +00:00
_022390D4:
ldr r1, [r4, #0x14]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-27 19:11:25 +00:00
bl sub_02018424
2021-06-27 18:48:56 +00:00
mov r1, #0x5d
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
add sp, #0x4c
pop {r3, r4, r5, r6, pc}
nop
_022390E8: .word ov57_0223BDB4
_022390EC: .word ov57_0223BD88
_022390F0: .word ov57_0223BD9C
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02239058
thumb_func_start ov57_022390F4
2021-06-27 18:48:56 +00:00
ov57_022390F4: ; 0x022390F4
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0x5d
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_02018474
2021-06-25 22:31:03 +00:00
ldr r0, [r4, #8]
ldr r1, [r4, #0xc]
2021-06-27 19:11:25 +00:00
bl sub_0200D998
2021-06-25 22:31:03 +00:00
ldr r0, [r4, #8]
2021-06-27 19:11:25 +00:00
bl sub_0200D108
2021-06-25 22:31:03 +00:00
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_022390F4
thumb_func_start ov57_02239114
2021-06-27 18:48:56 +00:00
ov57_02239114: ; 0x02239114
2021-06-25 22:31:03 +00:00
push {r4, r5, lr}
sub sp, #0xc
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #2
add r4, r1, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _02239178 ; =0x0000AFC8
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xdc
add r1, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r1]
2021-06-27 18:48:56 +00:00
add r2, r4, #0
mov r3, #0xe
2021-06-27 19:11:25 +00:00
bl sub_0200D504
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _0223917C ; =0x0000B798
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xdc
add r1, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r1]
2021-06-27 18:48:56 +00:00
add r2, r4, #0
mov r3, #0x10
2021-06-27 19:11:25 +00:00
bl sub_0200D6EC
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _02239180 ; =0x0000BB80
add r2, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xdc
add r5, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r5]
2021-06-27 18:48:56 +00:00
mov r3, #0xf
2021-06-27 19:11:25 +00:00
bl sub_0200D71C
2021-06-25 22:31:03 +00:00
add sp, #0xc
pop {r4, r5, pc}
nop
2021-06-27 18:48:56 +00:00
_02239178: .word 0x0000AFC8
_0223917C: .word 0x0000B798
_02239180: .word 0x0000BB80
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02239114
thumb_func_start ov57_02239184
2021-06-27 18:48:56 +00:00
ov57_02239184: ; 0x02239184
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x64
ldr r4, _02239208 ; =ov57_0223BE18
2021-06-27 18:48:56 +00:00
add r6, r0, #0
2021-06-25 22:31:03 +00:00
add r3, sp, #0
2021-06-27 18:48:56 +00:00
mov r2, #6
2021-06-25 22:31:03 +00:00
_02239190:
2021-06-27 18:48:56 +00:00
ldmia r4!, {r0, r1}
stmia r3!, {r0, r1}
sub r2, r2, #1
2021-06-25 22:31:03 +00:00
bne _02239190
2021-06-27 18:48:56 +00:00
mov r7, #0
2021-06-25 22:31:03 +00:00
add r4, sp, #0
2021-06-27 18:48:56 +00:00
add r5, r6, #0
2021-06-25 22:31:03 +00:00
_0223919E:
ldr r1, [r4]
add r0, sp, #0
strh r1, [r0, #0x30]
ldr r1, [r4, #4]
add r2, sp, #0x30
strh r1, [r0, #0x32]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
strh r1, [r0, #0x34]
strh r1, [r0, #0x36]
2021-06-27 18:48:56 +00:00
mov r0, #0x28
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x38]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x3c]
str r0, [sp, #0x40]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x5c]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x60]
2021-06-27 18:48:56 +00:00
ldr r0, _0223920C ; =0x0000AFC8
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x44]
2021-06-27 18:48:56 +00:00
ldr r0, _02239210 ; =0x00006594
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x48]
2021-06-27 18:48:56 +00:00
ldr r0, _02239214 ; =0x0000B798
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x4c]
2021-06-27 18:48:56 +00:00
ldr r0, _02239218 ; =0x0000BB80
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x50]
2021-06-27 18:48:56 +00:00
sub r0, r1, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x54]
2021-06-27 18:48:56 +00:00
sub r0, r1, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x58]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r1, r6, #0
add r0, #0xdc
add r1, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r1]
2021-06-27 19:11:25 +00:00
bl sub_0200D734
2021-06-27 18:48:56 +00:00
mov r1, #0xcf
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r5, r1]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
ldr r1, [r4, #8]
2021-06-27 19:11:25 +00:00
bl sub_0200E0C0
2021-06-27 18:48:56 +00:00
add r7, r7, #1
add r4, #0xc
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r7, #4
blt _0223919E
add sp, #0x64
pop {r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
_02239208: .word ov57_0223BE18
2021-06-27 18:48:56 +00:00
_0223920C: .word 0x0000AFC8
_02239210: .word 0x00006594
_02239214: .word 0x0000B798
_02239218: .word 0x0000BB80
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02239184
thumb_func_start ov57_0223921C
2021-06-27 18:48:56 +00:00
ov57_0223921C: ; 0x0223921C
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
add r0, #0xd8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
cmp r0, #0
beq _0223923C
2021-06-27 18:48:56 +00:00
mov r6, #0xcf
mov r4, #0
lsl r6, r6, #2
2021-06-25 22:31:03 +00:00
_0223922E:
ldr r0, [r5, r6]
2021-06-27 19:11:25 +00:00
bl sub_0200DC18
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r4, #4
blt _0223922E
_0223923C:
pop {r4, r5, r6, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223921C
thumb_func_start ov57_02239240
2021-06-27 18:48:56 +00:00
ov57_02239240: ; 0x02239240
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
mov r7, #0xcf
add r5, r0, #0
add r6, r1, #0
mov r4, #0
lsl r7, r7, #2
2021-06-25 22:31:03 +00:00
_0223924C:
ldr r0, [r5, r7]
2021-06-27 18:48:56 +00:00
add r1, r6, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DCE8
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r4, #4
blt _0223924C
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02239240
thumb_func_start ov57_02239260
2021-06-27 18:48:56 +00:00
ov57_02239260: ; 0x02239260
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, lr}
2021-06-27 18:48:56 +00:00
mov r6, #0xcf
add r5, r0, #0
mov r4, #0
lsl r6, r6, #2
2021-06-25 22:31:03 +00:00
_0223926A:
ldr r0, [r5, r6]
2021-06-27 19:11:25 +00:00
bl sub_0200D9DC
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r4, #4
blt _0223926A
pop {r4, r5, r6, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02239260
thumb_func_start ov57_0223927C
2021-06-27 18:48:56 +00:00
ov57_0223927C: ; 0x0223927C
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x18
2021-06-27 18:48:56 +00:00
add r7, r2, #0
mov r2, #1
2021-06-25 22:31:03 +00:00
str r2, [sp]
ldr r2, [sp, #0x3c]
ldr r4, [sp, #0x48]
str r2, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r2, _022392F0 ; =0x00002AF8
add r5, r0, #0
add r2, r3, r2
2021-06-25 22:31:03 +00:00
str r2, [sp, #8]
2021-06-27 18:48:56 +00:00
add r2, r4, #0
add r6, r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D504
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #0x30]
str r4, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #8]
ldr r1, [sp, #0x44]
2021-06-27 18:48:56 +00:00
add r2, r5, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
ldr r1, [sp, #0x3c]
2021-06-27 18:48:56 +00:00
add r3, r6, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #0x10]
2021-06-27 18:48:56 +00:00
ldr r1, _022392F0 ; =0x00002AF8
add r0, r0, r1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x14]
ldr r1, [sp, #0x40]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D68C
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
ldr r3, [sp, #0x34]
2021-06-27 18:48:56 +00:00
ldr r0, _022392F0 ; =0x00002AF8
add r1, r6, #0
add r0, r3, r0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r2, r4, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D6EC
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
ldr r3, [sp, #0x38]
2021-06-27 18:48:56 +00:00
ldr r0, _022392F0 ; =0x00002AF8
add r1, r6, #0
add r0, r3, r0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r2, r4, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D71C
2021-06-25 22:31:03 +00:00
add sp, #0x18
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_022392F0: .word 0x00002AF8
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223927C
thumb_func_start ov57_022392F4
2021-06-27 18:48:56 +00:00
ov57_022392F4: ; 0x022392F4
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x58
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r0, #3
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x13
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0x12
add r4, r1, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #1
add r2, r5, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
str r1, [sp, #0x14]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r4, [sp, #0x18]
2021-06-27 18:48:56 +00:00
add r0, #0xdc
add r1, #0xe0
add r2, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r1]
ldr r2, [r2]
2021-06-27 18:48:56 +00:00
mov r3, #0x11
2021-06-25 22:31:03 +00:00
bl ov57_0223927C
2021-06-27 18:48:56 +00:00
mov r0, #5
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x22
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0x21
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #1
add r2, r5, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
str r1, [sp, #0x14]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r4, [sp, #0x18]
2021-06-27 18:48:56 +00:00
add r0, #0xdc
add r1, #0xe0
add r2, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r1]
ldr r2, [r2]
2021-06-27 18:48:56 +00:00
mov r3, #0x20
2021-06-25 22:31:03 +00:00
bl ov57_0223927C
2021-06-27 18:48:56 +00:00
mov r6, #0
add r4, r5, #0
2021-06-25 22:31:03 +00:00
add r7, sp, #0x1c
_02239362:
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
strh r0, [r7, #8]
strh r0, [r7, #0xa]
strh r0, [r7, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #0x29
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r5, #0
2021-06-25 22:31:03 +00:00
strh r0, [r7, #0xe]
2021-06-27 18:48:56 +00:00
mov r0, #0x28
sub r0, r0, r6
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x2c]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x30]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x34]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x50]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x54]
2021-06-27 18:48:56 +00:00
ldr r0, _022394A0 ; =0x00002B09
add r1, #0xe0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x38]
2021-06-27 18:48:56 +00:00
sub r0, #0xe
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x3c]
2021-06-27 18:48:56 +00:00
ldr r0, _022394A4 ; =0x00002B0B
2021-06-25 22:31:03 +00:00
add r2, sp, #0x24
str r0, [sp, #0x40]
2021-06-27 18:48:56 +00:00
sub r0, r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x44]
2021-06-27 18:48:56 +00:00
mov r0, #0
mvn r0, r0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x48]
str r0, [sp, #0x4c]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xdc
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r1]
2021-06-27 19:11:25 +00:00
bl sub_0200D734
2021-06-27 18:48:56 +00:00
mov r1, #0xa5
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
add r1, sp, #0x20
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r1, #2
2021-06-25 22:31:03 +00:00
add r2, sp, #0x20
bl ov57_02238DAC
2021-06-27 18:48:56 +00:00
mov r0, #0xa5
mov r1, #6
mov r2, #4
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldrsh r1, [r7, r1]
ldrsh r2, [r7, r2]
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DDB8
2021-06-27 18:48:56 +00:00
add r6, r6, #1
add r4, #0xc
2021-06-25 22:31:03 +00:00
cmp r6, #0xc
blt _02239362
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
add r0, sp, #0x1c
strh r1, [r0, #8]
strh r1, [r0, #0xa]
strh r1, [r0, #0xc]
strh r1, [r0, #0xe]
2021-06-27 18:48:56 +00:00
mov r0, #0x14
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x2c]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r1, [sp, #0x30]
str r1, [sp, #0x54]
2021-06-27 18:48:56 +00:00
ldr r1, _022394A8 ; =0x00002B18
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x34]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
sub r0, #0x1b
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x3c]
2021-06-27 18:48:56 +00:00
add r0, r1, #2
mov r2, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x40]
2021-06-27 18:48:56 +00:00
add r0, r1, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x44]
2021-06-27 18:48:56 +00:00
sub r0, r2, #3
2021-06-25 22:31:03 +00:00
str r1, [sp, #0x38]
2021-06-27 18:48:56 +00:00
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r2, [sp, #0x50]
str r0, [sp, #0x48]
str r0, [sp, #0x4c]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xdc
add r1, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r1]
add r2, sp, #0x24
2021-06-27 19:11:25 +00:00
bl sub_0200D734
2021-06-27 18:48:56 +00:00
mov r1, #0xc7
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r5, r1]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r1, r5, #0
add r0, #0xdc
add r1, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
ldr r1, [r1]
add r2, sp, #0x24
2021-06-27 19:11:25 +00:00
bl sub_0200D734
2021-06-27 18:48:56 +00:00
mov r1, #0x32
lsl r1, r1, #4
2021-06-25 22:31:03 +00:00
str r0, [r5, r1]
2021-06-27 18:48:56 +00:00
add r1, #0xcc
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r1]
add r1, sp, #0x1c
2021-06-27 18:48:56 +00:00
add r1, #2
2021-06-25 22:31:03 +00:00
add r2, sp, #0x1c
bl ov57_02238DAC
2021-06-27 18:48:56 +00:00
mov r0, #0xc7
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
add r3, sp, #0x1c
2021-06-27 18:48:56 +00:00
mov r1, #2
mov r2, #0
2021-06-25 22:31:03 +00:00
ldrsh r1, [r3, r1]
ldrsh r2, [r3, r2]
ldr r0, [r5, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DDB8
2021-06-27 18:48:56 +00:00
mov r0, #0x32
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
add r3, sp, #0x1c
2021-06-27 18:48:56 +00:00
mov r1, #2
mov r2, #0
2021-06-25 22:31:03 +00:00
ldrsh r1, [r3, r1]
ldrsh r2, [r3, r2]
ldr r0, [r5, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DDB8
2021-06-27 18:48:56 +00:00
mov r0, #0x32
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0x19
2021-06-27 19:11:25 +00:00
bl sub_0200DD68
2021-06-27 18:48:56 +00:00
mov r0, #0xc7
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DC4C
2021-06-27 18:48:56 +00:00
mov r0, #0x32
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DC4C
2021-06-25 22:31:03 +00:00
add sp, #0x58
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_022394A0: .word 0x00002B09
_022394A4: .word 0x00002B0B
_022394A8: .word 0x00002B18
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_022392F4
thumb_func_start ov57_022394AC
2021-06-27 18:48:56 +00:00
ov57_022394AC: ; 0x022394AC
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239014
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238F48
2021-06-27 18:48:56 +00:00
mov r7, #0x29
lsl r7, r7, #4
mov r4, #0
add r6, r7, #4
2021-06-25 22:31:03 +00:00
_022394C2:
ldr r0, [r5, r6]
cmp r0, #0
beq _022394CE
ldr r1, [r5, r7]
2021-06-27 19:11:25 +00:00
bl sub_0200DC4C
2021-06-25 22:31:03 +00:00
_022394CE:
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, #0xc
2021-06-25 22:31:03 +00:00
cmp r4, #0xc
blt _022394C2
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov57_022394AC
thumb_func_start ov57_022394D8
2021-06-27 18:48:56 +00:00
ov57_022394D8: ; 0x022394D8
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x28
2021-06-27 18:48:56 +00:00
add r5, r0, #0
lsl r6, r1, #3
add r0, r5, r6
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #4]
2021-06-27 18:48:56 +00:00
lsl r4, r2, #3
2021-06-25 22:31:03 +00:00
str r1, [sp]
2021-06-27 18:48:56 +00:00
add r1, r5, r4
2021-06-25 22:31:03 +00:00
ldr r7, [r1, #4]
cmp r0, #0xff
beq _02239504
2021-06-27 18:48:56 +00:00
add r1, r2, #1
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
ldr r1, [r5]
2021-06-27 18:48:56 +00:00
lsl r0, r0, #2
add r0, r1, r0
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #4]
2021-06-27 18:48:56 +00:00
mov r1, #0xa2
2021-06-25 22:31:03 +00:00
add r2, sp, #0xc
2021-09-12 22:42:37 +00:00
bl SetMonData
2021-06-25 22:31:03 +00:00
_02239504:
cmp r7, #0xff
beq _0223951E
ldr r0, [sp]
add r2, sp, #8
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
ldr r1, [r5]
2021-06-27 18:48:56 +00:00
lsl r0, r7, #2
add r0, r1, r0
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #4]
2021-06-27 18:48:56 +00:00
mov r1, #0xa2
2021-09-12 22:42:37 +00:00
bl SetMonData
2021-06-25 22:31:03 +00:00
_0223951E:
2021-06-27 18:48:56 +00:00
add r2, r5, #4
2021-06-25 22:31:03 +00:00
ldr r1, [r2, r6]
ldr r0, [r2, r4]
2021-06-27 18:48:56 +00:00
add r7, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [r2, r6]
str r1, [r2, r4]
2021-06-27 18:48:56 +00:00
add r7, #8
2021-06-25 22:31:03 +00:00
ldr r0, [r7, r6]
add r1, sp, #0x10
2021-11-09 15:27:41 +00:00
bl CopyCapsule
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, #8
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
ldr r0, [r0, r4]
ldr r1, [r7, r6]
2021-11-09 15:27:41 +00:00
bl CopyCapsule
2021-06-25 22:31:03 +00:00
ldr r1, [sp, #4]
add r0, sp, #0x10
ldr r1, [r1, r4]
2021-11-09 15:27:41 +00:00
bl CopyCapsule
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_022394AC
add sp, #0x28
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov57_022394D8
thumb_func_start ov57_02239558
2021-06-27 18:48:56 +00:00
ov57_02239558: ; 0x02239558
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r7, r0, #0
mov r6, #0xa5
mov r4, #0
add r5, r7, #0
lsl r6, r6, #2
2021-06-25 22:31:03 +00:00
_02239564:
ldr r0, [r5, r6]
2021-06-27 19:11:25 +00:00
bl sub_0200DC18
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, #0xc
2021-06-25 22:31:03 +00:00
cmp r4, #0xc
blt _02239564
2021-06-27 18:48:56 +00:00
mov r0, #0xc7
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r7, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DC18
2021-06-27 18:48:56 +00:00
mov r0, #0x32
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r7, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DC18
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov57_02239558
thumb_func_start ov57_02239588
2021-06-27 18:48:56 +00:00
ov57_02239588: ; 0x02239588
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r7, r0, #0
mov r6, #0xa5
mov r4, #0
add r5, r7, #0
lsl r6, r6, #2
2021-06-25 22:31:03 +00:00
_02239594:
ldr r0, [r5, r6]
2021-06-27 19:11:25 +00:00
bl sub_0200D9DC
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, #0xc
2021-06-25 22:31:03 +00:00
cmp r4, #0xc
blt _02239594
2021-06-27 18:48:56 +00:00
mov r0, #0xc7
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r7, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200D9DC
2021-06-27 18:48:56 +00:00
mov r0, #0x32
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r7, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200D9DC
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov57_02239588
thumb_func_start ov57_022395B8
2021-06-27 18:48:56 +00:00
ov57_022395B8: ; 0x022395B8
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x1c
2021-06-27 18:48:56 +00:00
add r6, r0, #0
mov r0, #0x34
2021-06-25 22:31:03 +00:00
str r1, [sp, #0x10]
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x57
mov r1, #8
mov r2, #1
2021-06-25 22:31:03 +00:00
add r3, sp, #0x18
bl GfGfxLoader_GetCharData
2021-06-25 22:31:03 +00:00
ldr r1, [sp, #0x18]
str r0, [sp, #0x14]
ldr r7, [r1, #0x14]
ldr r1, [r1, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
bl DC_FlushRange
ldr r5, _0223966C ; =ov57_0223BDF4
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-25 22:31:03 +00:00
_022395E2:
2021-06-27 18:48:56 +00:00
add r0, r4, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
ldr r2, [r5]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
lsl r2, r2, #5
mov r1, #1
add r2, r7, r2
mov r3, #0x20
bl BG_LoadCharTilesData
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r4, #9
blo _022395E2
ldr r0, [sp, #0x14]
2021-08-12 19:28:01 +00:00
bl FreeToHeap
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r1, #0x20
2021-06-25 22:31:03 +00:00
str r1, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0xc0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
str r1, [sp, #0xc]
ldr r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
mov r1, #0x57
mov r2, #2
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_LoadFromNarc
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
mov r1, #1
mov r2, #0x1f
mov r3, #0xd
2021-06-27 19:11:25 +00:00
bl sub_0200E3DC
bl sub_0200E3D8
2021-06-27 18:48:56 +00:00
add r2, r0, #0
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x20
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0xd0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
ldr r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
mov r1, #0x26
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_LoadNarc
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x20
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0xe0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
ldr r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
mov r1, #0x10
mov r2, #8
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_LoadNarc
2021-06-25 22:31:03 +00:00
add sp, #0x1c
pop {r4, r5, r6, r7, pc}
nop
_0223966C: .word ov57_0223BDF4
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_022395B8
thumb_func_start ov57_02239670
2021-06-27 18:48:56 +00:00
ov57_02239670: ; 0x02239670
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, lr}
sub sp, #0xc
2021-06-27 18:48:56 +00:00
add r6, r2, #0
add r4, r1, #0
lsl r1, r6, #0x18
lsr r1, r1, #0x18
2021-06-25 22:31:03 +00:00
str r1, [sp]
2021-06-27 18:48:56 +00:00
mov r1, #0x34
2021-06-25 22:31:03 +00:00
str r1, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r1, #4
mov r2, #1
mov r3, #0xf
add r5, r0, #0
2021-06-27 19:11:25 +00:00
bl sub_0200E644
2021-06-27 18:48:56 +00:00
add r0, r6, #0
2021-06-27 19:11:25 +00:00
bl sub_0200E640
2021-06-27 18:48:56 +00:00
add r2, r0, #0
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x20
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0xc0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0x26
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_LoadNarc
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
mov r1, #4
mov r2, #0x1f
mov r3, #0xd
2021-06-27 19:11:25 +00:00
bl sub_0200E3DC
bl sub_0200E3D8
2021-06-27 18:48:56 +00:00
add r2, r0, #0
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x20
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0xd0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0x26
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_LoadNarc
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x20
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0xe0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0x10
mov r2, #8
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_LoadNarc
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x20
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0x30
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0x10
mov r2, #8
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_LoadNarc
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x20
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0xb0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0x57
mov r2, #0
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_LoadNarc
2021-06-25 22:31:03 +00:00
add sp, #0xc
pop {r3, r4, r5, r6, pc}
thumb_func_end ov57_02239670
thumb_func_start ov57_02239728
2021-06-27 18:48:56 +00:00
ov57_02239728: ; 0x02239728
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, lr}
sub sp, #0xc
2021-06-27 18:48:56 +00:00
add r4, r0, #0
add r5, r2, #0
2021-06-25 22:31:03 +00:00
cmp r3, #0
beq _0223974E
cmp r1, #0
bne _02239744
2021-06-27 18:48:56 +00:00
mov r1, #1
add r2, r1, #0
mov r3, #0xc
2021-09-18 16:36:50 +00:00
bl DrawFrameAndWindow1
2021-06-25 22:31:03 +00:00
b _0223974E
_02239744:
2021-06-27 18:48:56 +00:00
mov r1, #1
add r2, r1, #0
mov r3, #0xc
2021-09-17 00:20:16 +00:00
bl DrawFrameAndWindow2
2021-06-25 22:31:03 +00:00
_0223974E:
2021-06-27 18:48:56 +00:00
ldr r0, _022397AC ; =0x0000FFFF
2021-06-25 22:31:03 +00:00
cmp r5, r0
bne _02239766
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0xf
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-27 19:11:25 +00:00
bl sub_0201D5C8
2021-06-25 22:31:03 +00:00
add sp, #0xc
pop {r3, r4, r5, r6, pc}
_02239766:
2021-06-27 18:48:56 +00:00
mov r0, #0
mov r1, #0x1b
mov r2, #0xb
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl NewMsgDataFromNarc
2021-06-27 18:48:56 +00:00
add r1, r5, #0
add r6, r0, #0
2021-08-14 00:11:40 +00:00
bl NewString_ReadMsgData
2021-06-27 18:48:56 +00:00
add r5, r0, #0
add r0, r4, #0
mov r1, #0xf
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [sp]
str r1, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r2, r5, #0
add r3, r1, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #8]
2021-08-13 18:03:14 +00:00
bl AddTextPrinterParameterized
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-27 19:11:25 +00:00
bl sub_0201D5C8
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-08-14 00:11:40 +00:00
bl String_dtor
2021-06-27 18:48:56 +00:00
add r0, r6, #0
2021-08-13 18:03:14 +00:00
bl DestroyMsgData
2021-06-25 22:31:03 +00:00
add sp, #0xc
pop {r3, r4, r5, r6, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_022397AC: .word 0x0000FFFF
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02239728
thumb_func_start ov57_022397B0
2021-06-27 18:48:56 +00:00
ov57_022397B0: ; 0x022397B0
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x14
2021-06-27 18:48:56 +00:00
add r5, r1, #0
add r7, r0, #0
add r0, r5, #0
add r4, r2, #0
add r6, r3, #0
2021-09-16 00:11:18 +00:00
bl InitWindow
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #0x28]
2021-06-27 18:48:56 +00:00
lsl r2, r4, #0x18
lsl r0, r0, #0x18
lsr r0, r0, #0x18
2021-06-25 22:31:03 +00:00
str r0, [sp]
ldr r0, [sp, #0x2c]
2021-06-27 18:48:56 +00:00
lsl r3, r6, #0x18
lsl r0, r0, #0x18
lsr r0, r0, #0x18
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
ldr r0, [sp, #0x30]
2021-06-27 18:48:56 +00:00
add r1, r5, #0
lsl r0, r0, #0x18
lsr r0, r0, #0x18
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0xe
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
ldr r0, [sp, #0x34]
2021-06-27 18:48:56 +00:00
lsr r2, r2, #0x18
lsl r0, r0, #0x10
lsr r0, r0, #0x10
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
lsr r3, r3, #0x18
2021-09-17 00:20:16 +00:00
bl AddWindowParameterized
2021-06-27 18:48:56 +00:00
mov r1, #1
add r0, r5, #0
add r2, r1, #0
mov r3, #0xc
2021-09-17 00:20:16 +00:00
bl DrawFrameAndWindow2
2021-06-27 18:48:56 +00:00
add r0, r5, #0
mov r1, #0xf
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-27 19:11:25 +00:00
bl sub_0201D5C8
2021-06-25 22:31:03 +00:00
add sp, #0x14
pop {r4, r5, r6, r7, pc}
thumb_func_end ov57_022397B0
thumb_func_start ov57_02239814
2021-06-27 18:48:56 +00:00
ov57_02239814: ; 0x02239814
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x14
2021-06-27 18:48:56 +00:00
add r5, r1, #0
add r7, r0, #0
add r0, r5, #0
add r4, r2, #0
add r6, r3, #0
2021-09-16 00:11:18 +00:00
bl InitWindow
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #0x28]
2021-06-27 18:48:56 +00:00
lsl r2, r4, #0x18
lsl r0, r0, #0x18
lsr r0, r0, #0x18
2021-06-25 22:31:03 +00:00
str r0, [sp]
ldr r0, [sp, #0x2c]
2021-06-27 18:48:56 +00:00
lsl r3, r6, #0x18
lsl r0, r0, #0x18
lsr r0, r0, #0x18
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
ldr r0, [sp, #0x30]
2021-06-27 18:48:56 +00:00
add r1, r5, #0
lsl r0, r0, #0x18
lsr r0, r0, #0x18
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0xe
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
ldr r0, [sp, #0x34]
2021-06-27 18:48:56 +00:00
lsr r2, r2, #0x18
lsl r0, r0, #0x10
lsr r0, r0, #0x10
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
lsr r3, r3, #0x18
2021-09-17 00:20:16 +00:00
bl AddWindowParameterized
2021-06-27 18:48:56 +00:00
add r0, r5, #0
mov r1, #0xf
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-25 22:31:03 +00:00
add sp, #0x14
pop {r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02239814
thumb_func_start ov57_02239868
2021-06-27 18:48:56 +00:00
ov57_02239868: ; 0x02239868
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x14
2021-06-27 18:48:56 +00:00
add r5, r1, #0
add r7, r0, #0
add r0, r5, #0
add r4, r2, #0
add r6, r3, #0
2021-09-16 00:11:18 +00:00
bl InitWindow
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #0x28]
2021-06-27 18:48:56 +00:00
lsl r2, r4, #0x18
lsl r0, r0, #0x18
lsr r0, r0, #0x18
2021-06-25 22:31:03 +00:00
str r0, [sp]
ldr r0, [sp, #0x2c]
2021-06-27 18:48:56 +00:00
lsl r3, r6, #0x18
lsl r0, r0, #0x18
lsr r0, r0, #0x18
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
ldr r0, [sp, #0x30]
2021-06-27 18:48:56 +00:00
add r1, r5, #0
lsl r0, r0, #0x18
lsr r0, r0, #0x18
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
ldr r0, [sp, #0x38]
2021-06-27 18:48:56 +00:00
lsr r2, r2, #0x18
lsl r0, r0, #0x18
lsr r0, r0, #0x18
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
ldr r0, [sp, #0x34]
2021-06-27 18:48:56 +00:00
lsr r3, r3, #0x18
lsl r0, r0, #0x10
lsr r0, r0, #0x10
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
2021-09-17 00:20:16 +00:00
bl AddWindowParameterized
2021-06-27 18:48:56 +00:00
add r0, r5, #0
mov r1, #0xf
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-27 19:11:25 +00:00
bl sub_0201D5C8
2021-06-25 22:31:03 +00:00
add sp, #0x14
pop {r4, r5, r6, r7, pc}
thumb_func_end ov57_02239868
thumb_func_start ov57_022398C4
2021-06-27 18:48:56 +00:00
ov57_022398C4: ; 0x022398C4
2021-06-25 22:31:03 +00:00
push {r3, r4, lr}
sub sp, #0x14
2021-06-27 18:48:56 +00:00
mov r1, #2
add r4, r0, #0
2021-06-25 22:31:03 +00:00
str r1, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
str r1, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0xa6
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #0xb
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
add r1, #0x96
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
mov r2, #6
mov r3, #3
2021-06-25 22:31:03 +00:00
bl ov57_02239868
2021-06-27 18:48:56 +00:00
mov r1, #2
2021-06-25 22:31:03 +00:00
str r1, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
str r1, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0xae
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #0xb
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
add r1, #0x9e
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
mov r2, #6
mov r3, #0xa
2021-06-25 22:31:03 +00:00
bl ov57_02239868
2021-06-27 18:48:56 +00:00
mov r0, #5
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0xb6
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #0xb
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
add r1, #0xa6
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
mov r2, #6
mov r3, #3
2021-06-25 22:31:03 +00:00
bl ov57_02239868
2021-06-27 18:48:56 +00:00
mov r0, #5
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0xbe
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #0xb
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
add r1, #0xae
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
mov r2, #6
mov r3, #0xa
2021-06-25 22:31:03 +00:00
bl ov57_02239868
2021-06-27 18:48:56 +00:00
mov r0, #8
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0xc6
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #0xb
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
add r1, #0xb6
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
mov r2, #6
mov r3, #3
2021-06-25 22:31:03 +00:00
bl ov57_02239868
2021-06-27 18:48:56 +00:00
mov r0, #8
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0xce
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #0xb
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
add r1, #0xbe
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
mov r2, #6
mov r3, #0xa
2021-06-25 22:31:03 +00:00
bl ov57_02239868
2021-06-27 18:48:56 +00:00
mov r2, #0xb
2021-06-25 22:31:03 +00:00
str r2, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0xd6
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r2, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, #0xe4
add r1, #0xc6
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
mov r2, #6
mov r3, #3
2021-06-25 22:31:03 +00:00
bl ov57_02239868
2021-06-27 18:48:56 +00:00
mov r2, #0xb
2021-06-25 22:31:03 +00:00
str r2, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0xde
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r2, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, #0xe4
add r1, #0xce
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
mov r2, #6
mov r3, #0xa
2021-06-25 22:31:03 +00:00
bl ov57_02239868
add sp, #0x14
pop {r3, r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_022398C4
thumb_func_start ov57_022399F8
2021-06-27 18:48:56 +00:00
ov57_022399F8: ; 0x022399F8
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x14
2021-06-27 18:48:56 +00:00
add r7, r0, #0
add r5, r7, #0
add r5, #0xec
mov r6, #5
add r5, #0x50
2021-06-25 22:31:03 +00:00
_02239A06:
2021-06-27 18:48:56 +00:00
ldr r0, _02239A84 ; =0x0000044B
add r1, r7, r6
2021-06-25 22:31:03 +00:00
ldrb r0, [r1, r0]
str r0, [sp, #0x10]
cmp r0, #0
bne _02239A22
2021-06-27 18:48:56 +00:00
add r0, r5, #0
mov r1, #0xee
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-27 19:11:25 +00:00
bl sub_0201D5C8
2021-06-25 22:31:03 +00:00
b _02239A76
_02239A22:
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
mov r0, #0x64
mov r1, #0x34
2021-08-14 00:11:40 +00:00
bl String_ctor
2021-06-25 22:31:03 +00:00
ldr r1, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r7, #0x64]
2021-06-27 18:48:56 +00:00
sub r1, r1, #1
2021-11-09 15:27:41 +00:00
bl SealCaseInventory_GetSealQuantity
2021-06-27 18:48:56 +00:00
add r1, r0, #0
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r2, #3
mov r3, #1
2021-08-17 00:42:24 +00:00
bl String16_FormatInteger
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0xff
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _02239A88 ; =0x00010200
mov r1, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r2, r4, #0
mov r3, #7
2021-09-16 00:11:18 +00:00
bl AddTextPrinterParameterized2
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-27 19:11:25 +00:00
bl sub_0201D5C8
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-08-14 00:11:40 +00:00
bl String_dtor
2021-06-25 22:31:03 +00:00
_02239A76:
2021-06-27 18:48:56 +00:00
add r6, r6, #1
add r5, #0x10
2021-06-25 22:31:03 +00:00
cmp r6, #0xd
blt _02239A06
add sp, #0x14
pop {r4, r5, r6, r7, pc}
nop
2021-06-27 18:48:56 +00:00
_02239A84: .word 0x0000044B
_02239A88: .word 0x00010200
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_022399F8
thumb_func_start ov57_02239A8C
2021-06-27 18:48:56 +00:00
ov57_02239A8C: ; 0x02239A8C
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x14
2021-06-27 18:48:56 +00:00
add r6, r0, #0
add r0, r1, #5
lsl r4, r0, #4
mov r0, #0x45
add r1, r6, r1
lsl r0, r0, #4
add r5, r6, #0
2021-06-25 22:31:03 +00:00
ldrb r7, [r1, r0]
2021-06-27 18:48:56 +00:00
add r5, #0xec
2021-06-25 22:31:03 +00:00
cmp r7, #0
bne _02239AB8
2021-06-27 18:48:56 +00:00
add r0, r5, r4
mov r1, #0xee
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
add r0, r5, r4
2021-06-27 19:11:25 +00:00
bl sub_0201D5C8
2021-06-25 22:31:03 +00:00
add sp, #0x14
pop {r4, r5, r6, r7, pc}
_02239AB8:
2021-06-27 18:48:56 +00:00
add r0, r5, r4
mov r1, #0
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
mov r0, #0x64
mov r1, #0x34
2021-08-14 00:11:40 +00:00
bl String_ctor
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x10]
ldr r0, [r6, #0x64]
2021-06-27 18:48:56 +00:00
sub r1, r7, #1
2021-11-09 15:27:41 +00:00
bl SealCaseInventory_GetSealQuantity
2021-06-27 18:48:56 +00:00
add r1, r0, #0
mov r3, #1
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
mov r2, #3
2021-06-25 22:31:03 +00:00
str r3, [sp]
2021-08-17 00:42:24 +00:00
bl String16_FormatInteger
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0xff
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _02239B08 ; =0x00010200
2021-06-25 22:31:03 +00:00
ldr r2, [sp, #0x10]
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r5, r4
mov r3, #7
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-09-16 00:11:18 +00:00
bl AddTextPrinterParameterized2
2021-06-27 18:48:56 +00:00
add r0, r5, r4
2021-06-27 19:11:25 +00:00
bl sub_0201D5C8
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #0x10]
2021-08-14 00:11:40 +00:00
bl String_dtor
2021-06-25 22:31:03 +00:00
add sp, #0x14
pop {r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02239B08: .word 0x00010200
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02239A8C
thumb_func_start ov57_02239B0C
2021-06-27 18:48:56 +00:00
ov57_02239B0C: ; 0x02239B0C
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r0, #0xec
add r5, r0, #0
mov r4, #5
add r5, #0x50
2021-06-25 22:31:03 +00:00
_02239B16:
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-27 19:11:25 +00:00
bl sub_0201D8E4
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-25 22:31:03 +00:00
cmp r4, #0xd
blt _02239B16
pop {r3, r4, r5, pc}
thumb_func_end ov57_02239B0C
thumb_func_start ov57_02239B2C
2021-06-27 18:48:56 +00:00
ov57_02239B2C: ; 0x02239B2C
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, lr}
sub sp, #0xc
2021-06-27 18:48:56 +00:00
add r5, r1, #0
ldr r1, _02239B90 ; =0x0000FFFF
add r4, r0, #0
2021-06-25 22:31:03 +00:00
cmp r5, r1
bne _02239B4A
2021-06-27 18:48:56 +00:00
mov r1, #0xf
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-27 19:11:25 +00:00
bl sub_0201D5C8
2021-06-25 22:31:03 +00:00
add sp, #0xc
pop {r3, r4, r5, r6, pc}
_02239B4A:
2021-06-27 18:48:56 +00:00
mov r0, #0
mov r1, #0x1b
mov r2, #0xf
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl NewMsgDataFromNarc
2021-06-27 18:48:56 +00:00
add r1, r5, #0
add r6, r0, #0
2021-08-14 00:11:40 +00:00
bl NewString_ReadMsgData
2021-06-27 18:48:56 +00:00
add r5, r0, #0
add r0, r4, #0
mov r1, #0xf
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [sp]
str r1, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r2, r5, #0
add r3, r1, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #8]
2021-08-13 18:03:14 +00:00
bl AddTextPrinterParameterized
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-27 19:11:25 +00:00
bl sub_0201D5C8
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-08-14 00:11:40 +00:00
bl String_dtor
2021-06-27 18:48:56 +00:00
add r0, r6, #0
2021-08-13 18:03:14 +00:00
bl DestroyMsgData
2021-06-25 22:31:03 +00:00
add sp, #0xc
pop {r3, r4, r5, r6, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02239B90: .word 0x0000FFFF
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02239B2C
thumb_func_start ov57_02239B94
2021-06-27 18:48:56 +00:00
ov57_02239B94: ; 0x02239B94
2021-06-25 22:31:03 +00:00
push {r3, lr}
2021-09-18 16:36:50 +00:00
bl GX_BothDispOn
2021-06-27 18:48:56 +00:00
mov r0, #0x10
mov r1, #1
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
2021-06-27 18:48:56 +00:00
mov r0, #0x10
mov r1, #1
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
2021-06-25 22:31:03 +00:00
pop {r3, pc}
thumb_func_end ov57_02239B94
thumb_func_start ov57_02239BAC
2021-06-27 18:48:56 +00:00
ov57_02239BAC: ; 0x02239BAC
2021-06-25 22:31:03 +00:00
push {lr}
sub sp, #0xc
2021-06-27 18:48:56 +00:00
mov r0, #6
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-25 22:31:03 +00:00
str r1, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0
add r2, r1, #0
add r3, r0, #0
2021-06-27 19:11:25 +00:00
bl sub_0200FA24
2021-06-25 22:31:03 +00:00
add sp, #0xc
pop {pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02239BAC
thumb_func_start ov57_02239BCC
2021-06-27 18:48:56 +00:00
ov57_02239BCC: ; 0x02239BCC
2021-06-25 22:31:03 +00:00
push {lr}
sub sp, #0xc
2021-06-27 18:48:56 +00:00
mov r0, #6
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0
add r1, r0, #0
add r2, r0, #0
add r3, r0, #0
2021-06-27 19:11:25 +00:00
bl sub_0200FA24
2021-06-25 22:31:03 +00:00
add sp, #0xc
pop {pc}
thumb_func_end ov57_02239BCC
thumb_func_start ov57_02239BEC
2021-06-27 18:48:56 +00:00
ov57_02239BEC: ; 0x02239BEC
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
sub sp, #0x10
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
add r2, r5, #0
add r4, r1, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r2, #0xe4
2021-06-25 22:31:03 +00:00
ldr r2, [r2]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #8
mov r3, #2
2021-06-27 19:11:25 +00:00
bl sub_02007B44
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
add r2, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r2, #0xe4
2021-06-25 22:31:03 +00:00
ldr r2, [r2]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0xc
mov r3, #2
2021-06-27 19:11:25 +00:00
bl sub_02007B68
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x60
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #0x57
mov r2, #2
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_LoadNarc
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
add r2, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r2, #0xe4
2021-06-25 22:31:03 +00:00
ldr r2, [r2]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #9
mov r3, #3
2021-06-27 19:11:25 +00:00
bl sub_02007B44
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r5, #0xe4
2021-06-25 22:31:03 +00:00
ldr r2, [r5]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0xd
mov r3, #3
2021-06-27 19:11:25 +00:00
bl sub_02007B68
2021-06-25 22:31:03 +00:00
add sp, #0x10
pop {r3, r4, r5, pc}
thumb_func_end ov57_02239BEC
thumb_func_start ov57_02239C88
2021-06-27 18:48:56 +00:00
ov57_02239C88: ; 0x02239C88
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
sub sp, #0x10
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
add r2, r5, #0
add r4, r1, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r2, #0xe4
2021-06-25 22:31:03 +00:00
ldr r2, [r2]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #7
mov r3, #5
2021-06-27 19:11:25 +00:00
bl sub_02007B44
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
add r2, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r2, #0xe4
2021-06-25 22:31:03 +00:00
ldr r2, [r2]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0xb
mov r3, #5
2021-06-27 19:11:25 +00:00
bl sub_02007B68
2021-06-27 18:48:56 +00:00
mov r2, #1
2021-06-25 22:31:03 +00:00
str r2, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x40
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0
add r5, #0xe8
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
ldr r0, [r5]
2021-06-27 18:48:56 +00:00
mov r1, #0x57
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_LoadNarc
2021-06-25 22:31:03 +00:00
add sp, #0x10
pop {r3, r4, r5, pc}
thumb_func_end ov57_02239C88
thumb_func_start ov57_02239CE8
2021-06-27 18:48:56 +00:00
ov57_02239CE8: ; 0x02239CE8
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
sub sp, #0x10
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
add r2, r5, #0
add r4, r1, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r2, #0xe4
mov r1, #7
2021-06-25 22:31:03 +00:00
ldr r2, [r2]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r3, r1, #0
2021-06-27 19:11:25 +00:00
bl sub_02007B44
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
add r2, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r2, #0xe4
2021-06-25 22:31:03 +00:00
ldr r2, [r2]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0xa
mov r3, #7
2021-06-27 19:11:25 +00:00
bl sub_02007B68
2021-06-27 18:48:56 +00:00
mov r2, #1
2021-06-25 22:31:03 +00:00
str r2, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x40
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0
add r5, #0xe8
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
ldr r0, [r5]
2021-06-27 18:48:56 +00:00
mov r1, #0x57
mov r3, #0x34
2021-08-13 18:03:14 +00:00
bl PaletteData_LoadNarc
2021-06-25 22:31:03 +00:00
add sp, #0x10
pop {r3, r4, r5, pc}
thumb_func_end ov57_02239CE8
thumb_func_start ov57_02239D48
2021-06-27 18:48:56 +00:00
ov57_02239D48: ; 0x02239D48
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, lr}
sub sp, #0x18
2021-06-27 18:48:56 +00:00
add r5, r1, #0
add r1, r0, #0
add r1, #0xdc
2021-06-25 22:31:03 +00:00
ldr r6, [r1]
2021-06-27 18:48:56 +00:00
add r1, r0, #0
add r1, #0xe0
2021-06-25 22:31:03 +00:00
ldr r4, [r1]
2021-06-27 18:48:56 +00:00
mov r1, #4
2021-06-25 22:31:03 +00:00
str r5, [sp]
str r1, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #3
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r2, #2
2021-06-25 22:31:03 +00:00
str r2, [sp, #0x10]
2021-06-27 18:48:56 +00:00
ldr r2, _02239E80 ; =0x00006594
add r0, #0xe8
2021-06-25 22:31:03 +00:00
str r2, [sp, #0x14]
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r2, r6, #0
add r3, r4, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D68C
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _02239E84 ; =0x000061C2
add r1, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r2, r5, #0
mov r3, #0x1a
2021-06-27 19:11:25 +00:00
bl sub_0200D504
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _02239E88 ; =0x00006994
add r1, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r2, r5, #0
mov r3, #0x1c
2021-06-27 19:11:25 +00:00
bl sub_0200D6EC
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _02239E8C ; =0x00006D7B
add r1, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r2, r5, #0
mov r3, #0x1b
2021-06-27 19:11:25 +00:00
bl sub_0200D71C
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _02239E90 ; =0x000061C5
add r1, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r2, r5, #0
mov r3, #0x1d
2021-06-27 19:11:25 +00:00
bl sub_0200D504
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _02239E94 ; =0x00006997
add r1, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r2, r5, #0
mov r3, #0x1f
2021-06-27 19:11:25 +00:00
bl sub_0200D6EC
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _02239E98 ; =0x00006D7E
add r1, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r2, r5, #0
mov r3, #0x1e
2021-06-27 19:11:25 +00:00
bl sub_0200D71C
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _02239E9C ; =0x000061BC
add r1, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r2, r5, #0
mov r3, #0x14
2021-06-27 19:11:25 +00:00
bl sub_0200D504
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _02239EA0 ; =0x0000698E
add r1, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r2, r5, #0
mov r3, #0x16
2021-06-27 19:11:25 +00:00
bl sub_0200D6EC
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _02239EA4 ; =0x00006D75
add r1, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r2, r5, #0
mov r3, #0x15
2021-06-27 19:11:25 +00:00
bl sub_0200D71C
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _02239EA8 ; =0x000088CF
add r1, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r2, r5, #0
mov r3, #0x17
2021-06-27 19:11:25 +00:00
bl sub_0200D504
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _02239EAC ; =0x00006991
add r1, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r2, r5, #0
mov r3, #0x19
2021-06-27 19:11:25 +00:00
bl sub_0200D6EC
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _02239EB0 ; =0x00006D78
add r1, r4, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r2, r5, #0
mov r3, #0x18
2021-06-27 19:11:25 +00:00
bl sub_0200D71C
2021-06-25 22:31:03 +00:00
add sp, #0x18
pop {r4, r5, r6, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02239E80: .word 0x00006594
_02239E84: .word 0x000061C2
_02239E88: .word 0x00006994
_02239E8C: .word 0x00006D7B
_02239E90: .word 0x000061C5
_02239E94: .word 0x00006997
_02239E98: .word 0x00006D7E
_02239E9C: .word 0x000061BC
_02239EA0: .word 0x0000698E
_02239EA4: .word 0x00006D75
_02239EA8: .word 0x000088CF
_02239EAC: .word 0x00006991
_02239EB0: .word 0x00006D78
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02239D48
thumb_func_start ov57_02239EB4
2021-06-27 18:48:56 +00:00
ov57_02239EB4: ; 0x02239EB4
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0xa0
2021-06-27 18:48:56 +00:00
add r7, r0, #0
add r0, #0xdc
2021-06-25 22:31:03 +00:00
ldr r6, [r0]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
add r0, #0xe0
2021-06-25 22:31:03 +00:00
ldr r5, [r0]
2021-06-27 18:48:56 +00:00
ldr r0, _02239FF4 ; =0x00000414
mov r1, #0
2021-06-25 22:31:03 +00:00
add r2, sp, #0x6c
strh r1, [r2]
strh r1, [r2, #2]
strh r1, [r2, #4]
2021-06-27 18:48:56 +00:00
add r4, r7, r0
2021-06-25 22:31:03 +00:00
strh r1, [r2, #6]
2021-06-27 18:48:56 +00:00
mov r0, #0x3c
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x74]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x7c]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r1, [sp, #0x9c]
2021-06-27 18:48:56 +00:00
sub r1, r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x98]
str r0, [sp, #0x78]
2021-06-27 18:48:56 +00:00
ldr r0, _02239FF8 ; =0x000061C2
2021-06-25 22:31:03 +00:00
str r1, [sp, #0x90]
str r0, [sp, #0x80]
2021-06-27 18:48:56 +00:00
ldr r0, _02239FFC ; =0x00006594
2021-06-25 22:31:03 +00:00
str r1, [sp, #0x94]
str r0, [sp, #0x84]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A000 ; =0x00006994
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x88]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A004 ; =0x00006D7B
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x8c]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D734
2021-06-25 22:31:03 +00:00
str r0, [r4, #0x20]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A008 ; =0x000061C5
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x80]
2021-06-27 18:48:56 +00:00
ldr r0, _02239FFC ; =0x00006594
2021-06-25 22:31:03 +00:00
add r2, sp, #0x6c
str r0, [sp, #0x84]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A00C ; =0x00006997
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x88]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A010 ; =0x00006D7E
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x8c]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D734
2021-06-25 22:31:03 +00:00
str r0, [r4, #0x24]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x98]
str r0, [sp, #0x78]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A014 ; =0x000088CF
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x80]
2021-06-27 18:48:56 +00:00
ldr r0, _02239FFC ; =0x00006594
2021-06-25 22:31:03 +00:00
add r2, sp, #0x6c
str r0, [sp, #0x84]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A018 ; =0x00006991
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x88]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A01C ; =0x00006D78
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x8c]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D734
2021-06-25 22:31:03 +00:00
str r0, [r4, #0x28]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x98]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x78]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A020 ; =0x000061BC
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x80]
2021-06-27 18:48:56 +00:00
ldr r0, _02239FFC ; =0x00006594
2021-06-25 22:31:03 +00:00
add r2, sp, #0x6c
str r0, [sp, #0x84]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A024 ; =0x0000698E
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x88]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A028 ; =0x00006D75
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x8c]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
2021-06-27 19:11:25 +00:00
bl sub_0200D734
2021-06-25 22:31:03 +00:00
str r0, [r4, #0x2c]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
add r2, sp, #0x6c
2021-06-27 19:11:25 +00:00
bl sub_0200D734
ldr r3, _0223A02C ; =ov57_0223BE48
2021-06-25 22:31:03 +00:00
str r0, [r4, #0x30]
add r2, sp, #0x38
2021-06-27 18:48:56 +00:00
mov r1, #0x1a
2021-06-25 22:31:03 +00:00
_02239F78:
ldrh r0, [r3]
2021-06-27 18:48:56 +00:00
add r3, r3, #2
2021-06-25 22:31:03 +00:00
strh r0, [r2]
2021-06-27 18:48:56 +00:00
add r2, r2, #2
sub r1, r1, #1
2021-06-25 22:31:03 +00:00
bne _02239F78
ldr r3, _0223A030 ; =ov57_0223BE7C
2021-06-25 22:31:03 +00:00
add r2, sp, #4
2021-06-27 18:48:56 +00:00
mov r1, #0x1a
2021-06-25 22:31:03 +00:00
_02239F8A:
ldrh r0, [r3]
2021-06-27 18:48:56 +00:00
add r3, r3, #2
2021-06-25 22:31:03 +00:00
strh r0, [r2]
2021-06-27 18:48:56 +00:00
add r2, r2, #2
sub r1, r1, #1
2021-06-25 22:31:03 +00:00
bne _02239F8A
2021-06-27 18:48:56 +00:00
mov r0, #8
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x1f
add r4, r7, #0
lsl r0, r0, #4
add r7, r7, r0
2021-06-25 22:31:03 +00:00
add r6, sp, #0x58
2021-06-27 18:48:56 +00:00
add r4, #0x20
2021-06-25 22:31:03 +00:00
add r5, sp, #0x24
2021-06-27 18:48:56 +00:00
add r7, #0x20
2021-06-25 22:31:03 +00:00
_02239FAA:
2021-06-27 18:48:56 +00:00
ldr r0, _02239FF4 ; =0x00000414
mov r1, #0
mov r2, #2
2021-06-25 22:31:03 +00:00
ldrsh r1, [r6, r1]
ldrsh r2, [r6, r2]
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DDB8
2021-06-27 18:48:56 +00:00
ldr r0, _02239FF4 ; =0x00000414
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DC18
2021-06-27 18:48:56 +00:00
ldr r0, _02239FF4 ; =0x00000414
mov r1, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DCC0
2021-06-27 18:48:56 +00:00
ldr r1, _02239FF4 ; =0x00000414
mov r2, #0
mov r3, #2
2021-06-25 22:31:03 +00:00
ldrsh r2, [r5, r2]
ldrsh r3, [r5, r3]
ldr r1, [r4, r1]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
2021-06-25 22:31:03 +00:00
bl ov57_022385A4
ldr r0, [sp]
2021-06-27 18:48:56 +00:00
add r6, r6, #4
add r0, r0, #1
add r4, r4, #4
add r5, r5, #4
add r7, r7, #4
2021-06-25 22:31:03 +00:00
str r0, [sp]
cmp r0, #0xd
blt _02239FAA
add sp, #0xa0
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_02239FF4: .word 0x00000414
_02239FF8: .word 0x000061C2
_02239FFC: .word 0x00006594
_0223A000: .word 0x00006994
_0223A004: .word 0x00006D7B
_0223A008: .word 0x000061C5
_0223A00C: .word 0x00006997
_0223A010: .word 0x00006D7E
_0223A014: .word 0x000088CF
_0223A018: .word 0x00006991
_0223A01C: .word 0x00006D78
_0223A020: .word 0x000061BC
_0223A024: .word 0x0000698E
_0223A028: .word 0x00006D75
_0223A02C: .word ov57_0223BE48
_0223A030: .word ov57_0223BE7C
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_02239EB4
thumb_func_start ov57_0223A034
2021-06-27 18:48:56 +00:00
ov57_0223A034: ; 0x0223A034
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
ldr r7, _0223A054 ; =0x00000414
add r5, r0, #0
add r6, r1, #0
mov r4, #0
2021-06-25 22:31:03 +00:00
_0223A03E:
ldr r0, [r5, r7]
cmp r0, #0
beq _0223A04A
2021-06-27 18:48:56 +00:00
add r1, r6, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DCE8
2021-06-25 22:31:03 +00:00
_0223A04A:
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r4, #0xd
blt _0223A03E
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0223A054: .word 0x00000414
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223A034
thumb_func_start ov57_0223A058
2021-06-27 18:48:56 +00:00
ov57_0223A058: ; 0x0223A058
2021-06-25 22:31:03 +00:00
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223A058
thumb_func_start ov57_0223A05C
2021-06-27 18:48:56 +00:00
ov57_0223A05C: ; 0x0223A05C
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
ldr r6, _0223A078 ; =0x00000414
mov r4, #8
add r5, #0x20
2021-06-25 22:31:03 +00:00
_0223A066:
ldr r0, [r5, r6]
2021-06-27 19:11:25 +00:00
bl sub_0200D9DC
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, r5, #4
2021-06-25 22:31:03 +00:00
cmp r4, #0xd
blt _0223A066
pop {r4, r5, r6, pc}
nop
2021-06-27 18:48:56 +00:00
_0223A078: .word 0x00000414
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223A05C
thumb_func_start ov57_0223A07C
2021-06-27 18:48:56 +00:00
ov57_0223A07C: ; 0x0223A07C
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
mov r7, #0
add r6, r0, #0
add r5, r7, #0
add r4, r7, #0
2021-06-25 22:31:03 +00:00
_0223A086:
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r1, r4, #0
2021-11-09 15:27:41 +00:00
bl CapsuleGetSealI
bl SealOnCapsuleGetID
2021-06-25 22:31:03 +00:00
cmp r0, #0
beq _0223A098
2021-06-27 18:48:56 +00:00
add r5, r5, #1
2021-06-25 22:31:03 +00:00
_0223A098:
2021-06-27 18:48:56 +00:00
add r4, r4, #1
2021-06-25 22:31:03 +00:00
cmp r4, #8
blt _0223A086
cmp r5, #0
beq _0223A0A4
2021-06-27 18:48:56 +00:00
mov r7, #1
2021-06-25 22:31:03 +00:00
_0223A0A4:
2021-06-27 18:48:56 +00:00
add r0, r7, #0
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov57_0223A07C
thumb_func_start ov57_0223A0A8
2021-06-27 18:48:56 +00:00
ov57_0223A0A8: ; 0x0223A0A8
mov r2, #0xc
mul r2, r1
add r1, r0, r2
mov r0, #0xa3
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r2, [r1, r0]
2021-06-27 18:48:56 +00:00
add r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r1, r0]
cmp r2, #0xff
bne _0223A0C4
cmp r0, #0
bne _0223A0C4
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
bx lr
_0223A0C4:
cmp r2, #0xff
bne _0223A0D0
cmp r0, #1
bne _0223A0D0
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
bx lr
_0223A0D0:
cmp r2, #0xff
beq _0223A0DC
cmp r0, #1
bne _0223A0DC
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
bx lr
_0223A0DC:
2021-06-27 18:48:56 +00:00
mov r0, #3
2021-06-25 22:31:03 +00:00
bx lr
thumb_func_end ov57_0223A0A8
thumb_func_start ov57_0223A0E0
2021-06-27 18:48:56 +00:00
ov57_0223A0E0: ; 0x0223A0E0
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
mov r1, #0xfd
add r4, r0, #0
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
2021-06-27 18:48:56 +00:00
lsl r2, r1, #2
ldr r1, _0223A100 ; =ov57_0223BEB8
2021-06-25 22:31:03 +00:00
ldr r1, [r1, r2]
2021-06-27 21:10:38 +00:00
blx r1
2021-06-27 18:48:56 +00:00
add r4, #0xe0
add r5, r0, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4]
2021-06-27 19:11:25 +00:00
bl sub_0200D020
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
_0223A100: .word ov57_0223BEB8
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223A0E0
thumb_func_start ov57_0223A104
2021-06-27 18:48:56 +00:00
ov57_0223A104: ; 0x0223A104
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0xff
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
cmp r0, #6
bls _0223A114
b _0223A300
_0223A114:
2021-06-27 18:48:56 +00:00
add r0, r0, r0
2021-06-25 22:31:03 +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-25 22:31:03 +00:00
add pc, r0
2021-06-27 18:48:56 +00:00
_0223A120: ; jump table
.short _0223A12E - _0223A120 - 2 ; case 0
.short _0223A226 - _0223A120 - 2 ; case 1
.short _0223A236 - _0223A120 - 2 ; case 2
.short _0223A248 - _0223A120 - 2 ; case 3
.short _0223A256 - _0223A120 - 2 ; case 4
.short _0223A2C0 - _0223A120 - 2 ; case 5
.short _0223A2D0 - _0223A120 - 2 ; case 6
2021-06-25 22:31:03 +00:00
_0223A12E:
2021-06-27 18:48:56 +00:00
mov r0, #0x57
mov r1, #0x34
2021-08-12 19:28:01 +00:00
bl NARC_ctor
2021-06-27 18:48:56 +00:00
add r5, r0, #0
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238DD0
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238E48
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238F48
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239BEC
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239C88
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239CE8
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239014
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_022392F4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022385DC
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02237F3C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_022383D0
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02237F14
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239D48
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239EB4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239114
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239184
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B75C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B78C
2021-06-27 18:48:56 +00:00
ldr r1, _0223A310 ; =0x00000448
add r0, r4, #0
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
bl ov57_022388E4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238958
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238A00
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223A034
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239240
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238794
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_022387C0
2021-06-27 18:48:56 +00:00
mov r0, #0x47
lsl r0, r0, #2
add r0, r4, r0
mov r1, #3
mov r2, #7
mov r3, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
bl ov57_02239B94
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B948
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223866C
2021-06-27 18:48:56 +00:00
ldr r2, _0223A314 ; =0x04000304
ldr r0, _0223A318 ; =0xFFFF7FFF
2021-06-25 22:31:03 +00:00
ldrh r1, [r2]
2021-06-27 18:48:56 +00:00
and r0, r1
2021-06-25 22:31:03 +00:00
strh r0, [r2]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-08-12 19:28:01 +00:00
bl NARC_dtor
2021-06-27 18:48:56 +00:00
mov r0, #0xff
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A300
_0223A226:
bl ov57_02239BAC
2021-06-27 18:48:56 +00:00
mov r0, #0xff
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A300
_0223A236:
2021-06-27 19:11:25 +00:00
bl sub_0200FB5C
2021-06-25 22:31:03 +00:00
cmp r0, #1
bne _0223A300
2021-06-27 18:48:56 +00:00
mov r0, #0xff
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
_0223A248:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B180
2021-06-27 18:48:56 +00:00
mov r1, #0xff
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
b _0223A300
_0223A256:
2021-06-27 18:48:56 +00:00
mov r0, #0x93
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_020186A4
2021-06-27 18:48:56 +00:00
add r1, r0, #0
mov r0, #1
mvn r0, r0
2021-06-25 22:31:03 +00:00
cmp r1, r0
beq _0223A272
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
cmp r1, r0
beq _0223A300
b _0223A292
_0223A272:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B700
2021-06-27 18:48:56 +00:00
mov r0, #0x47
lsl r0, r0, #2
add r0, r4, r0
mov r1, #3
mov r2, #7
mov r3, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
2021-06-27 18:48:56 +00:00
mov r0, #0xff
mov r1, #3
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A300
_0223A292:
cmp r1, #0
beq _0223A300
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-27 21:10:38 +00:00
blx r1
2021-06-25 22:31:03 +00:00
cmp r0, #1
beq _0223A2A6
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B700
b _0223A300
_0223A2A6:
2021-06-27 18:48:56 +00:00
mov r0, #0x47
lsl r0, r0, #2
add r0, r4, r0
mov r1, #3
mov r2, #7
mov r3, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
2021-06-27 18:48:56 +00:00
mov r0, #0xff
mov r1, #3
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A300
_0223A2C0:
bl ov57_02239BCC
2021-06-27 18:48:56 +00:00
mov r0, #0xff
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A300
_0223A2D0:
2021-06-27 19:11:25 +00:00
bl sub_0200FB5C
2021-06-25 22:31:03 +00:00
cmp r0, #1
bne _0223A300
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223864C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239588
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238FEC
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223A05C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239260
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238AC0
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
_0223A300:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238FC4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239558
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0223A310: .word 0x00000448
_0223A314: .word 0x04000304
_0223A318: .word 0xFFFF7FFF
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223A104
thumb_func_start ov57_0223A31C
2021-06-27 18:48:56 +00:00
ov57_0223A31C: ; 0x0223A31C
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #8
2021-06-27 18:48:56 +00:00
mov r1, #0xff
add r4, r0, #0
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
cmp r1, #0xb
bhi _0223A406
2021-06-27 18:48:56 +00:00
add r1, r1, r1
2021-06-25 22:31:03 +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-25 22:31:03 +00:00
add pc, r1
2021-06-27 18:48:56 +00:00
_0223A338: ; jump table
.short _0223A350 - _0223A338 - 2 ; case 0
.short _0223A406 - _0223A338 - 2 ; case 1
.short _0223A406 - _0223A338 - 2 ; case 2
.short _0223A406 - _0223A338 - 2 ; case 3
.short _0223A35C - _0223A338 - 2 ; case 4
.short _0223A368 - _0223A338 - 2 ; case 5
.short _0223A374 - _0223A338 - 2 ; case 6
.short _0223A3EC - _0223A338 - 2 ; case 7
.short _0223A406 - _0223A338 - 2 ; case 8
.short _0223A406 - _0223A338 - 2 ; case 9
.short _0223A406 - _0223A338 - 2 ; case 10
.short _0223A3F8 - _0223A338 - 2 ; case 11
2021-06-25 22:31:03 +00:00
_0223A350:
bl ov57_0223A6B8
2021-06-27 18:48:56 +00:00
mov r1, #0xff
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
b _0223A406
_0223A35C:
bl ov57_0223B620
2021-06-27 18:48:56 +00:00
mov r1, #0xff
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
b _0223A406
_0223A368:
bl ov57_0223AB58
2021-06-27 18:48:56 +00:00
mov r1, #0xff
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
b _0223A406
_0223A374:
2021-06-27 18:48:56 +00:00
mov r1, #0
add r0, #0xec
mov r2, #0xc
add r3, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
2021-06-27 18:48:56 +00:00
mov r0, #0x41
mov r1, #0x14
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022384C0
cmp r0, #1
bne _0223A39A
2021-06-27 18:48:56 +00:00
mov r0, #0xa2
mov r1, #1
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
_0223A39A:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223853C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022394AC
ldr r0, [r4]
ldr r0, [r0, #0x28]
2021-09-08 18:18:20 +00:00
bl Sav2_GameStats_get
2021-06-27 18:48:56 +00:00
mov r1, #7
2021-09-15 00:07:24 +00:00
bl GameStats_AddSpecial
2021-06-27 18:48:56 +00:00
mov r0, #0xfb
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r0, #0xc
mul r0, r1
add r2, r4, r0
mov r0, #0xa3
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r2, r0]
cmp r0, #0xff
beq _0223A3E2
ldr r2, [r4]
2021-06-27 18:48:56 +00:00
lsl r0, r0, #2
add r0, r2, r0
2021-06-25 22:31:03 +00:00
ldr r5, [r0, #4]
ldr r0, [r2, #0x20]
2021-11-09 15:27:41 +00:00
bl SealCase_GetCapsuleI
2021-06-27 18:48:56 +00:00
add r2, r0, #0
add r0, r5, #0
mov r1, #0xab
2021-09-12 22:42:37 +00:00
bl SetMonData
2021-06-25 22:31:03 +00:00
_0223A3E2:
2021-06-27 18:48:56 +00:00
mov r0, #0xff
mov r1, #0xb
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A406
_0223A3EC:
bl ov57_0223A8FC
2021-06-27 18:48:56 +00:00
mov r1, #0xff
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
b _0223A406
_0223A3F8:
bl ov57_0223A7DC
cmp r0, #0
beq _0223A406
add sp, #8
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, r6, r7, pc}
_0223A406:
2021-06-27 18:48:56 +00:00
mov r0, #0xff
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
cmp r0, #4
beq _0223A414
cmp r0, #0
bne _0223A4DE
_0223A414:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xd4
2021-06-25 22:31:03 +00:00
ldr r5, [r0]
cmp r5, #0xff
bne _0223A42A
2021-06-27 18:48:56 +00:00
mov r0, #0x7b
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_02026CC4
2021-06-25 22:31:03 +00:00
b _0223A4DE
_0223A42A:
add r0, sp, #4
add r1, sp, #0
2021-06-27 19:11:25 +00:00
bl sub_02025364
2021-06-27 18:48:56 +00:00
mov r1, #0xff
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
cmp r1, #4
beq _0223A43E
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
_0223A43E:
cmp r0, #0
beq _0223A484
2021-06-27 18:48:56 +00:00
lsl r6, r5, #4
mov r0, #0x35
add r1, r4, r6
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldrb r0, [r1, r0]
2021-06-27 19:11:25 +00:00
bl sub_0209106C
2021-06-27 18:48:56 +00:00
add r1, r0, #0
add r0, r4, #0
add r0, #0xec
2021-06-25 22:31:03 +00:00
bl ov57_02239B2C
2021-06-27 18:48:56 +00:00
mov r0, #0xd5
2021-06-25 22:31:03 +00:00
ldr r2, [sp]
2021-06-27 18:48:56 +00:00
add r1, r4, r6
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r1, r0]
ldr r1, [sp, #4]
2021-06-27 18:48:56 +00:00
lsl r2, r2, #0x10
lsl r1, r1, #0x10
asr r1, r1, #0x10
asr r2, r2, #0x10
2021-06-27 19:11:25 +00:00
bl sub_0200DDB8
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223848C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238508
b _0223A4DE
_0223A484:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_022383F8
2021-06-27 18:48:56 +00:00
lsl r6, r5, #4
mov r2, #0xd6
add r1, r4, r6
lsl r2, r2, #2
add r7, r0, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r1, r2]
2021-06-27 18:48:56 +00:00
sub r2, r2, #4
2021-06-25 22:31:03 +00:00
ldr r1, [r1, r2]
2021-06-27 18:48:56 +00:00
mov r2, #0
2021-06-25 22:31:03 +00:00
bl ov57_02237EB8
cmp r7, #0
bne _0223A4C6
2021-06-27 18:48:56 +00:00
mov r1, #0x35
2021-06-25 22:31:03 +00:00
ldr r0, [r4]
2021-06-27 18:48:56 +00:00
add r2, r4, r6
lsl r1, r1, #4
2021-06-25 22:31:03 +00:00
ldrb r1, [r2, r1]
ldr r0, [r0, #0x20]
2021-06-27 18:48:56 +00:00
mov r2, #1
bl GiveOrTakeSeal2
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022399F8
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238438
_0223A4C6:
2021-06-27 18:48:56 +00:00
ldr r0, _0223A4FC ; =0x000005EA
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0xff
add r0, #0xd4
2021-06-25 22:31:03 +00:00
str r1, [r0]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
ldr r1, _0223A500 ; =0x0000FFFF
add r0, #0xec
2021-06-25 22:31:03 +00:00
bl ov57_02239B2C
_0223A4DE:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223A058
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223921C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238FC4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239558
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +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-27 18:48:56 +00:00
_0223A4FC: .word 0x000005EA
_0223A500: .word 0x0000FFFF
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223A31C
thumb_func_start ov57_0223A504
2021-06-27 18:48:56 +00:00
ov57_0223A504: ; 0x0223A504
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
mov r1, #0xff
add r4, r0, #0
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r2, [r4, r1]
cmp r2, #0
beq _0223A51C
cmp r2, #1
beq _0223A53E
cmp r2, #2
beq _0223A560
b _0223A594
_0223A51C:
2021-06-27 18:48:56 +00:00
sub r1, #0x10
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
bl ov57_0223BC4C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xec
mov r1, #0
mov r2, #9
mov r3, #1
2021-06-25 22:31:03 +00:00
bl ov57_02239728
2021-06-27 18:48:56 +00:00
mov r0, #0xff
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A594
_0223A53E:
bl ov57_0223B12C
2021-09-01 12:41:12 +00:00
ldr r0, _0223A5A4 ; =gMain
2021-06-25 22:31:03 +00:00
ldr r1, [r0, #0x48]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A5A8 ; =0x00000CF3
2021-06-25 22:31:03 +00:00
tst r0, r1
bne _0223A554
2021-06-27 19:11:25 +00:00
bl sub_02025358
2021-06-25 22:31:03 +00:00
cmp r0, #0
beq _0223A594
_0223A554:
2021-06-27 18:48:56 +00:00
mov r0, #0xff
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A594
_0223A560:
2021-06-27 18:48:56 +00:00
mov r1, #0
mov r2, #0xff
add r3, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B828
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xec
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_0200E5D4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xec
2021-06-27 19:11:25 +00:00
bl sub_0201D8E4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223866C
2021-06-27 18:48:56 +00:00
mov r0, #0x47
lsl r0, r0, #2
add r0, r4, r0
mov r1, #3
mov r2, #7
mov r3, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
_0223A594:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238FC4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239558
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-09-01 12:41:12 +00:00
_0223A5A4: .word gMain
2021-06-27 18:48:56 +00:00
_0223A5A8: .word 0x00000CF3
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223A504
thumb_func_start ov57_0223A5AC
2021-06-27 18:48:56 +00:00
ov57_0223A5AC: ; 0x0223A5AC
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
mov r1, #0xff
add r4, r0, #0
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r2, [r4, r1]
cmp r2, #3
bhi _0223A69C
2021-06-27 18:48:56 +00:00
add r2, r2, r2
2021-06-25 22:31:03 +00:00
add r2, pc
ldrh r2, [r2, #6]
2021-06-27 18:48:56 +00:00
lsl r2, r2, #0x10
asr r2, r2, #0x10
2021-06-25 22:31:03 +00:00
add pc, r2
2021-06-27 18:48:56 +00:00
_0223A5C6: ; jump table
.short _0223A5CE - _0223A5C6 - 2 ; case 0
.short _0223A616 - _0223A5C6 - 2 ; case 1
.short _0223A624 - _0223A5C6 - 2 ; case 2
.short _0223A644 - _0223A5C6 - 2 ; case 3
2021-06-25 22:31:03 +00:00
_0223A5CE:
2021-06-27 18:48:56 +00:00
sub r1, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r1]
2021-06-27 18:48:56 +00:00
mov r1, #0x19
2021-06-27 19:11:25 +00:00
bl sub_0200DD68
2021-06-27 18:48:56 +00:00
mov r0, #0x32
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0x14
2021-06-27 19:11:25 +00:00
bl sub_0200DD68
2021-06-27 18:48:56 +00:00
mov r0, #0xc7
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_0200DC4C
2021-06-27 18:48:56 +00:00
mov r0, #0x47
lsl r0, r0, #2
add r0, r4, r0
mov r1, #3
mov r2, #0xa
mov r3, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
2021-06-27 18:48:56 +00:00
mov r0, #0x32
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_0200DCE8
2021-06-27 18:48:56 +00:00
mov r0, #0xff
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
_0223A616:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B308
2021-06-27 18:48:56 +00:00
mov r1, #0xff
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
b _0223A69C
_0223A624:
bl ov57_0223B12C
2021-09-01 12:41:12 +00:00
ldr r0, _0223A6AC ; =gMain
2021-06-25 22:31:03 +00:00
ldr r1, [r0, #0x48]
2021-06-27 18:48:56 +00:00
ldr r0, _0223A6B0 ; =0x00000CF3
2021-06-25 22:31:03 +00:00
tst r0, r1
bne _0223A63A
2021-06-27 19:11:25 +00:00
bl sub_02025358
2021-06-25 22:31:03 +00:00
cmp r0, #0
beq _0223A69C
_0223A63A:
2021-06-27 18:48:56 +00:00
mov r0, #0xff
mov r1, #3
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A69C
_0223A644:
2021-06-27 18:48:56 +00:00
sub r1, #0xe0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r1]
2021-06-27 18:48:56 +00:00
mov r1, #0x14
2021-06-27 19:11:25 +00:00
bl sub_0200DD68
2021-06-27 18:48:56 +00:00
mov r0, #0x32
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0x19
2021-06-27 19:11:25 +00:00
bl sub_0200DD68
2021-06-27 18:48:56 +00:00
mov r1, #0
add r0, r4, #0
mov r2, #0xff
add r3, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B828
2021-06-27 18:48:56 +00:00
mov r0, #0xc7
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DC4C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xec
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_0200E5D4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xec
2021-06-27 19:11:25 +00:00
bl sub_0201D8E4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223866C
2021-06-27 18:48:56 +00:00
mov r0, #0x47
lsl r0, r0, #2
add r0, r4, r0
mov r1, #3
mov r2, #7
mov r3, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
_0223A69C:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238FC4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239558
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-09-01 12:41:12 +00:00
_0223A6AC: .word gMain
2021-06-27 18:48:56 +00:00
_0223A6B0: .word 0x00000CF3
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223A5AC
thumb_func_start ov57_0223A6B4
2021-06-27 18:48:56 +00:00
ov57_0223A6B4: ; 0x0223A6B4
mov r0, #0
2021-06-25 22:31:03 +00:00
bx lr
thumb_func_end ov57_0223A6B4
thumb_func_start ov57_0223A6B8
2021-06-27 18:48:56 +00:00
ov57_0223A6B8: ; 0x0223A6B8
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
ldr r1, _0223A7C4 ; =0x00000404
add r4, r0, #0
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
cmp r1, #0
beq _0223A6CE
cmp r1, #1
beq _0223A708
cmp r1, #2
beq _0223A7A6
b _0223A7C0
_0223A6CE:
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B948
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022398C4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022399F8
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B75C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B78C
2021-06-27 18:48:56 +00:00
mov r0, #0xa2
mov r1, #0
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r0, #0x41
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
bl ov57_02239BCC
2021-06-27 18:48:56 +00:00
ldr r0, _0223A7C4 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A7C0
_0223A708:
bl ov57_0223B940
cmp r0, #1
beq _0223A7C0
2021-06-27 19:11:25 +00:00
bl sub_0200FB5C
2021-06-25 22:31:03 +00:00
cmp r0, #1
bne _0223A7C0
2021-06-27 18:48:56 +00:00
mov r0, #0x10
mov r1, #0
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
2021-06-27 18:48:56 +00:00
mov r0, #4
mov r1, #1
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
2021-06-27 18:48:56 +00:00
mov r0, #7
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_0201BB68
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223A034
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_02239240
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_022387C0
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_02238AF0
2021-06-27 18:48:56 +00:00
ldr r0, _0223A7C8 ; =0x00000434
mov r1, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DCC0
2021-06-27 18:48:56 +00:00
ldr r0, _0223A7CC ; =0x00000438
mov r1, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DCC0
2021-06-27 18:48:56 +00:00
ldr r0, _0223A7D0 ; =0x0000043C
mov r1, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200DCC0
2021-06-27 18:48:56 +00:00
mov r0, #3
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_0201BB68
2021-06-27 18:48:56 +00:00
mov r0, #0x47
lsl r0, r0, #2
add r0, r4, r0
bl ClearWindowTilemapAndCopyToVram
2021-06-27 18:48:56 +00:00
add r0, r4, #0
ldr r2, _0223A7D4 ; =0x0000FFFF
add r0, #0xec
mov r1, #0
mov r3, #1
2021-06-25 22:31:03 +00:00
bl ov57_02239728
2021-06-27 18:48:56 +00:00
ldr r2, _0223A7D8 ; =0x04000304
2021-06-25 22:31:03 +00:00
ldrh r1, [r2]
2021-06-27 18:48:56 +00:00
lsr r0, r2, #0xb
orr r0, r1
2021-06-25 22:31:03 +00:00
strh r0, [r2]
bl ov57_02239BAC
2021-06-27 18:48:56 +00:00
ldr r0, _0223A7C4 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A7C0
_0223A7A6:
2021-06-27 19:11:25 +00:00
bl sub_0200FB5C
2021-06-25 22:31:03 +00:00
cmp r0, #1
bne _0223A7C0
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223B948
2021-06-27 18:48:56 +00:00
ldr r0, _0223A7C4 ; =0x00000404
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223A7C0:
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0223A7C4: .word 0x00000404
_0223A7C8: .word 0x00000434
_0223A7CC: .word 0x00000438
_0223A7D0: .word 0x0000043C
_0223A7D4: .word 0x0000FFFF
_0223A7D8: .word 0x04000304
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223A6B8
thumb_func_start ov57_0223A7DC
2021-06-27 18:48:56 +00:00
ov57_0223A7DC: ; 0x0223A7DC
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
ldr r1, _0223A8F0 ; =0x00000404
add r4, r0, #0
2021-06-25 22:31:03 +00:00
ldr r2, [r4, r1]
cmp r2, #0
beq _0223A7F2
cmp r2, #1
beq _0223A820
cmp r2, #2
beq _0223A8B4
b _0223A8EC
_0223A7F2:
2021-06-27 18:48:56 +00:00
add r0, r1, #0
add r0, #0xc
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
cmp r0, #0
ble _0223A80C
2021-06-27 18:48:56 +00:00
add r0, r1, #0
add r0, #0xc
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, #0xc
sub r0, r0, #1
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223A80C:
2021-06-27 18:48:56 +00:00
mov r0, #0
add r1, #0xc
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
bl ov57_02239BCC
2021-06-27 18:48:56 +00:00
ldr r0, _0223A8F0 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A8EC
_0223A820:
2021-06-27 19:11:25 +00:00
bl sub_0200FB5C
2021-06-25 22:31:03 +00:00
cmp r0, #1
bne _0223A8EC
2021-06-27 18:48:56 +00:00
mov r0, #0x10
mov r1, #1
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
2021-06-27 18:48:56 +00:00
mov r0, #3
add r1, r0, #0
2021-06-27 19:11:25 +00:00
bl sub_0201BB68
2021-06-27 18:48:56 +00:00
mov r0, #7
mov r1, #3
2021-06-27 19:11:25 +00:00
bl sub_0201BB68
2021-06-27 18:48:56 +00:00
mov r0, #4
mov r1, #0
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223A034
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239240
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_022387C0
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xec
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_0200E5D4
2021-06-27 18:48:56 +00:00
mov r0, #0x47
lsl r0, r0, #2
add r0, r4, r0
mov r1, #3
mov r2, #7
mov r3, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
2021-06-27 18:48:56 +00:00
mov r0, #0x47
lsl r0, r0, #2
add r0, r4, r0
2021-08-13 14:06:39 +00:00
bl CopyWindowToVram
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223866C
2021-06-27 18:48:56 +00:00
ldr r2, _0223A8F4 ; =0x04000304
ldr r1, _0223A8F8 ; =0xFFFF7FFF
2021-06-25 22:31:03 +00:00
ldrh r0, [r2]
2021-06-27 18:48:56 +00:00
and r0, r1
2021-06-25 22:31:03 +00:00
strh r0, [r2]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
asr r1, r1, #0x10
2021-06-25 22:31:03 +00:00
bl ov57_02238AF0
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B948
bl ov57_02239BAC
2021-06-27 18:48:56 +00:00
ldr r0, _0223A8F0 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223A8EC
_0223A8B4:
bl ov57_0223B940
cmp r0, #1
beq _0223A8EC
2021-06-27 19:11:25 +00:00
bl sub_0200FB5C
2021-06-25 22:31:03 +00:00
cmp r0, #1
bne _0223A8EC
2021-06-27 18:48:56 +00:00
mov r0, #0x32
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DCE8
2021-06-27 18:48:56 +00:00
mov r1, #0
add r0, r4, #0
mov r2, #0xff
add r3, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B828
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239B0C
2021-06-27 18:48:56 +00:00
ldr r0, _0223A8F0 ; =0x00000404
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223A8EC:
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0223A8F0: .word 0x00000404
_0223A8F4: .word 0x04000304
_0223A8F8: .word 0xFFFF7FFF
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223A7DC
thumb_func_start ov57_0223A8FC
2021-06-27 18:48:56 +00:00
ov57_0223A8FC: ; 0x0223A8FC
2021-06-25 22:31:03 +00:00
push {r4, r5, lr}
sub sp, #0x24
2021-06-27 18:48:56 +00:00
ldr r1, _0223AB44 ; =0x00000404
add r4, r0, #0
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
cmp r1, #5
bhi _0223A986
2021-06-27 18:48:56 +00:00
add r1, r1, r1
2021-06-25 22:31:03 +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-25 22:31:03 +00:00
add pc, r1
2021-06-27 18:48:56 +00:00
_0223A916: ; jump table
.short _0223A922 - _0223A916 - 2 ; case 0
.short _0223A97A - _0223A916 - 2 ; case 1
.short _0223AA20 - _0223A916 - 2 ; case 2
.short _0223AA30 - _0223A916 - 2 ; case 3
.short _0223AA98 - _0223A916 - 2 ; case 4
.short _0223AAD2 - _0223A916 - 2 ; case 5
2021-06-25 22:31:03 +00:00
_0223A922:
bl ov57_022384C0
cmp r0, #0
bne _0223A930
add sp, #0x24
2021-06-27 18:48:56 +00:00
mov r0, #0xb
2021-06-25 22:31:03 +00:00
pop {r4, r5, pc}
_0223A930:
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-06-25 22:31:03 +00:00
str r3, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0xa
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
ldr r2, _0223AB48 ; =0x0000080B
mov r1, #2
2021-06-27 19:11:25 +00:00
bl sub_02003370
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-06-25 22:31:03 +00:00
str r3, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0xa
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
ldr r2, _0223AB4C ; =0x0000FFFF
mov r1, #8
2021-06-27 19:11:25 +00:00
bl sub_02003370
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B948
2021-06-27 18:48:56 +00:00
mov r0, #1
mov r1, #0
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
2021-06-27 18:48:56 +00:00
ldr r0, _0223AB44 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AB3C
_0223A97A:
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 19:11:25 +00:00
bl sub_02003B44
2021-06-25 22:31:03 +00:00
cmp r0, #0
beq _0223A988
_0223A986:
b _0223AB3C
_0223A988:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_02003B50
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x1b
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r2, #4
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r2, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0x3a
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r0, #0xe4
add r1, #0xf2
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
mov r3, #2
2021-06-25 22:31:03 +00:00
bl ov57_022397B0
add r0, sp, #0x10
2021-06-27 18:48:56 +00:00
mov r1, #0
mov r2, #0x14
2021-09-16 00:11:18 +00:00
bl MI_CpuFill8
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
add r2, sp, #0x10
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x14]
2021-06-27 18:48:56 +00:00
mov r0, #0xe6
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x18]
2021-06-27 18:48:56 +00:00
mov r0, #5
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
mov r0, #0x19
2021-06-25 22:31:03 +00:00
strb r0, [r2, #0x10]
2021-06-27 18:48:56 +00:00
mov r0, #6
2021-06-25 22:31:03 +00:00
strb r0, [r2, #0x11]
ldrb r0, [r2, #0x12]
2021-06-27 18:48:56 +00:00
mov r1, #0xf
bic r0, r1
ldr r1, _0223AB50 ; =0x0000040C
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
2021-06-27 18:48:56 +00:00
lsl r1, r1, #0x18
lsr r3, r1, #0x18
mov r1, #0xf
and r1, r3
orr r0, r1
2021-06-25 22:31:03 +00:00
strb r0, [r2, #0x12]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-27 19:11:25 +00:00
bl sub_0201660C
2021-06-27 18:48:56 +00:00
mov r1, #0x91
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
ldr r0, [r4, r1]
add r1, sp, #0x10
2021-06-27 19:11:25 +00:00
bl sub_020166FC
2021-06-27 18:48:56 +00:00
mov r0, #0x4b
lsl r0, r0, #2
add r0, r4, r0
mov r1, #4
mov r2, #0xe
mov r3, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
2021-06-27 18:48:56 +00:00
ldr r0, _0223AB44 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AB3C
_0223AA20:
2021-06-27 18:48:56 +00:00
mov r0, #1
add r1, r0, #0
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
2021-06-27 18:48:56 +00:00
ldr r0, _0223AB44 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
_0223AA30:
2021-06-27 18:48:56 +00:00
mov r0, #0x91
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_020168F4
2021-06-27 18:48:56 +00:00
add r5, r0, #0
2021-06-25 22:31:03 +00:00
beq _0223AB3C
cmp r5, #1
beq _0223AA46
cmp r5, #2
bne _0223AB3C
_0223AA46:
2021-06-27 18:48:56 +00:00
mov r0, #0x91
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_020169C0
2021-06-27 18:48:56 +00:00
ldr r1, _0223AB50 ; =0x0000040C
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
2021-06-27 18:48:56 +00:00
sub r0, r1, #4
2021-06-25 22:31:03 +00:00
str r5, [r4, r0]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_02003B50
2021-06-27 18:48:56 +00:00
mov r0, #0x91
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_020169CC
2021-06-27 18:48:56 +00:00
mov r0, #0x91
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_02016624
2021-06-27 18:48:56 +00:00
mov r0, #0x4b
lsl r0, r0, #2
add r0, r4, r0
mov r1, #0
2021-09-16 00:11:18 +00:00
bl ClearFrameAndWindow2
2021-06-27 18:48:56 +00:00
mov r0, #0x4b
lsl r0, r0, #2
add r0, r4, r0
2021-08-13 18:03:14 +00:00
bl RemoveWindow
2021-06-27 18:48:56 +00:00
ldr r0, _0223AB44 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AB3C
_0223AA98:
2021-06-27 18:48:56 +00:00
mov r0, #0xa
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
ldr r2, _0223AB48 ; =0x0000080B
mov r1, #2
2021-06-27 19:11:25 +00:00
bl sub_02003370
2021-06-27 18:48:56 +00:00
mov r0, #0xa
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
ldr r2, _0223AB4C ; =0x0000FFFF
mov r1, #8
2021-06-27 19:11:25 +00:00
bl sub_02003370
2021-06-27 18:48:56 +00:00
ldr r0, _0223AB44 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AB3C
_0223AAD2:
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 19:11:25 +00:00
bl sub_02003B44
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _0223AB3C
2021-06-27 18:48:56 +00:00
ldr r0, _0223AB54 ; =0x00000408
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
cmp r0, #0
beq _0223AB26
cmp r0, #1
beq _0223AAF0
cmp r0, #2
beq _0223AB22
b _0223AB26
_0223AAF0:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B774
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B7A8
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022399F8
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022383AC
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02237F3C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_022383D0
2021-06-27 18:48:56 +00:00
mov r0, #0x41
mov r1, #0x14
lsl r0, r0, #4
mov r5, #6
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AB28
_0223AB22:
2021-06-27 18:48:56 +00:00
mov r5, #4
2021-06-25 22:31:03 +00:00
b _0223AB28
_0223AB26:
2021-06-27 18:48:56 +00:00
mov r5, #7
2021-06-25 22:31:03 +00:00
_0223AB28:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223B948
2021-06-27 18:48:56 +00:00
ldr r0, _0223AB44 ; =0x00000404
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
add sp, #0x24
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
pop {r4, r5, pc}
_0223AB3C:
2021-06-27 18:48:56 +00:00
mov r0, #7
2021-06-25 22:31:03 +00:00
add sp, #0x24
pop {r4, r5, pc}
nop
2021-06-27 18:48:56 +00:00
_0223AB44: .word 0x00000404
_0223AB48: .word 0x0000080B
_0223AB4C: .word 0x0000FFFF
_0223AB50: .word 0x0000040C
_0223AB54: .word 0x00000408
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223A8FC
thumb_func_start ov57_0223AB58
2021-06-27 18:48:56 +00:00
ov57_0223AB58: ; 0x0223AB58
2021-06-25 22:31:03 +00:00
push {r4, r5, lr}
sub sp, #0x84
2021-06-27 18:48:56 +00:00
ldr r1, _0223AE90 ; =0x00000404
add r4, r0, #0
2021-06-25 22:31:03 +00:00
ldr r2, [r4, r1]
cmp r2, #7
bls _0223AB68
b _0223AE4C
_0223AB68:
2021-06-27 18:48:56 +00:00
add r2, r2, r2
2021-06-25 22:31:03 +00:00
add r2, pc
ldrh r2, [r2, #6]
2021-06-27 18:48:56 +00:00
lsl r2, r2, #0x10
asr r2, r2, #0x10
2021-06-25 22:31:03 +00:00
add pc, r2
2021-06-27 18:48:56 +00:00
_0223AB74: ; jump table
.short _0223AB84 - _0223AB74 - 2 ; case 0
.short _0223ABF6 - _0223AB74 - 2 ; case 1
.short _0223AC4A - _0223AB74 - 2 ; case 2
.short _0223ACAC - _0223AB74 - 2 ; case 3
.short _0223ACF6 - _0223AB74 - 2 ; case 4
.short _0223AD38 - _0223AB74 - 2 ; case 5
.short _0223AD7A - _0223AB74 - 2 ; case 6
.short _0223ADE2 - _0223AB74 - 2 ; case 7
2021-06-25 22:31:03 +00:00
_0223AB84:
2021-06-27 18:48:56 +00:00
mov r0, #0x10
mov r1, #1
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-06-25 22:31:03 +00:00
str r3, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0xa
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
ldr r2, _0223AE94 ; =0x0000080B
mov r1, #2
2021-06-27 19:11:25 +00:00
bl sub_02003370
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-06-25 22:31:03 +00:00
str r3, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0xa
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
ldr r2, _0223AE98 ; =0x0000FFFF
mov r1, #8
2021-06-27 19:11:25 +00:00
bl sub_02003370
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B948
2021-06-27 18:48:56 +00:00
ldr r0, _0223AE9C ; =0x00000408
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B7C4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B950
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223BB38
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
add r0, #0xec
mov r2, #0xd
add r3, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
2021-06-27 18:48:56 +00:00
ldr r0, _0223AE90 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AE88
_0223ABF6:
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 19:11:25 +00:00
bl sub_02003B44
2021-06-25 22:31:03 +00:00
cmp r0, #0
beq _0223AC04
b _0223AE88
_0223AC04:
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x60]
2021-06-27 18:48:56 +00:00
mov r1, #1
mov r2, #0
mov r0, #0xff
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x68]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #0x5c]
str r1, [sp, #0x74]
str r2, [sp, #0x64]
str r2, [sp, #0x70]
2021-06-27 18:48:56 +00:00
add r0, #0xdc
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #0x9b
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x78]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
str r0, [sp, #0x7c]
2021-06-27 18:48:56 +00:00
ldr r0, _0223AEA0 ; =0x00000458
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-09-06 13:41:18 +00:00
bl GetMonData
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x6c]
add r0, sp, #0x5c
bl ov07_02233DB8
2021-06-27 18:48:56 +00:00
mov r1, #0x95
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
2021-06-27 18:48:56 +00:00
ldr r0, _0223AE90 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AE88
_0223AC4A:
add r2, sp, #0x38
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [r2]
str r0, [r2, #4]
str r0, [r2, #8]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x38]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
add r0, #0x54
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
sub r1, #0x18
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x40]
ldr r0, [r4, r1]
2021-06-27 18:48:56 +00:00
add r1, r4, #0
add r0, r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
add r0, sp, #0x44
bl ov57_0223857C
2021-06-27 18:48:56 +00:00
ldr r0, _0223AEA0 ; =0x00000458
mov r1, #0xa2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
add r2, sp, #0xc
2021-09-12 22:42:37 +00:00
bl SetMonData
2021-06-27 18:48:56 +00:00
ldr r0, _0223AEA0 ; =0x00000458
mov r1, #0xab
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
add r2, sp, #0x44
2021-09-12 22:42:37 +00:00
bl SetMonData
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-25 22:31:03 +00:00
add r1, sp, #0x38
bl ov07_02232694
2021-06-27 18:48:56 +00:00
mov r1, #0x25
lsl r1, r1, #4
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
ldr r0, [r4, r1]
bl ov07_022329B0
2021-06-27 18:48:56 +00:00
ldr r0, _0223AE90 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
add r0, r0, #4
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AE88
_0223ACAC:
2021-06-27 18:48:56 +00:00
mov r0, #0x25
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov07_02232A04
2021-06-25 22:31:03 +00:00
cmp r0, #1
bne _0223AD64
2021-06-27 18:48:56 +00:00
mov r0, #0x95
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov07_02233EA0
2021-06-25 22:31:03 +00:00
cmp r0, #1
bne _0223AD64
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223BA40
2021-06-27 18:48:56 +00:00
mov r0, #0x25
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov07_02232A44
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223BB38
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223BA1C
2021-06-27 18:48:56 +00:00
ldr r0, _0223AEA4 ; =0x000006C5
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
ldr r0, _0223AE90 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AE88
_0223ACF6:
bl ov57_0223BA40
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r0, #0x95
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov07_02233E88
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _0223AD64
cmp r5, #0
bne _0223AD64
2021-06-27 18:48:56 +00:00
mov r0, #0x95
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov07_02233ECC
2021-06-27 18:48:56 +00:00
mov r0, #0x10
mov r1, #0
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B9C8
2021-06-27 18:48:56 +00:00
ldr r0, _0223AE9C ; =0x00000408
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
sub r1, r0, #4
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
2021-06-27 18:48:56 +00:00
sub r0, r0, #4
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AE88
_0223AD38:
2021-06-27 18:48:56 +00:00
mov r0, #0x25
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov07_02232A54
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _0223AD64
2021-06-27 18:48:56 +00:00
mov r0, #0xa1
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_02017068
2021-06-25 22:31:03 +00:00
cmp r0, #1
bne _0223AD64
2021-06-27 18:48:56 +00:00
mov r0, #0x72
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 19:11:25 +00:00
bl sub_020085DC
2021-06-25 22:31:03 +00:00
cmp r0, #0
beq _0223AD66
_0223AD64:
b _0223AE88
_0223AD66:
2021-06-27 18:48:56 +00:00
mov r0, #0x25
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov07_02232AB8
2021-06-27 18:48:56 +00:00
ldr r0, _0223AE90 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AE88
_0223AD7A:
2021-06-27 18:48:56 +00:00
add r0, r1, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
add r2, r0, #1
add r0, r1, #4
2021-06-25 22:31:03 +00:00
str r2, [r4, r0]
ldr r0, [r4, r0]
cmp r0, #0x1e
blt _0223AE88
2021-06-27 18:48:56 +00:00
add r0, r1, #4
mov r2, #0
2021-06-25 22:31:03 +00:00
str r2, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r0, #0x34
mov r3, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x14]
2021-06-27 18:48:56 +00:00
mov r0, #5
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x18]
2021-06-27 18:48:56 +00:00
mov r0, #0xff
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #0x10]
str r2, [sp, #0x24]
str r3, [sp, #0x28]
2021-06-27 18:48:56 +00:00
add r0, #0xdc
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, #0x54
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x2c]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
str r0, [sp, #0x30]
ldr r0, [r4, r1]
2021-06-27 18:48:56 +00:00
mov r1, #0x9b
2021-09-06 13:41:18 +00:00
bl GetMonData
2021-06-25 22:31:03 +00:00
str r0, [sp, #0x20]
add r0, sp, #0x10
bl ov07_02233DB8
2021-06-27 18:48:56 +00:00
mov r1, #0x95
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
bl ov57_0223BB5C
2021-06-27 18:48:56 +00:00
mov r0, #0x10
mov r1, #1
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
2021-06-27 18:48:56 +00:00
ldr r0, _0223AE90 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AE88
_0223ADE2:
bl ov57_0223BABC
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r0, #0x95
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov07_02233E88
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _0223AE88
cmp r5, #0
bne _0223AE88
2021-06-27 18:48:56 +00:00
mov r0, #0xa
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
ldr r2, _0223AE94 ; =0x0000080B
mov r1, #2
2021-06-27 19:11:25 +00:00
bl sub_02003370
2021-06-27 18:48:56 +00:00
mov r0, #0xa
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
str r3, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
ldr r2, _0223AE98 ; =0x0000FFFF
mov r1, #8
2021-06-27 19:11:25 +00:00
bl sub_02003370
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223BB38
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223BB4C
2021-06-27 18:48:56 +00:00
mov r0, #0x95
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov07_02233ECC
2021-06-27 18:48:56 +00:00
ldr r0, _0223AE90 ; =0x00000404
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
b _0223AE88
_0223AE4C:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xe8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 19:11:25 +00:00
bl sub_02003B44
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _0223AE88
2021-06-27 18:48:56 +00:00
mov r0, #0x10
mov r1, #0
2021-09-01 12:08:31 +00:00
bl GX_EngineAToggleLayers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223B948
2021-06-27 18:48:56 +00:00
mov r1, #0
ldr r0, _0223AE90 ; =0x00000404
mov r2, #4
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
sub r0, #8
2021-06-25 22:31:03 +00:00
str r2, [r4, r0]
2021-06-27 18:48:56 +00:00
add r4, #0xec
ldr r2, _0223AE98 ; =0x0000FFFF
add r0, r4, #0
add r3, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
add sp, #0x84
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
pop {r4, r5, pc}
_0223AE88:
2021-06-27 18:48:56 +00:00
mov r0, #5
2021-06-25 22:31:03 +00:00
add sp, #0x84
pop {r4, r5, pc}
nop
2021-06-27 18:48:56 +00:00
_0223AE90: .word 0x00000404
_0223AE94: .word 0x0000080B
_0223AE98: .word 0x0000FFFF
_0223AE9C: .word 0x00000408
_0223AEA0: .word 0x00000458
_0223AEA4: .word 0x000006C5
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223AB58
thumb_func_start ov57_0223AEA8
2021-06-27 18:48:56 +00:00
ov57_0223AEA8: ; 0x0223AEA8
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, lr}
2021-06-27 18:48:56 +00:00
add r4, r2, #0
add r5, r0, #0
add r0, r4, #0
add r0, #0xd8
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r6, r1, #0
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _0223AEBC
b _0223B100
_0223AEBC:
cmp r5, #0x14
bls _0223AEC2
b _0223B0FC
_0223AEC2:
2021-06-27 18:48:56 +00:00
add r0, r5, r5
2021-06-25 22:31:03 +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-25 22:31:03 +00:00
add pc, r0
2021-06-27 18:48:56 +00:00
_0223AECE: ; jump table
.short _0223B036 - _0223AECE - 2 ; case 0
.short _0223B036 - _0223AECE - 2 ; case 1
.short _0223B036 - _0223AECE - 2 ; case 2
.short _0223B036 - _0223AECE - 2 ; case 3
.short _0223B036 - _0223AECE - 2 ; case 4
.short _0223B036 - _0223AECE - 2 ; case 5
.short _0223B036 - _0223AECE - 2 ; case 6
.short _0223B036 - _0223AECE - 2 ; case 7
.short _0223AEF8 - _0223AECE - 2 ; case 8
.short _0223AF42 - _0223AECE - 2 ; case 9
.short _0223AF90 - _0223AECE - 2 ; case 10
.short _0223AFBE - _0223AECE - 2 ; case 11
.short _0223AFFC - _0223AECE - 2 ; case 12
.short _0223B0CC - _0223AECE - 2 ; case 13
.short _0223B0CC - _0223AECE - 2 ; case 14
.short _0223B0CC - _0223AECE - 2 ; case 15
.short _0223B0CC - _0223AECE - 2 ; case 16
.short _0223B0CC - _0223AECE - 2 ; case 17
.short _0223B0CC - _0223AECE - 2 ; case 18
.short _0223B0CC - _0223AECE - 2 ; case 19
.short _0223B0CC - _0223AECE - 2 ; case 20
2021-06-25 22:31:03 +00:00
_0223AEF8:
cmp r6, #0
bne _0223AF36
2021-06-27 18:48:56 +00:00
ldr r1, _0223B104 ; =0x00000448
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r1]
cmp r0, #0
ble _0223AF06
b _0223AF0A
_0223AF06:
2021-06-27 18:48:56 +00:00
add r0, r1, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
_0223AF0A:
2021-06-27 18:48:56 +00:00
sub r0, r0, #1
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238AC0
2021-06-27 18:48:56 +00:00
ldr r1, _0223B104 ; =0x00000448
add r0, r4, #0
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
bl ov57_022388E4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238958
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238A00
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022399F8
2021-06-27 18:48:56 +00:00
ldr r0, _0223B108 ; =0x000006C4
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-25 22:31:03 +00:00
_0223AF36:
2021-06-27 18:48:56 +00:00
ldr r0, _0223B10C ; =0x00000434
add r1, r6, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov57_0223B858
pop {r4, r5, r6, pc}
_0223AF42:
cmp r6, #0
bne _0223AF84
2021-06-27 18:48:56 +00:00
ldr r1, _0223B104 ; =0x00000448
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r1]
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
str r0, [r4, r1]
ldr r0, [r4, r1]
2021-06-27 18:48:56 +00:00
add r1, r1, #4
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
2021-08-11 14:29:41 +00:00
bl _s32_div_f
2021-06-27 18:48:56 +00:00
ldr r0, _0223B104 ; =0x00000448
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238AC0
2021-06-27 18:48:56 +00:00
ldr r1, _0223B104 ; =0x00000448
add r0, r4, #0
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
bl ov57_022388E4
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238958
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238A00
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022399F8
2021-06-27 18:48:56 +00:00
ldr r0, _0223B108 ; =0x000006C4
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-25 22:31:03 +00:00
_0223AF84:
2021-06-27 18:48:56 +00:00
ldr r0, _0223B110 ; =0x00000438
add r1, r6, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov57_0223B858
pop {r4, r5, r6, pc}
_0223AF90:
cmp r6, #0
bne _0223AFB2
2021-06-27 18:48:56 +00:00
mov r0, #0xff
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
cmp r1, #5
beq _0223AFA8
2021-06-27 18:48:56 +00:00
mov r1, #5
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
ldr r0, _0223B114 ; =0x000005DD
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-25 22:31:03 +00:00
_0223AFA8:
2021-06-27 18:48:56 +00:00
ldr r0, _0223B118 ; =0x0000043C
mov r1, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov57_0223B90C
_0223AFB2:
2021-06-27 18:48:56 +00:00
ldr r0, _0223B118 ; =0x0000043C
add r1, r6, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov57_0223B858
pop {r4, r5, r6, pc}
_0223AFBE:
cmp r6, #0
bne _0223AFEE
2021-06-27 18:48:56 +00:00
mov r0, #0xff
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
cmp r1, #6
beq _0223AFDE
2021-06-27 18:48:56 +00:00
mov r1, #6
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B948
2021-06-27 18:48:56 +00:00
ldr r0, _0223B11C ; =0x000005E2
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-25 22:31:03 +00:00
_0223AFDE:
2021-06-27 18:48:56 +00:00
mov r0, #0x11
mov r1, #0x26
lsl r0, r0, #6
lsl r1, r1, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
ldr r1, [r4, r1]
bl ov57_0223B90C
_0223AFEE:
2021-06-27 18:48:56 +00:00
mov r0, #0x11
lsl r0, r0, #6
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r6, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B858
pop {r4, r5, r6, pc}
_0223AFFC:
cmp r6, #0
bne _0223B02A
2021-06-27 18:48:56 +00:00
mov r0, #0xff
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r0]
cmp r1, #7
beq _0223B01C
2021-06-27 18:48:56 +00:00
mov r1, #7
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B948
2021-06-27 18:48:56 +00:00
ldr r0, _0223B114 ; =0x000005DD
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-25 22:31:03 +00:00
_0223B01C:
2021-06-27 18:48:56 +00:00
ldr r0, _0223B120 ; =0x00000444
mov r1, #0x99
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
ldr r1, [r4, r1]
bl ov57_0223B90C
_0223B02A:
2021-06-27 18:48:56 +00:00
ldr r0, _0223B120 ; =0x00000444
add r1, r6, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov57_0223B858
pop {r4, r5, r6, pc}
_0223B036:
cmp r6, #0
bne _0223B100
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238028
cmp r0, #0
bne _0223B05A
2021-06-27 18:48:56 +00:00
ldr r0, _0223B124 ; =0x000005F2
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
add r4, #0xec
mov r1, #0
add r0, r4, #0
mov r2, #0xf
add r3, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
pop {r4, r5, r6, pc}
_0223B05A:
2021-06-27 18:48:56 +00:00
mov r0, #0x45
lsl r0, r0, #4
add r6, r4, r0
2021-06-25 22:31:03 +00:00
ldrb r1, [r6, r5]
cmp r1, #0
beq _0223B0B0
ldr r0, [r4, #0x64]
2021-06-27 18:48:56 +00:00
sub r1, r1, #1
2021-11-09 15:27:41 +00:00
bl SealCaseInventory_GetSealQuantity
2021-06-25 22:31:03 +00:00
cmp r0, #0
beq _0223B0B0
2021-06-27 18:48:56 +00:00
lsl r1, r5, #0x18
add r0, r4, #0
lsr r1, r1, #0x18
2021-06-25 22:31:03 +00:00
bl ov57_02237FAC
2021-06-27 18:48:56 +00:00
add r1, r4, #0
add r1, #0xd4
2021-06-25 22:31:03 +00:00
str r0, [r1]
ldrb r0, [r6, r5]
2021-06-27 19:11:25 +00:00
bl sub_0209106C
2021-06-27 18:48:56 +00:00
add r1, r0, #0
add r0, r4, #0
add r0, #0xec
2021-06-25 22:31:03 +00:00
bl ov57_02239B2C
ldr r0, [r4]
2021-06-27 18:48:56 +00:00
mov r2, #0
2021-06-25 22:31:03 +00:00
ldrb r1, [r6, r5]
ldr r0, [r0, #0x20]
2021-06-27 18:48:56 +00:00
mvn r2, r2
2021-11-09 15:27:41 +00:00
bl GiveOrTakeSeal
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239A8C
2021-06-27 18:48:56 +00:00
ldr r0, _0223B128 ; =0x000005EB
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-25 22:31:03 +00:00
pop {r4, r5, r6, pc}
_0223B0B0:
ldrb r0, [r6, r5]
cmp r0, #0
beq _0223B100
2021-06-27 18:48:56 +00:00
ldr r0, _0223B124 ; =0x000005F2
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
add r4, #0xec
mov r1, #0
add r0, r4, #0
mov r2, #0x10
add r3, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
pop {r4, r5, r6, pc}
_0223B0CC:
cmp r6, #0
bne _0223B100
2021-06-27 18:48:56 +00:00
sub r5, #0xd
lsl r2, r5, #0x18
add r0, r4, #0
lsr r2, r2, #0x18
2021-06-25 22:31:03 +00:00
bl ov57_022382F8
2021-06-27 18:48:56 +00:00
lsl r0, r5, #4
add r1, r4, r0
mov r0, #0x35
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldrb r0, [r1, r0]
2021-06-27 19:11:25 +00:00
bl sub_0209106C
2021-06-27 18:48:56 +00:00
add r4, #0xec
add r1, r0, #0
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239B2C
2021-06-27 18:48:56 +00:00
ldr r0, _0223B128 ; =0x000005EB
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-25 22:31:03 +00:00
pop {r4, r5, r6, pc}
_0223B0FC:
bl GF_AssertFail
2021-06-25 22:31:03 +00:00
_0223B100:
pop {r4, r5, r6, pc}
nop
2021-06-27 18:48:56 +00:00
_0223B104: .word 0x00000448
_0223B108: .word 0x000006C4
_0223B10C: .word 0x00000434
_0223B110: .word 0x00000438
_0223B114: .word 0x000005DD
_0223B118: .word 0x0000043C
_0223B11C: .word 0x000005E2
_0223B120: .word 0x00000444
_0223B124: .word 0x000005F2
_0223B128: .word 0x000005EB
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223AEA8
thumb_func_start ov57_0223B12C
2021-06-27 18:48:56 +00:00
ov57_0223B12C: ; 0x0223B12C
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
ldr r0, _0223B178 ; =0x0000040C
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
cmp r0, #1
bne _0223B156
2021-06-27 19:11:25 +00:00
bl sub_0202534C
2021-06-25 22:31:03 +00:00
cmp r0, #0
beq _0223B144
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B144:
2021-09-01 12:41:12 +00:00
ldr r0, _0223B17C ; =gMain
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #0x44]
cmp r0, #0
beq _0223B174
2021-06-27 18:48:56 +00:00
ldr r0, _0223B178 ; =0x0000040C
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B156:
2021-09-01 12:41:12 +00:00
ldr r0, _0223B17C ; =gMain
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #0x44]
cmp r0, #0
beq _0223B162
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B162:
2021-06-27 19:11:25 +00:00
bl sub_0202534C
2021-06-25 22:31:03 +00:00
cmp r0, #0
beq _0223B174
2021-06-27 18:48:56 +00:00
ldr r0, _0223B178 ; =0x0000040C
mov r1, #1
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B174:
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0223B178: .word 0x0000040C
2021-09-01 12:41:12 +00:00
_0223B17C: .word gMain
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B12C
thumb_func_start ov57_0223B180
2021-06-27 18:48:56 +00:00
ov57_0223B180: ; 0x0223B180
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B12C
2021-06-27 18:48:56 +00:00
ldr r0, _0223B1A0 ; =0x0000040C
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
cmp r0, #0
bne _0223B198
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B288
pop {r4, pc}
_0223B198:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B2EC
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0223B1A0: .word 0x0000040C
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B180
thumb_func_start ov57_0223B1A4
2021-06-27 18:48:56 +00:00
ov57_0223B1A4: ; 0x0223B1A4
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r4, r1, #0
add r5, r0, #0
2021-06-25 22:31:03 +00:00
cmp r4, #0xc
beq _0223B1B4
cmp r4, #0xd
beq _0223B1C6
b _0223B1FA
_0223B1B4:
2021-06-27 18:48:56 +00:00
ldr r0, _0223B27C ; =0x000005DD
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-25 22:31:03 +00:00
ldr r0, [r5]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_02237E88
2021-06-27 18:48:56 +00:00
mov r0, #5
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
_0223B1C6:
2021-06-27 18:48:56 +00:00
mov r0, #0x47
lsl r0, r0, #2
add r0, r5, r0
mov r1, #3
mov r2, #8
mov r3, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
2021-06-27 18:48:56 +00:00
mov r0, #0xfb
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, #0xfc
mov r2, #1
add r3, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238C30
2021-06-27 18:48:56 +00:00
ldr r0, _0223B280 ; =0x000005DC
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
_0223B1FA:
bl ov57_02238134
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223853C
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_022394AC
2021-06-27 18:48:56 +00:00
mov r0, #0xfb
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r4, [r5, r0]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
mov r1, #0
mov r2, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223B504
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_022383AC
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02237F3C
2021-06-27 18:48:56 +00:00
add r0, r5, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_022383D0
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02237F14
2021-06-27 18:48:56 +00:00
ldr r0, _0223B284 ; =0x0000040C
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
cmp r0, #0
bne _0223B244
2021-06-27 18:48:56 +00:00
ldr r0, _0223B280 ; =0x000005DC
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-25 22:31:03 +00:00
b _0223B278
_0223B244:
2021-06-27 18:48:56 +00:00
mov r0, #0x47
lsl r0, r0, #2
add r0, r5, r0
mov r1, #3
mov r2, #8
mov r3, #0
2021-06-25 22:31:03 +00:00
bl ov57_02239728
2021-06-27 18:48:56 +00:00
mov r0, #0xfb
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
add r1, r5, #0
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, #0xfc
mov r2, #1
add r3, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238C30
2021-06-27 18:48:56 +00:00
ldr r0, _0223B280 ; =0x000005DC
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
_0223B278:
2021-06-27 18:48:56 +00:00
mov r0, #3
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0223B27C: .word 0x000005DD
_0223B280: .word 0x000005DC
_0223B284: .word 0x0000040C
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B1A4
thumb_func_start ov57_0223B288
2021-06-27 18:48:56 +00:00
ov57_0223B288: ; 0x0223B288
2021-06-25 22:31:03 +00:00
push {r3, r4, lr}
sub sp, #4
2021-09-01 12:41:12 +00:00
ldr r2, _0223B2E8 ; =gMain
2021-06-27 18:48:56 +00:00
mov r1, #2
2021-06-25 22:31:03 +00:00
ldr r3, [r2, #0x48]
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
tst r1, r3
beq _0223B2A2
2021-06-27 18:48:56 +00:00
mov r1, #0xc
2021-06-25 22:31:03 +00:00
bl ov57_0223B1A4
add sp, #4
pop {r3, r4, pc}
_0223B2A2:
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-25 22:31:03 +00:00
tst r1, r3
beq _0223B2B2
2021-06-27 18:48:56 +00:00
mov r1, #0xd
2021-06-25 22:31:03 +00:00
bl ov57_0223B1A4
add sp, #4
pop {r3, r4, pc}
_0223B2B2:
ldr r1, [r2, #0x4c]
2021-06-27 18:48:56 +00:00
mov r0, #0xf0
2021-06-25 22:31:03 +00:00
tst r0, r1
bne _0223B2C0
add sp, #4
2021-06-27 18:48:56 +00:00
mov r0, #3
2021-06-25 22:31:03 +00:00
pop {r3, r4, pc}
_0223B2C0:
2021-06-27 18:48:56 +00:00
mov r0, #0xfb
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
str r0, [sp]
add r0, sp, #0
bl ov57_0223B478
cmp r0, #0
bne _0223B2D8
add sp, #4
2021-06-27 18:48:56 +00:00
mov r0, #3
2021-06-25 22:31:03 +00:00
pop {r3, r4, pc}
_0223B2D8:
ldr r1, [sp]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
lsl r1, r1, #0x18
lsr r1, r1, #0x18
2021-06-25 22:31:03 +00:00
bl ov57_0223B1A4
add sp, #4
pop {r3, r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-09-01 12:41:12 +00:00
_0223B2E8: .word gMain
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B288
thumb_func_start ov57_0223B2EC
2021-06-27 18:48:56 +00:00
ov57_0223B2EC: ; 0x0223B2EC
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B578
2021-06-27 18:48:56 +00:00
add r1, r0, #0
2021-06-25 22:31:03 +00:00
bpl _0223B2FC
2021-06-27 18:48:56 +00:00
mov r0, #3
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B2FC:
2021-06-27 18:48:56 +00:00
lsl r1, r1, #0x18
add r0, r4, #0
lsr r1, r1, #0x18
2021-06-25 22:31:03 +00:00
bl ov57_0223B1A4
pop {r4, pc}
thumb_func_end ov57_0223B2EC
thumb_func_start ov57_0223B308
2021-06-27 18:48:56 +00:00
ov57_0223B308: ; 0x0223B308
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B12C
2021-06-27 18:48:56 +00:00
ldr r0, _0223B328 ; =0x0000040C
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
cmp r0, #0
bne _0223B320
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B3F8
pop {r4, pc}
_0223B320:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B45C
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0223B328: .word 0x0000040C
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B308
thumb_func_start ov57_0223B32C
2021-06-27 18:48:56 +00:00
ov57_0223B32C: ; 0x0223B32C
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0x3f
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r2, [r4, r0]
2021-06-27 18:48:56 +00:00
sub r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r3, [r4, r0]
cmp r3, r2
bne _0223B340
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
_0223B340:
cmp r1, #0
beq _0223B36E
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r3, #0
2021-06-25 22:31:03 +00:00
bl ov57_022394D8
2021-06-27 18:48:56 +00:00
mov r1, #1
add r0, r4, #0
add r2, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B504
2021-06-27 18:48:56 +00:00
add r4, #0xec
add r0, r4, #0
mov r1, #0
mov r2, #0xb
mov r3, #1
2021-06-25 22:31:03 +00:00
bl ov57_02239728
2021-06-27 18:48:56 +00:00
ldr r0, _0223B39C ; =0x000005DC
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B36E:
2021-06-27 18:48:56 +00:00
mov r0, #0x32
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DCE8
2021-06-27 18:48:56 +00:00
mov r0, #0xc7
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DC4C
2021-06-27 18:48:56 +00:00
mov r1, #0
add r0, r4, #0
add r2, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B504
2021-06-27 18:48:56 +00:00
ldr r0, _0223B3A0 ; =0x000005DD
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
mov r0, #3
2021-06-25 22:31:03 +00:00
pop {r4, pc}
nop
2021-06-27 18:48:56 +00:00
_0223B39C: .word 0x000005DC
_0223B3A0: .word 0x000005DD
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B32C
thumb_func_start ov57_0223B3A4
2021-06-27 18:48:56 +00:00
ov57_0223B3A4: ; 0x0223B3A4
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
cmp r1, #0xc
beq _0223B3B2
cmp r1, #0xd
beq _0223B3BA
b _0223B3C2
_0223B3B2:
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B32C
pop {r4, pc}
_0223B3BA:
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223B32C
pop {r4, pc}
_0223B3C2:
2021-06-27 18:48:56 +00:00
mov r2, #0x3f
lsl r2, r2, #4
2021-06-25 22:31:03 +00:00
str r1, [r4, r2]
2021-06-27 18:48:56 +00:00
mov r1, #1
mov r2, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B504
2021-06-27 18:48:56 +00:00
ldr r0, _0223B3F0 ; =0x0000040C
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
cmp r0, #0
bne _0223B3E0
2021-06-27 18:48:56 +00:00
ldr r0, _0223B3F4 ; =0x000005DC
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-25 22:31:03 +00:00
b _0223B3EA
_0223B3E0:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223B32C
pop {r4, pc}
_0223B3EA:
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r4, pc}
nop
2021-06-27 18:48:56 +00:00
_0223B3F0: .word 0x0000040C
_0223B3F4: .word 0x000005DC
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B3A4
thumb_func_start ov57_0223B3F8
2021-06-27 18:48:56 +00:00
ov57_0223B3F8: ; 0x0223B3F8
2021-06-25 22:31:03 +00:00
push {r3, r4, lr}
sub sp, #4
2021-09-01 12:41:12 +00:00
ldr r2, _0223B458 ; =gMain
2021-06-27 18:48:56 +00:00
mov r1, #2
2021-06-25 22:31:03 +00:00
ldr r3, [r2, #0x48]
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
tst r1, r3
beq _0223B412
2021-06-27 18:48:56 +00:00
mov r1, #0xc
2021-06-25 22:31:03 +00:00
bl ov57_0223B3A4
add sp, #4
pop {r3, r4, pc}
_0223B412:
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-25 22:31:03 +00:00
tst r3, r1
beq _0223B422
2021-06-27 18:48:56 +00:00
mov r1, #0xd
2021-06-25 22:31:03 +00:00
bl ov57_0223B3A4
add sp, #4
pop {r3, r4, pc}
_0223B422:
ldr r2, [r2, #0x4c]
2021-06-27 18:48:56 +00:00
mov r0, #0xf0
2021-06-25 22:31:03 +00:00
tst r0, r2
bne _0223B430
add sp, #4
2021-06-27 18:48:56 +00:00
add r0, r1, #0
2021-06-25 22:31:03 +00:00
pop {r3, r4, pc}
_0223B430:
2021-06-27 18:48:56 +00:00
mov r0, #0x3f
lsl r0, r0, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
str r0, [sp]
add r0, sp, #0
bl ov57_0223B478
cmp r0, #0
bne _0223B448
add sp, #4
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r3, r4, pc}
_0223B448:
ldr r1, [sp]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
lsl r1, r1, #0x18
lsr r1, r1, #0x18
2021-06-25 22:31:03 +00:00
bl ov57_0223B3A4
add sp, #4
pop {r3, r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-09-01 12:41:12 +00:00
_0223B458: .word gMain
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B3F8
thumb_func_start ov57_0223B45C
2021-06-27 18:48:56 +00:00
ov57_0223B45C: ; 0x0223B45C
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B578
2021-06-27 18:48:56 +00:00
add r1, r0, #0
2021-06-25 22:31:03 +00:00
bpl _0223B46C
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B46C:
2021-06-27 18:48:56 +00:00
lsl r1, r1, #0x18
add r0, r4, #0
lsr r1, r1, #0x18
2021-06-25 22:31:03 +00:00
bl ov57_0223B3A4
pop {r4, pc}
thumb_func_end ov57_0223B45C
thumb_func_start ov57_0223B478
2021-06-27 18:48:56 +00:00
ov57_0223B478: ; 0x0223B478
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-09-01 12:41:12 +00:00
ldr r0, _0223B500 ; =gMain
2021-06-27 18:48:56 +00:00
mov r1, #0x10
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #0x4c]
tst r1, r0
beq _0223B496
ldr r0, [r4]
2021-06-27 18:48:56 +00:00
mov r1, #0xc
add r0, r0, #1
2021-06-25 22:31:03 +00:00
str r0, [r4]
2021-08-11 14:29:41 +00:00
bl _s32_div_f
2021-06-25 22:31:03 +00:00
str r1, [r4]
b _0223B4FC
_0223B496:
2021-06-27 18:48:56 +00:00
mov r1, #0x20
2021-06-25 22:31:03 +00:00
tst r1, r0
beq _0223B4AE
ldr r0, [r4]
cmp r0, #0
ble _0223B4A8
2021-06-27 18:48:56 +00:00
sub r0, r0, #1
2021-06-25 22:31:03 +00:00
str r0, [r4]
b _0223B4FC
_0223B4A8:
2021-06-27 18:48:56 +00:00
mov r0, #0xb
2021-06-25 22:31:03 +00:00
str r0, [r4]
b _0223B4FC
_0223B4AE:
2021-06-27 18:48:56 +00:00
mov r1, #0x40
2021-06-25 22:31:03 +00:00
tst r1, r0
beq _0223B4D2
ldr r1, [r4]
2021-06-27 18:48:56 +00:00
asr r0, r1, #1
lsr r0, r0, #0x1e
add r0, r1, r0
asr r0, r0, #2
2021-06-25 22:31:03 +00:00
beq _0223B4CE
2021-06-27 18:48:56 +00:00
sub r0, r1, #4
mov r1, #0xc
2021-06-25 22:31:03 +00:00
str r0, [r4]
2021-08-11 14:29:41 +00:00
bl _s32_div_f
2021-06-25 22:31:03 +00:00
str r1, [r4]
b _0223B4FC
_0223B4CE:
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B4D2:
2021-06-27 18:48:56 +00:00
mov r1, #0x80
2021-06-25 22:31:03 +00:00
tst r0, r1
beq _0223B4F8
ldr r1, [r4]
2021-06-27 18:48:56 +00:00
asr r0, r1, #1
lsr r0, r0, #0x1e
add r0, r1, r0
asr r0, r0, #2
2021-06-25 22:31:03 +00:00
cmp r0, #2
beq _0223B4F4
2021-06-27 18:48:56 +00:00
add r0, r1, #4
mov r1, #0xc
2021-06-25 22:31:03 +00:00
str r0, [r4]
2021-08-11 14:29:41 +00:00
bl _s32_div_f
2021-06-25 22:31:03 +00:00
str r1, [r4]
b _0223B4FC
_0223B4F4:
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B4F8:
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B4FC:
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-09-01 12:41:12 +00:00
_0223B500: .word gMain
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B478
thumb_func_start ov57_0223B504
2021-06-27 18:48:56 +00:00
ov57_0223B504: ; 0x0223B504
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #8
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r4, #0
2021-06-25 22:31:03 +00:00
str r2, [sp]
cmp r1, #0
bne _0223B514
2021-06-27 18:48:56 +00:00
mov r4, #1
2021-06-25 22:31:03 +00:00
_0223B514:
2021-06-27 18:48:56 +00:00
mov r0, #0xfb
lsl r0, r0, #2
lsl r6, r1, #2
add r7, r5, r0
2021-06-25 22:31:03 +00:00
add r1, sp, #4
ldr r0, [r7, r6]
2021-06-27 18:48:56 +00:00
add r1, #2
2021-06-25 22:31:03 +00:00
add r2, sp, #4
bl ov57_02238DAC
2021-06-27 18:48:56 +00:00
mov r0, #0xc7
add r1, r5, r6
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r1, r0]
add r3, sp, #4
2021-06-27 18:48:56 +00:00
mov r1, #2
mov r2, #0
2021-06-25 22:31:03 +00:00
ldrsh r1, [r3, r1]
ldrsh r2, [r3, r2]
2021-06-27 19:11:25 +00:00
bl sub_0200DDB8
2021-06-25 22:31:03 +00:00
ldr r0, [sp]
cmp r0, #1
bne _0223B572
2021-06-27 18:48:56 +00:00
mov r0, #0xfb
lsl r0, r0, #2
add r1, r5, r0
2021-06-25 22:31:03 +00:00
ldr r0, [r7, r6]
2021-06-27 18:48:56 +00:00
lsl r4, r4, #2
2021-06-25 22:31:03 +00:00
str r0, [r1, r4]
ldr r0, [r1, r4]
add r1, sp, #4
2021-06-27 18:48:56 +00:00
add r1, #2
2021-06-25 22:31:03 +00:00
add r2, sp, #4
bl ov57_02238DAC
2021-06-27 18:48:56 +00:00
mov r0, #0xc7
add r1, r5, r4
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r1, r0]
add r3, sp, #4
2021-06-27 18:48:56 +00:00
mov r1, #2
mov r2, #0
2021-06-25 22:31:03 +00:00
ldrsh r1, [r3, r1]
ldrsh r2, [r3, r2]
2021-06-27 19:11:25 +00:00
bl sub_0200DDB8
2021-06-25 22:31:03 +00:00
_0223B572:
add sp, #8
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B504
thumb_func_start ov57_0223B578
2021-06-27 18:48:56 +00:00
ov57_0223B578: ; 0x0223B578
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x18
str r0, [sp, #4]
2021-06-27 19:11:25 +00:00
bl sub_02025358
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _0223B58E
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
add sp, #0x18
2021-06-27 18:48:56 +00:00
mvn r0, r0
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, r6, r7, pc}
_0223B58E:
2021-06-27 18:48:56 +00:00
mov r0, #0xfe
2021-06-25 22:31:03 +00:00
add r6, sp, #0x10
strb r0, [r6, #2]
2021-06-27 18:48:56 +00:00
mov r0, #0x18
2021-06-25 22:31:03 +00:00
add r7, sp, #0x10
str r0, [sp, #8]
strb r0, [r6, #5]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r7, #2
2021-06-25 22:31:03 +00:00
_0223B5A2:
ldr r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-25 22:31:03 +00:00
strb r0, [r6, #4]
2021-06-27 18:48:56 +00:00
mov r5, #0x28
2021-06-25 22:31:03 +00:00
_0223B5AA:
2021-06-27 18:48:56 +00:00
add r0, r7, #0
2021-06-25 22:31:03 +00:00
strb r5, [r6, #3]
2021-06-27 19:11:25 +00:00
bl sub_02025320
2021-06-25 22:31:03 +00:00
cmp r0, #0
beq _0223B5C0
ldr r0, [sp, #0xc]
add sp, #0x18
2021-06-27 18:48:56 +00:00
lsl r0, r0, #2
add r0, r4, r0
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, r6, r7, pc}
_0223B5C0:
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, #0x38
2021-06-25 22:31:03 +00:00
cmp r4, #4
blt _0223B5AA
ldr r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, #0x38
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
ldr r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
str r0, [sp, #0xc]
cmp r0, #3
blt _0223B5A2
ldr r0, _0223B618 ; =ov57_0223BEB0
2021-06-27 19:11:25 +00:00
bl sub_02025224
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0
mvn r0, r0
2021-06-25 22:31:03 +00:00
cmp r4, r0
beq _0223B614
2021-06-27 18:48:56 +00:00
lsr r1, r0, #0x16
2021-06-25 22:31:03 +00:00
add r0, sp, #0x10
strh r1, [r0]
add r0, sp, #0x10
str r0, [sp]
ldr r0, [sp, #4]
2021-09-01 12:41:12 +00:00
ldr r3, _0223B61C ; =gMain + 0x40
2021-06-27 18:48:56 +00:00
add r0, #0xe4
2021-06-25 22:31:03 +00:00
ldrh r2, [r3, #0x20]
str r0, [sp, #4]
ldrh r3, [r3, #0x22]
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
mov r1, #3
2021-06-27 19:11:25 +00:00
bl sub_0201F2CC
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _0223B610
2021-06-27 18:48:56 +00:00
mov r4, #0
mvn r4, r4
2021-06-25 22:31:03 +00:00
b _0223B612
_0223B610:
2021-06-27 18:48:56 +00:00
add r4, #0xc
2021-06-25 22:31:03 +00:00
_0223B612:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
_0223B614:
add sp, #0x18
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
_0223B618: .word ov57_0223BEB0
2021-09-01 12:41:12 +00:00
_0223B61C: .word gMain + 0x40
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B578
thumb_func_start ov57_0223B620
2021-06-27 18:48:56 +00:00
ov57_0223B620: ; 0x0223B620
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B12C
2021-09-01 12:41:12 +00:00
ldr r0, _0223B6D8 ; =gMain
2021-06-25 22:31:03 +00:00
ldr r1, [r0, #0x48]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
tst r0, r1
beq _0223B668
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xd4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
cmp r0, #0xff
beq _0223B646
2021-06-27 18:48:56 +00:00
ldr r0, _0223B6DC ; =0x000005F2
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B646:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B948
2021-06-27 18:48:56 +00:00
ldr r0, _0223B6E0 ; =0x000005E2
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
mov r0, #0x11
mov r1, #0x26
lsl r0, r0, #6
lsl r1, r1, #4
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
ldr r1, [r4, r1]
bl ov57_0223B90C
2021-06-27 18:48:56 +00:00
mov r0, #6
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B668:
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
tst r0, r1
beq _0223B6A2
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xd4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
cmp r0, #0xff
beq _0223B682
2021-06-27 18:48:56 +00:00
ldr r0, _0223B6DC ; =0x000005F2
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B682:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B948
2021-06-27 18:48:56 +00:00
ldr r0, _0223B6E4 ; =0x000005DD
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
ldr r0, _0223B6E8 ; =0x00000444
mov r1, #0x99
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
ldr r1, [r4, r1]
bl ov57_0223B90C
2021-06-27 18:48:56 +00:00
mov r0, #7
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B6A2:
2021-06-27 18:48:56 +00:00
mov r0, #3
lsl r0, r0, #0xa
2021-06-25 22:31:03 +00:00
tst r0, r1
beq _0223B6D2
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r0, #0xd4
2021-06-25 22:31:03 +00:00
ldr r0, [r0]
cmp r0, #0xff
beq _0223B6BE
2021-06-27 18:48:56 +00:00
ldr r0, _0223B6DC ; =0x000005F2
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B6BE:
2021-06-27 18:48:56 +00:00
ldr r0, _0223B6E4 ; =0x000005DD
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
ldr r0, _0223B6EC ; =0x0000043C
mov r1, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
bl ov57_0223B90C
2021-06-27 18:48:56 +00:00
mov r0, #5
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223B6D2:
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-25 22:31:03 +00:00
pop {r4, pc}
nop
2021-09-01 12:41:12 +00:00
_0223B6D8: .word gMain
2021-06-27 18:48:56 +00:00
_0223B6DC: .word 0x000005F2
_0223B6E0: .word 0x000005E2
_0223B6E4: .word 0x000005DD
_0223B6E8: .word 0x00000444
_0223B6EC: .word 0x0000043C
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B620
thumb_func_start ov57_0223B6F0
2021-06-27 18:48:56 +00:00
ov57_0223B6F0: ; 0x0223B6F0
2021-06-25 22:31:03 +00:00
push {r3, lr}
2021-06-27 18:48:56 +00:00
mov r1, #1
mov r2, #0
mov r3, #3
2021-06-25 22:31:03 +00:00
bl ov57_0223B828
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r3, pc}
thumb_func_end ov57_0223B6F0
thumb_func_start ov57_0223B700
2021-06-27 18:48:56 +00:00
ov57_0223B700: ; 0x0223B700
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238D80
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223866C
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r4, pc}
thumb_func_end ov57_0223B700
thumb_func_start ov57_0223B714
2021-06-27 18:48:56 +00:00
ov57_0223B714: ; 0x0223B714
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-25 22:31:03 +00:00
bl ov57_02238134
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223853C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-25 22:31:03 +00:00
bl ov57_022394AC
ldr r0, [r4]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_02237E88
2021-06-27 18:48:56 +00:00
mov r0, #0xff
mov r1, #5
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r1, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
thumb_func_end ov57_0223B714
thumb_func_start ov57_0223B73C
2021-06-27 18:48:56 +00:00
ov57_0223B73C: ; 0x0223B73C
2021-06-25 22:31:03 +00:00
push {r3, lr}
2021-06-27 18:48:56 +00:00
mov r1, #2
mov r2, #0
mov r3, #3
2021-06-25 22:31:03 +00:00
bl ov57_0223B828
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r3, pc}
thumb_func_end ov57_0223B73C
thumb_func_start ov57_0223B74C
2021-06-27 18:48:56 +00:00
ov57_0223B74C: ; 0x0223B74C
2021-06-25 22:31:03 +00:00
push {r3, lr}
2021-06-27 18:48:56 +00:00
mov r1, #3
mov r2, #0
add r3, r1, #0
2021-06-25 22:31:03 +00:00
bl ov57_0223B828
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r3, pc}
thumb_func_end ov57_0223B74C
thumb_func_start ov57_0223B75C
2021-06-27 18:48:56 +00:00
ov57_0223B75C: ; 0x0223B75C
add r1, r0, #0
mov r0, #0xfb
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r1, r0]
2021-11-09 15:27:41 +00:00
ldr r3, _0223B770 ; =CopyCapsule
2021-06-27 18:48:56 +00:00
lsl r0, r0, #3
add r0, r1, r0
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #8]
2021-06-27 18:48:56 +00:00
add r1, #0x68
2021-06-25 22:31:03 +00:00
bx r3
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-11-09 15:27:41 +00:00
_0223B770: .word CopyCapsule
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B75C
thumb_func_start ov57_0223B774
2021-06-27 18:48:56 +00:00
ov57_0223B774: ; 0x0223B774
mov r1, #0xfb
add r2, r0, #0
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r2, r1]
2021-11-09 15:27:41 +00:00
ldr r3, _0223B788 ; =CopyCapsule
2021-06-27 18:48:56 +00:00
lsl r1, r1, #3
add r1, r2, r1
add r0, #0x68
2021-06-25 22:31:03 +00:00
ldr r1, [r1, #8]
bx r3
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-11-09 15:27:41 +00:00
_0223B788: .word CopyCapsule
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B774
thumb_func_start ov57_0223B78C
2021-06-27 18:48:56 +00:00
ov57_0223B78C: ; 0x0223B78C
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r4, #0
2021-06-25 22:31:03 +00:00
_0223B792:
ldr r0, [r5, #0x64]
2021-06-27 18:48:56 +00:00
add r1, r4, #0
2021-11-09 15:27:41 +00:00
bl SealCaseInventory_GetSealQuantity
2021-06-27 18:48:56 +00:00
add r1, r5, r4
add r1, #0x80
add r4, r4, #1
2021-06-25 22:31:03 +00:00
strb r0, [r1]
cmp r4, #0x51
blt _0223B792
pop {r3, r4, r5, pc}
thumb_func_end ov57_0223B78C
thumb_func_start ov57_0223B7A8
2021-06-27 18:48:56 +00:00
ov57_0223B7A8: ; 0x0223B7A8
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r4, #0
2021-06-25 22:31:03 +00:00
_0223B7AE:
2021-06-27 18:48:56 +00:00
add r2, r5, r4
add r2, #0x80
2021-06-25 22:31:03 +00:00
ldrb r2, [r2]
ldr r0, [r5, #0x64]
2021-06-27 18:48:56 +00:00
add r1, r4, #0
2021-11-09 15:27:41 +00:00
bl SealCaseInventory_SetSealQuantity
2021-06-27 18:48:56 +00:00
add r4, r4, #1
2021-06-25 22:31:03 +00:00
cmp r4, #0x51
blt _0223B7AE
pop {r3, r4, r5, pc}
thumb_func_end ov57_0223B7A8
thumb_func_start ov57_0223B7C4
2021-06-27 18:48:56 +00:00
ov57_0223B7C4: ; 0x0223B7C4
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
mov r1, #0xfb
add r5, r0, #0
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r1]
2021-06-27 18:48:56 +00:00
lsl r0, r0, #3
add r0, r5, r0
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #4]
cmp r0, #0xff
beq _0223B7EA
ldr r2, [r5]
2021-06-27 18:48:56 +00:00
lsl r0, r0, #2
add r0, r2, r0
add r1, #0x6c
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #4]
ldr r1, [r5, r1]
2021-09-12 22:42:37 +00:00
bl CopyPokemonToPokemon
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, r6, r7, pc}
_0223B7EA:
ldr r1, [r5]
2021-06-27 18:48:56 +00:00
mov r6, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r1]
cmp r0, #0
ble _0223B820
2021-06-27 18:48:56 +00:00
add r4, r6, #0
2021-06-25 22:31:03 +00:00
_0223B7F6:
2021-06-27 18:48:56 +00:00
add r0, r1, r4
2021-06-25 22:31:03 +00:00
ldr r7, [r0, #4]
2021-06-27 18:48:56 +00:00
mov r1, #0x4c
add r0, r7, #0
mov r2, #0
2021-09-06 13:41:18 +00:00
bl GetMonData
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _0223B814
2021-06-27 18:48:56 +00:00
ldr r1, _0223B824 ; =0x00000458
add r0, r7, #0
2021-06-25 22:31:03 +00:00
ldr r1, [r5, r1]
2021-09-12 22:42:37 +00:00
bl CopyPokemonToPokemon
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, r6, r7, pc}
_0223B814:
ldr r1, [r5]
2021-06-27 18:48:56 +00:00
add r6, r6, #1
2021-06-25 22:31:03 +00:00
ldr r0, [r1]
2021-06-27 18:48:56 +00:00
add r4, r4, #4
2021-06-25 22:31:03 +00:00
cmp r6, r0
blt _0223B7F6
_0223B820:
pop {r3, r4, r5, r6, r7, pc}
nop
2021-06-27 18:48:56 +00:00
_0223B824: .word 0x00000458
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B7C4
thumb_func_start ov57_0223B828
2021-06-27 18:48:56 +00:00
ov57_0223B828: ; 0x0223B828
2021-06-25 22:31:03 +00:00
push {r3, r4}
cmp r2, #0xff
bne _0223B83A
2021-06-27 18:48:56 +00:00
mov r2, #1
lsl r2, r2, #0xa
2021-06-25 22:31:03 +00:00
ldr r4, [r0, r2]
2021-06-27 18:48:56 +00:00
sub r2, r2, #4
2021-06-25 22:31:03 +00:00
str r4, [r0, r2]
b _0223B840
_0223B83A:
2021-06-27 18:48:56 +00:00
mov r4, #0xff
lsl r4, r4, #2
2021-06-25 22:31:03 +00:00
str r2, [r0, r4]
_0223B840:
2021-06-27 18:48:56 +00:00
mov r2, #0xfd
lsl r2, r2, #2
2021-06-25 22:31:03 +00:00
str r1, [r0, r2]
2021-06-27 18:48:56 +00:00
add r1, r2, #0
add r1, #0xc
2021-06-25 22:31:03 +00:00
str r3, [r0, r1]
2021-06-27 18:48:56 +00:00
mov r1, #0
add r2, #0x10
2021-06-25 22:31:03 +00:00
str r1, [r0, r2]
pop {r3, r4}
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B828
thumb_func_start ov57_0223B858
2021-06-27 18:48:56 +00:00
ov57_0223B858: ; 0x0223B858
2021-06-25 22:31:03 +00:00
push {r3, lr}
cmp r1, #3
bhi _0223B88A
2021-06-27 18:48:56 +00:00
add r1, r1, r1
2021-06-25 22:31:03 +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-25 22:31:03 +00:00
add pc, r1
2021-06-27 18:48:56 +00:00
_0223B86A: ; jump table
.short _0223B872 - _0223B86A - 2 ; case 0
.short _0223B882 - _0223B86A - 2 ; case 1
.short _0223B87A - _0223B86A - 2 ; case 2
.short _0223B882 - _0223B86A - 2 ; case 3
2021-06-25 22:31:03 +00:00
_0223B872:
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_0200DCC0
2021-06-25 22:31:03 +00:00
pop {r3, pc}
_0223B87A:
2021-06-27 18:48:56 +00:00
mov r1, #2
2021-06-27 19:11:25 +00:00
bl sub_0200DCC0
2021-06-25 22:31:03 +00:00
pop {r3, pc}
_0223B882:
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DCC0
2021-06-25 22:31:03 +00:00
pop {r3, pc}
_0223B88A:
bl GF_AssertFail
2021-06-25 22:31:03 +00:00
pop {r3, pc}
thumb_func_end ov57_0223B858
thumb_func_start ov57_0223B890
2021-06-27 18:48:56 +00:00
ov57_0223B890: ; 0x0223B890
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, lr}
sub sp, #8
2021-06-27 18:48:56 +00:00
add r5, r0, #0
add r4, r1, #0
add r6, r2, #0
2021-06-25 22:31:03 +00:00
cmp r5, #0
beq _0223B8B4
add r1, sp, #4
add r2, sp, #0
2021-06-27 19:11:25 +00:00
bl sub_02013794
2021-06-25 22:31:03 +00:00
ldr r1, [sp, #4]
ldr r2, [sp]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r1, r1, r4
add r2, r2, r6
2021-06-27 19:11:25 +00:00
bl sub_020136B4
2021-06-25 22:31:03 +00:00
_0223B8B4:
add sp, #8
pop {r4, r5, r6, pc}
thumb_func_end ov57_0223B890
thumb_func_start ov57_0223B8B8
2021-06-27 18:48:56 +00:00
ov57_0223B8B8: ; 0x0223B8B8
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r4, r1, #0
add r5, r0, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4]
cmp r0, #3
beq _0223B8CA
cmp r0, #6
beq _0223B8E4
b _0223B904
_0223B8CA:
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, #8]
2021-06-27 18:48:56 +00:00
sub r2, r1, #1
2021-06-25 22:31:03 +00:00
bl ov57_0223B890
ldr r0, [r4, #4]
2021-06-27 18:48:56 +00:00
mov r1, #2
2021-06-27 19:11:25 +00:00
bl sub_0200DCC0
2021-06-25 22:31:03 +00:00
ldr r0, [r4]
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
str r0, [r4]
pop {r3, r4, r5, pc}
_0223B8E4:
ldr r0, [r4, #8]
2021-06-27 18:48:56 +00:00
mov r1, #0
mov r2, #2
2021-06-25 22:31:03 +00:00
bl ov57_0223B890
ldr r0, [r4, #4]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0200DCC0
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-27 19:11:25 +00:00
bl sub_0200E390
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-08-12 19:28:01 +00:00
bl FreeToHeap
2021-06-25 22:31:03 +00:00
pop {r3, r4, r5, pc}
_0223B904:
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
str r0, [r4]
pop {r3, r4, r5, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B8B8
thumb_func_start ov57_0223B90C
2021-06-27 18:48:56 +00:00
ov57_0223B90C: ; 0x0223B90C
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, lr}
2021-06-27 18:48:56 +00:00
add r6, r0, #0
add r5, r1, #0
mov r0, #0x34
mov r1, #0xc
2021-08-12 19:28:01 +00:00
bl AllocFromHeap
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #1
2021-06-25 22:31:03 +00:00
str r0, [r4]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
str r6, [r4, #4]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
sub r2, r1, #1
2021-06-25 22:31:03 +00:00
str r5, [r4, #8]
bl ov57_0223B890
2021-06-27 18:48:56 +00:00
mov r2, #0xfa
ldr r0, _0223B93C ; =ov57_0223B8B8
add r1, r4, #0
lsl r2, r2, #2
2021-06-27 19:11:25 +00:00
bl sub_0200E320
2021-06-25 22:31:03 +00:00
pop {r4, r5, r6, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0223B93C: .word ov57_0223B8B8
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B90C
thumb_func_start ov57_0223B940
2021-06-27 18:48:56 +00:00
ov57_0223B940: ; 0x0223B940
mov r1, #0xa
lsl r1, r1, #6
2021-06-25 22:31:03 +00:00
ldr r0, [r0, r1]
bx lr
thumb_func_end ov57_0223B940
thumb_func_start ov57_0223B948
2021-06-27 18:48:56 +00:00
ov57_0223B948: ; 0x0223B948
add r0, #0xd8
2021-06-25 22:31:03 +00:00
str r1, [r0]
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B948
thumb_func_start ov57_0223B950
2021-06-27 18:48:56 +00:00
ov57_0223B950: ; 0x0223B950
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, lr}
sub sp, #0x48
2021-06-27 18:48:56 +00:00
ldr r1, _0223B9BC ; =0x00000458
add r5, r0, #0
2021-06-25 22:31:03 +00:00
ldr r1, [r5, r1]
add r0, sp, #0x38
2021-06-27 18:48:56 +00:00
mov r2, #2
2021-06-27 19:11:25 +00:00
bl sub_02070124
2021-06-27 18:48:56 +00:00
ldr r0, _0223B9BC ; =0x00000458
mov r1, #5
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
mov r2, #0
2021-09-06 13:41:18 +00:00
bl GetMonData
2021-06-27 18:48:56 +00:00
add r4, r0, #0
ldr r0, _0223B9BC ; =0x00000458
mov r1, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 19:11:25 +00:00
bl sub_0207083C
2021-06-27 18:48:56 +00:00
add r6, r0, #0
mov r0, #0x73
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
str r6, [r5, r0]
2021-06-27 18:48:56 +00:00
ldr r0, _0223B9C0 ; =0x0000045C
lsl r2, r4, #0x10
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
add r1, sp, #0x10
2021-06-27 18:48:56 +00:00
lsr r2, r2, #0x10
mov r3, #1
2021-06-27 19:11:25 +00:00
bl sub_02072914
2021-06-27 18:48:56 +00:00
ldr r0, _0223B9C4 ; =0xFFFFFD80
add r6, #0x30
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-25 22:31:03 +00:00
str r1, [sp, #4]
add r0, sp, #0x10
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0x71
2021-06-25 22:31:03 +00:00
str r1, [sp, #0xc]
2021-06-27 18:48:56 +00:00
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
add r1, sp, #0x38
2021-06-27 18:48:56 +00:00
mov r2, #0xc0
add r3, r6, #0
2021-06-27 19:11:25 +00:00
bl sub_020085EC
2021-06-27 18:48:56 +00:00
mov r1, #0x72
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
str r0, [r5, r1]
add sp, #0x48
pop {r4, r5, r6, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0223B9BC: .word 0x00000458
_0223B9C0: .word 0x0000045C
_0223B9C4: .word 0xFFFFFD80
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B950
thumb_func_start ov57_0223B9C8
2021-06-27 18:48:56 +00:00
ov57_0223B9C8: ; 0x0223B9C8
2021-06-25 22:31:03 +00:00
push {r4, r5, lr}
sub sp, #0xc
2021-06-27 18:48:56 +00:00
add r5, r0, #0
ldr r0, _0223BA14 ; =0x00000458
mov r1, #5
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
mov r2, #0
2021-09-06 13:41:18 +00:00
bl GetMonData
2021-06-27 18:48:56 +00:00
add r4, r0, #0
ldr r0, _0223BA14 ; =0x00000458
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-09-12 22:42:37 +00:00
bl GetMonNature
2021-06-27 18:48:56 +00:00
mov r0, #0x72
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-27 19:11:25 +00:00
bl sub_02008550
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r2, #0xa1
2021-06-25 22:31:03 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
ldr r0, _0223BA18 ; =0x0000045C
lsl r2, r2, #2
2021-06-25 22:31:03 +00:00
ldr r1, [r5, r2]
2021-06-27 18:48:56 +00:00
sub r2, #0xbc
lsl r3, r4, #0x10
2021-06-25 22:31:03 +00:00
ldr r0, [r5, r0]
ldr r2, [r5, r2]
2021-06-27 18:48:56 +00:00
lsr r3, r3, #0x10
2021-06-27 19:11:25 +00:00
bl sub_0207294C
2021-06-25 22:31:03 +00:00
add sp, #0xc
pop {r4, r5, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0223BA14: .word 0x00000458
_0223BA18: .word 0x0000045C
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223B9C8
thumb_func_start ov57_0223BA1C
2021-06-27 18:48:56 +00:00
ov57_0223BA1C: ; 0x0223BA1C
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0x72
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0xc
mov r2, #0
2021-06-27 19:11:25 +00:00
bl sub_020087A4
2021-06-27 18:48:56 +00:00
mov r0, #0x72
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0xd
mov r2, #0
2021-06-27 19:11:25 +00:00
bl sub_020087A4
2021-06-25 22:31:03 +00:00
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223BA1C
thumb_func_start ov57_0223BA40
2021-06-27 18:48:56 +00:00
ov57_0223BA40: ; 0x0223BA40
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0x72
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0xc
2021-06-27 19:11:25 +00:00
bl sub_02008A78
2021-06-27 18:48:56 +00:00
mov r1, #1
lsl r1, r1, #8
2021-06-25 22:31:03 +00:00
cmp r0, r1
bne _0223BA5C
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223BA5C:
2021-06-27 18:48:56 +00:00
add r1, #0xc8
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r1]
2021-06-27 18:48:56 +00:00
mov r1, #0xc
2021-06-27 19:11:25 +00:00
bl sub_02008A78
2021-06-27 18:48:56 +00:00
mov r2, #1
lsl r2, r2, #8
2021-06-25 22:31:03 +00:00
cmp r0, r2
blt _0223BA8E
2021-06-27 18:48:56 +00:00
add r0, r2, #0
add r0, #0xc8
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0xc
2021-06-27 19:11:25 +00:00
bl sub_020087A4
2021-06-27 18:48:56 +00:00
mov r0, #0x72
lsl r0, r0, #2
mov r1, #0xd
add r2, r1, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
add r2, #0xf3
2021-06-27 19:11:25 +00:00
bl sub_020087A4
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223BA8E:
2021-06-27 18:48:56 +00:00
add r2, #0xc8
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r2]
2021-06-27 18:48:56 +00:00
mov r1, #0xc
mov r2, #0x20
2021-06-27 19:11:25 +00:00
bl sub_02008C2C
2021-06-27 18:48:56 +00:00
mov r0, #0x72
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0xd
mov r2, #0x20
2021-06-27 19:11:25 +00:00
bl sub_02008C2C
2021-06-27 18:48:56 +00:00
mov r1, #0x72
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r1]
2021-06-27 18:48:56 +00:00
add r1, r1, #4
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
2021-06-27 19:11:25 +00:00
bl sub_0200914C
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223BA40
thumb_func_start ov57_0223BABC
2021-06-27 18:48:56 +00:00
ov57_0223BABC: ; 0x0223BABC
2021-06-25 22:31:03 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0x72
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0xc
2021-06-27 19:11:25 +00:00
bl sub_02008A78
2021-06-25 22:31:03 +00:00
cmp r0, #0
bne _0223BAD4
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223BAD4:
2021-06-27 18:48:56 +00:00
mov r0, #0x72
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0xc
2021-06-27 19:11:25 +00:00
bl sub_02008A78
2021-06-25 22:31:03 +00:00
cmp r0, #0
bgt _0223BB04
2021-06-27 18:48:56 +00:00
mov r0, #0x72
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0xc
mov r2, #0
2021-06-27 19:11:25 +00:00
bl sub_020087A4
2021-06-27 18:48:56 +00:00
mov r0, #0x72
lsl r0, r0, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
mov r1, #0xd
mov r2, #0
2021-06-27 19:11:25 +00:00
bl sub_020087A4
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
pop {r4, pc}
_0223BB04:
2021-06-27 18:48:56 +00:00
mov r0, #0x72
lsl r0, r0, #2
mov r1, #0xc
add r2, r1, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
sub r2, #0x2c
2021-06-27 19:11:25 +00:00
bl sub_02008C2C
2021-06-27 18:48:56 +00:00
mov r0, #0x72
lsl r0, r0, #2
mov r1, #0xd
add r2, r1, #0
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
sub r2, #0x2d
2021-06-27 19:11:25 +00:00
bl sub_02008C2C
2021-06-27 18:48:56 +00:00
mov r1, #0x72
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r4, r1]
2021-06-27 18:48:56 +00:00
add r1, r1, #4
2021-06-25 22:31:03 +00:00
ldr r1, [r4, r1]
2021-06-27 19:11:25 +00:00
bl sub_0200914C
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-25 22:31:03 +00:00
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223BABC
thumb_func_start ov57_0223BB38
2021-06-27 18:48:56 +00:00
ov57_0223BB38: ; 0x0223BB38
add r2, r1, #0
mov r1, #0x72
lsl r1, r1, #2
2021-06-25 22:31:03 +00:00
ldr r0, [r0, r1]
2021-06-27 19:11:25 +00:00
ldr r3, _0223BB48 ; =sub_020087A4
2021-06-27 18:48:56 +00:00
mov r1, #6
2021-06-25 22:31:03 +00:00
bx r3
nop
2021-06-27 19:11:25 +00:00
_0223BB48: .word sub_020087A4
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223BB38
thumb_func_start ov57_0223BB4C
2021-06-27 18:48:56 +00:00
ov57_0223BB4C: ; 0x0223BB4C
mov r1, #0x72
lsl r1, r1, #2
2021-06-27 19:11:25 +00:00
ldr r3, _0223BB58 ; =sub_02008780
2021-06-25 22:31:03 +00:00
ldr r0, [r0, r1]
bx r3
nop
2021-06-27 19:11:25 +00:00
_0223BB58: .word sub_02008780
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223BB4C
thumb_func_start ov57_0223BB5C
2021-06-27 18:48:56 +00:00
ov57_0223BB5C: ; 0x0223BB5C
2021-06-25 22:31:03 +00:00
push {r3, lr}
2021-06-27 18:48:56 +00:00
mov r1, #0
mov r3, #0x1f
ldr r0, _0223BB7C ; =0x04000050
add r2, r1, #0
2021-06-25 22:31:03 +00:00
str r3, [sp]
2021-09-18 22:02:59 +00:00
bl G2x_SetBlendAlpha_
2021-06-27 18:48:56 +00:00
mov r1, #0
mov r3, #0x1f
ldr r0, _0223BB80 ; =0x04001050
add r2, r1, #0
2021-06-25 22:31:03 +00:00
str r3, [sp]
2021-09-18 22:02:59 +00:00
bl G2x_SetBlendAlpha_
2021-06-25 22:31:03 +00:00
pop {r3, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0223BB7C: .word 0x04000050
_0223BB80: .word 0x04001050
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223BB5C
thumb_func_start ov57_0223BB84
2021-06-27 18:48:56 +00:00
ov57_0223BB84: ; 0x0223BB84
2021-06-25 22:31:03 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x14
str r0, [sp, #4]
add r1, sp, #0x10
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-25 22:31:03 +00:00
strb r0, [r1]
strb r0, [r1, #1]
strb r0, [r1, #2]
2021-06-27 18:48:56 +00:00
mov r7, #0x1f
lsl r7, r7, #4
2021-06-25 22:31:03 +00:00
strb r0, [r1, #3]
ldr r1, _0223BC40 ; =ov57_0223BEF4
2021-06-25 22:31:03 +00:00
ldr r2, [sp, #4]
2021-06-27 18:48:56 +00:00
add r3, r7, #1
add r4, r7, #2
add r5, r7, #3
2021-06-25 22:31:03 +00:00
_0223BBA4:
ldrb r6, [r1]
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
strb r6, [r2, r7]
ldrb r6, [r1, #1]
strb r6, [r2, r3]
ldrb r6, [r1, #2]
strb r6, [r2, r4]
ldrb r6, [r1, #3]
2021-06-27 18:48:56 +00:00
add r1, r1, #4
2021-06-25 22:31:03 +00:00
strb r6, [r2, r5]
2021-06-27 18:48:56 +00:00
add r2, r2, #4
2021-06-25 22:31:03 +00:00
cmp r0, #0xd
blt _0223BBA4
cmp r0, #0x15
bge _0223BC1E
2021-06-27 18:48:56 +00:00
mov r3, #0x1f
2021-06-25 22:31:03 +00:00
ldr r2, [sp, #4]
2021-06-27 18:48:56 +00:00
lsl r3, r3, #4
add r2, r2, r3
lsl r4, r0, #2
2021-06-25 22:31:03 +00:00
ldr r1, [sp, #4]
ldr r3, [sp, #4]
2021-06-27 18:48:56 +00:00
add r1, r1, r4
add r2, r2, r4
lsl r4, r0, #4
2021-06-25 22:31:03 +00:00
add r5, sp, #0xc
2021-06-27 18:48:56 +00:00
add r3, r3, r4
2021-06-25 22:31:03 +00:00
ldrb r4, [r5, #4]
strb r4, [r5]
ldrb r4, [r5, #5]
strb r4, [r5, #1]
ldrb r4, [r5, #6]
strb r4, [r5, #2]
ldrb r4, [r5, #7]
strb r4, [r5, #3]
ldrb r4, [r5, #2]
ldrb r6, [r5]
ldrb r7, [r5, #1]
str r4, [sp, #8]
ldrb r4, [r5, #3]
mov ip, r4
_0223BBF6:
2021-06-27 18:48:56 +00:00
mov r4, #0x1f
lsl r4, r4, #4
2021-06-25 22:31:03 +00:00
strb r6, [r1, r4]
2021-06-27 18:48:56 +00:00
add r4, r4, #1
2021-06-25 22:31:03 +00:00
strb r7, [r1, r4]
2021-06-27 18:48:56 +00:00
ldr r5, _0223BC44 ; =0x000001F2
2021-06-25 22:31:03 +00:00
ldr r4, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-25 22:31:03 +00:00
strb r4, [r1, r5]
2021-06-27 18:48:56 +00:00
add r5, r5, #1
2021-06-25 22:31:03 +00:00
mov r4, ip
strb r4, [r1, r5]
2021-06-27 18:48:56 +00:00
mov r4, #0xa2
lsl r4, r4, #2
2021-06-25 22:31:03 +00:00
str r2, [r3, r4]
2021-06-27 18:48:56 +00:00
add r1, r1, #4
add r2, r2, #4
add r3, #0x10
2021-06-25 22:31:03 +00:00
cmp r0, #0x15
blt _0223BBF6
_0223BC1E:
2021-06-27 18:48:56 +00:00
mov r0, #0x34
2021-06-25 22:31:03 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r1, #0x1f
2021-06-25 22:31:03 +00:00
ldr r0, [sp, #4]
2021-06-27 18:48:56 +00:00
lsl r1, r1, #4
add r0, r0, r1
ldr r2, _0223BC48 ; =ov57_0223AEA8
2021-06-25 22:31:03 +00:00
ldr r3, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r1, #0x15
2021-06-27 19:11:25 +00:00
bl sub_02026C44
2021-06-27 18:48:56 +00:00
mov r2, #0x7b
2021-06-25 22:31:03 +00:00
ldr r1, [sp, #4]
2021-06-27 18:48:56 +00:00
lsl r2, r2, #2
2021-06-25 22:31:03 +00:00
str r0, [r1, r2]
add sp, #0x14
pop {r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
_0223BC40: .word ov57_0223BEF4
2021-06-27 18:48:56 +00:00
_0223BC44: .word 0x000001F2
_0223BC48: .word ov57_0223AEA8
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223BB84
thumb_func_start ov57_0223BC4C
2021-06-27 18:48:56 +00:00
ov57_0223BC4C: ; 0x0223BC4C
2021-06-25 22:31:03 +00:00
push {r3, r4, r5, r6, lr}
sub sp, #4
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r0, #0
add r4, r5, #4
lsl r6, r1, #3
2021-06-25 22:31:03 +00:00
str r0, [sp]
ldr r0, [r4, r6]
cmp r0, #0xff
beq _0223BC70
ldr r1, [r5]
2021-06-27 18:48:56 +00:00
lsl r0, r0, #2
add r0, r1, r0
2021-06-25 22:31:03 +00:00
ldr r0, [r0, #4]
2021-06-27 18:48:56 +00:00
mov r1, #0xa2
2021-06-25 22:31:03 +00:00
add r2, sp, #0
2021-09-12 22:42:37 +00:00
bl SetMonData
2021-06-25 22:31:03 +00:00
_0223BC70:
2021-06-27 18:48:56 +00:00
mov r0, #0xff
2021-06-25 22:31:03 +00:00
str r0, [r4, r6]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-25 22:31:03 +00:00
bl ov57_022394AC
add sp, #4
pop {r3, r4, r5, r6, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-25 22:31:03 +00:00
thumb_func_end ov57_0223BC4C
.rodata
_0223BC80:
.byte 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00
ov57_0223BC90: ; 0x0223BC90
2021-06-25 22:31:03 +00:00
.byte 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x06, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00
ov57_0223BCB8: ; 0x0223BCB8
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
2021-06-25 22:31:03 +00:00
.byte 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x03, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x01, 0x00, 0x06, 0x04, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
ov57_0223BD0C: ; 0x0223BD0C
.byte 0x00, 0x00, 0x00, 0x00
2021-06-25 22:31:03 +00:00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x0D, 0x00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x0E, 0x01, 0x00, 0x02, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x0C, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x01, 0x00, 0x0F, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
ov57_0223BD7C: ; 0x0223BD7C
.byte 0x03, 0x00, 0x01, 0x0B
.byte 0x00, 0x00, 0x86, 0x00, 0x1F, 0x00, 0x5A, 0x00
ov57_0223BD88: ; 0x0223BD88
.byte 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00
.byte 0x00, 0x40, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00
ov57_0223BD9C: ; 0x0223BD9C
.byte 0x60, 0x00, 0x00, 0x00
2021-06-25 22:31:03 +00:00
.byte 0x20, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00
.byte 0x10, 0x00, 0x00, 0x00
ov57_0223BDB4: ; 0x0223BDB4
.byte 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
2021-06-25 22:31:03 +00:00
.byte 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x20, 0x00, 0x00, 0x00
ov57_0223BDD4: ; 0x0223BDD4
.byte 0x13, 0x00, 0x17, 0x00, 0x4B, 0x00, 0x17, 0x00, 0x13, 0x00, 0x2F, 0x00
2021-06-25 22:31:03 +00:00
.byte 0x4B, 0x00, 0x2F, 0x00, 0x13, 0x00, 0x47, 0x00, 0x4B, 0x00, 0x47, 0x00, 0x13, 0x00, 0x5F, 0x00
.byte 0x4B, 0x00, 0x5F, 0x00
ov57_0223BDF4: ; 0x0223BDF4
.byte 0x18, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x1B, 0x00, 0x00, 0x00
2021-06-25 22:31:03 +00:00
.byte 0x28, 0x00, 0x00, 0x00, 0x29, 0x00, 0x00, 0x00, 0x2B, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00
.byte 0x49, 0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00
ov57_0223BE18: ; 0x0223BE18
.byte 0x88, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00
2021-06-25 22:31:03 +00:00
.byte 0x01, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00
.byte 0xF0, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00
.byte 0x80, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00
ov57_0223BE48: ; 0x0223BE48
.byte 0x14, 0x00, 0x17, 0x00, 0x14, 0x00, 0x2F, 0x00
2021-06-25 22:31:03 +00:00
.byte 0x14, 0x00, 0x47, 0x00, 0x14, 0x00, 0x5F, 0x00, 0x4C, 0x00, 0x17, 0x00, 0x4C, 0x00, 0x2F, 0x00
.byte 0x4C, 0x00, 0x47, 0x00, 0x4C, 0x00, 0x5F, 0x00, 0x1B, 0x00, 0x7C, 0x00, 0x43, 0x00, 0x7C, 0x00
.byte 0x20, 0x00, 0xAB, 0x00, 0x68, 0x00, 0xAB, 0x00, 0xC0, 0x00, 0xAB, 0x00
ov57_0223BE7C: ; 0x0223BE7C
.byte 0xFF, 0x00, 0xFF, 0x00
2021-06-25 22:31:03 +00:00
.byte 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00
.byte 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0x0D, 0x00, 0x0A, 0x00
.byte 0x0D, 0x00, 0x0A, 0x00, 0x10, 0x00, 0x0C, 0x00, 0x1C, 0x00, 0x0C, 0x00, 0x1C, 0x00, 0x0C, 0x00
ov57_0223BEB0: ; 0x0223BEB0
.byte 0xA8, 0xC0, 0xC0, 0x00, 0xFF, 0x00, 0x00, 0x00
ov57_0223BEB8: ; 0x0223BEB8
2021-12-04 21:07:10 +00:00
.word ov57_0223A104
.word ov57_0223A31C
.word ov57_0223A504
.word ov57_0223A5AC
.word ov57_0223A6B4
ov57_0223BECC: ; 0x0223BECC
2021-12-04 21:07:10 +00:00
.word 0x00000000, ov57_0223B6F0
.word 0x00000001, ov57_0223B700
.word 0x00000002, ov57_0223B714
.word 0x00000003, ov57_0223B73C
.word 0x00000004, ov57_0223B74C
ov57_0223BEF4: ; 0x0223BEF4
.byte 0x10, 0x20, 0x08, 0x18, 0x10, 0x20, 0x40, 0x50, 0x28, 0x38, 0x08, 0x18
2021-06-25 22:31:03 +00:00
.byte 0x28, 0x38, 0x40, 0x50, 0x40, 0x50, 0x08, 0x18, 0x40, 0x50, 0x40, 0x50, 0x58, 0x68, 0x08, 0x18
.byte 0x58, 0x68, 0x40, 0x50, 0x68, 0x80, 0x08, 0x30, 0x68, 0x80, 0x38, 0x60, 0xA8, 0xBC, 0x12, 0x4D
.byte 0xA8, 0xBC, 0x61, 0x9C, 0xA8, 0xBC, 0xB2, 0xED
2021-08-07 01:43:27 +00:00
.section .sinit,4
2021-06-25 22:31:03 +00:00
.word ov57_022378C0