pokeheartgold/asm/overlay_34.s

2279 lines
39 KiB
ArmAsm
Raw Normal View History

.include "asm/macros.inc"
.include "global.inc"
.text
2021-06-18 12:29:26 +00:00
2021-06-24 22:40:10 +00:00
thumb_func_start ov34_0225D520
2021-06-27 18:48:56 +00:00
ov34_0225D520: ; 0x0225D520
2021-06-18 12:29:26 +00:00
push {r3, r4, r5, lr}
sub sp, #0x10
2021-06-27 18:48:56 +00:00
add r5, r0, #0
2021-06-18 12:29:26 +00:00
ldr r0, [r5, #0x1c]
2021-06-27 18:48:56 +00:00
mov r1, #0xdb
2021-08-14 00:11:40 +00:00
bl NewString_ReadMsgData
2021-06-27 18:48:56 +00:00
mov r1, #0
add r4, r0, #0
2021-06-18 12:29:26 +00:00
str r1, [sp]
2021-06-27 18:48:56 +00:00
ldr r0, _0225D554 ; =0x000F0200
2021-06-18 12:29:26 +00:00
str r1, [sp, #4]
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0x9d
lsl r0, r0, #2
add r0, r5, r0
add r2, r4, #0
add r3, r1, #0
2021-06-18 12:29:26 +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, r4, #0
2021-08-14 00:11:40 +00:00
bl String_dtor
2021-06-18 12:29:26 +00:00
add sp, #0x10
pop {r3, r4, r5, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0225D554: .word 0x000F0200
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225D520
thumb_func_start ov34_0225D558
2021-06-27 18:48:56 +00:00
ov34_0225D558: ; 0x0225D558
2021-06-24 22:40:10 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2022-02-01 20:44:20 +00:00
ldr r0, _0225D59C ; =gSystem
2021-06-24 22:40:10 +00:00
ldr r1, [r0, #0x48]
2021-06-27 18:48:56 +00:00
mov r0, #1
lsl r0, r0, #0xa
2021-06-24 22:40:10 +00:00
tst r0, r1
beq _0225D576
ldr r0, [r4, #0xc]
bl ov01_021F6B10
2021-06-24 22:40:10 +00:00
cmp r0, #1
bne _0225D576
2021-06-27 18:48:56 +00:00
mov r0, #3
2021-06-24 22:40:10 +00:00
str r0, [r4]
_0225D576:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E58C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E4F8
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225DE04
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E164
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225DD04
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E630
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2022-02-01 20:44:20 +00:00
_0225D59C: .word gSystem
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225D558
thumb_func_start ov34_0225D5A0
2021-06-27 18:48:56 +00:00
ov34_0225D5A0: ; 0x0225D5A0
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r4, r1, #0
2021-06-24 22:40:10 +00:00
ldr r0, [r4, #0xc]
ldr r5, [r4, #0x14]
2021-06-27 18:48:56 +00:00
add r1, r0, #0
add r1, #0x84
2021-06-24 22:40:10 +00:00
ldr r1, [r1]
cmp r1, #0
beq _0225D5F4
ldr r1, [r4]
cmp r1, #5
bhi _0225D5F4
2021-06-27 18:48:56 +00:00
add r1, r1, r1
2021-06-24 22:40:10 +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-24 22:40:10 +00:00
add pc, r1
2021-06-27 18:48:56 +00:00
_0225D5C4: ; jump table
.short _0225D5F4 - _0225D5C4 - 2 ; case 0
.short _0225D5F4 - _0225D5C4 - 2 ; case 1
.short _0225D5D0 - _0225D5C4 - 2 ; case 2
.short _0225D5E8 - _0225D5C4 - 2 ; case 3
.short _0225D5F4 - _0225D5C4 - 2 ; case 4
.short _0225D5F4 - _0225D5C4 - 2 ; case 5
2021-06-24 22:40:10 +00:00
_0225D5D0:
2022-03-12 16:55:51 +00:00
bl Fsys_TaskIsRunning
2021-06-24 22:40:10 +00:00
cmp r0, #0
bne _0225D5E0
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r5, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225D558
_0225D5E0:
ldr r0, [r4, #0x28]
2021-06-27 19:11:25 +00:00
bl sub_0202457C
2021-06-24 22:40:10 +00:00
pop {r3, r4, r5, pc}
_0225D5E8:
2021-06-27 18:48:56 +00:00
mov r1, #0
add r2, r1, #0
bl ov01_021F6A9C
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-24 22:40:10 +00:00
str r0, [r4]
_0225D5F4:
pop {r3, r4, r5, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225D5A0
thumb_func_start ov34_0225D5F8
2021-06-27 18:48:56 +00:00
ov34_0225D5F8: ; 0x0225D5F8
2021-06-24 22:40:10 +00:00
push {r3, r4, lr}
sub sp, #4
2021-06-27 18:48:56 +00:00
mov r1, #0xa5
lsl r1, r1, #2
add r4, r0, #0
mov r2, #0
add r0, r1, #0
2021-06-24 22:40:10 +00:00
str r2, [r4, r1]
2021-06-27 18:48:56 +00:00
sub r0, #0x10
2021-06-24 22:40:10 +00:00
strh r2, [r4, r0]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
sub r0, #0xe
2021-06-24 22:40:10 +00:00
strh r2, [r4, r0]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
sub r0, #0xc
2021-06-24 22:40:10 +00:00
strh r2, [r4, r0]
2021-06-27 18:48:56 +00:00
sub r1, #0xa
mov r0, #4
2021-06-24 22:40:10 +00:00
strh r2, [r4, r1]
2021-08-16 12:51:45 +00:00
bl ScrStrBufs_new
2021-06-24 22:40:10 +00:00
str r0, [r4, #0x18]
2021-06-27 18:48:56 +00:00
ldr r2, _0225D64C ; =0x000002E2
mov r0, #0
mov r1, #0x1b
mov r3, #4
2021-08-13 18:03:14 +00:00
bl NewMsgDataFromNarc
2021-06-24 22:40:10 +00:00
str r0, [r4, #0x1c]
2021-06-27 18:48:56 +00:00
mov r0, #4
add r3, r4, #0
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x49
mov r1, #3
mov r2, #1
add r3, #0x24
bl GfGfxLoader_GetScrnData
2021-06-24 22:40:10 +00:00
str r0, [r4, #0x20]
add sp, #4
pop {r3, r4, pc}
nop
2021-06-27 18:48:56 +00:00
_0225D64C: .word 0x000002E2
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225D5F8
thumb_func_start ov34_0225D650
2021-06-27 18:48:56 +00:00
ov34_0225D650: ; 0x0225D650
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x28
2021-06-27 18:48:56 +00:00
add r7, r0, #0
mov r0, #0xa0
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x24]
2021-06-27 18:48:56 +00:00
mov r0, #0xd0
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x20]
2021-06-27 18:48:56 +00:00
mov r0, #5
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
ldr r0, _0225D774 ; =0x00000265
add r5, r1, #0
2021-06-24 22:40:10 +00:00
str r2, [sp, #0x14]
2021-06-27 18:48:56 +00:00
mov r4, #0
mov r6, #3
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x18]
_0225D66E:
2021-06-27 18:48:56 +00:00
lsl r0, r6, #0x18
lsr r0, r0, #0x18
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #8
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0xc
2021-06-24 22:40:10 +00:00
str r0, [sp, #0xc]
ldr r0, [sp, #0x24]
2021-06-27 18:48:56 +00:00
add r2, r4, #4
lsl r0, r0, #0x10
lsr r0, r0, #0x10
lsl r2, r2, #0x18
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
add r1, r5, #0
lsr r2, r2, #0x18
mov r3, #1
2021-09-17 00:20:16 +00:00
bl AddWindowParameterized
2021-06-27 18:48:56 +00:00
add r0, r5, #0
mov r1, #0
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-08-13 14:06:39 +00:00
bl CopyWindowToVram
2021-06-24 22:40:10 +00:00
ldr r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
add r2, r4, #4
lsl r0, r0, #0x18
lsr r0, r0, #0x18
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0x1b
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #5
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0xc
2021-06-24 22:40:10 +00:00
str r0, [sp, #0xc]
ldr r0, [sp, #0x20]
2021-06-27 18:48:56 +00:00
add r1, r5, #0
lsl r0, r0, #0x10
lsr r0, r0, #0x10
lsl r2, r2, #0x18
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
add r1, #0x10
lsr r2, r2, #0x18
mov r3, #2
2021-09-17 00:20:16 +00:00
bl AddWindowParameterized
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0x10
mov r1, #0
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0x10
2021-08-13 14:06:39 +00:00
bl CopyWindowToVram
2021-06-27 18:48:56 +00:00
lsl r0, r6, #0x18
lsr r0, r0, #0x18
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0xf
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0xc
2021-06-24 22:40:10 +00:00
str r0, [sp, #0xc]
ldr r0, [sp, #0x18]
2021-06-27 18:48:56 +00:00
add r2, r4, #4
lsl r0, r0, #0x10
lsr r0, r0, #0x10
add r1, r5, #0
lsl r2, r2, #0x18
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
add r1, #0x20
lsr r2, r2, #0x18
mov r3, #0xc
2021-09-17 00:20:16 +00:00
bl AddWindowParameterized
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0x20
mov r1, #0
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0x20
2021-08-13 14:06:39 +00:00
bl CopyWindowToVram
2021-06-24 22:40:10 +00:00
ldr r0, [sp, #0x24]
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r0, #0x10
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x24]
ldr r0, [sp, #0x20]
2021-06-27 18:48:56 +00:00
add r6, r6, #7
add r0, #0x87
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x20]
ldr r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
add r5, #0x38
add r0, r0, #7
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x1c]
ldr r0, [sp, #0x18]
2021-06-27 18:48:56 +00:00
add r0, #0x1e
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x18]
cmp r4, #3
blt _0225D66E
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #7
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0xc
2021-06-24 22:40:10 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
ldr r0, _0225D778 ; =0x000002BF
2021-06-24 22:40:10 +00:00
ldr r1, [sp, #0x14]
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
mov r2, #4
mov r3, #8
2021-09-17 00:20:16 +00:00
bl AddWindowParameterized
2021-06-24 22:40:10 +00:00
ldr r0, [sp, #0x14]
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-24 22:40:10 +00:00
add sp, #0x28
pop {r3, r4, r5, r6, r7, pc}
nop
2021-06-27 18:48:56 +00:00
_0225D774: .word 0x00000265
_0225D778: .word 0x000002BF
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225D650
thumb_func_start ov34_0225D77C
2021-06-27 18:48:56 +00:00
ov34_0225D77C: ; 0x0225D77C
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
add r0, r1, #0
2021-08-13 18:03:14 +00:00
bl RemoveWindow
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-24 22:40:10 +00:00
_0225D788:
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0x10
2021-08-13 18:03:14 +00:00
bl RemoveWindow
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 r0, r5, #0
add r0, #0x20
2021-08-13 18:03:14 +00:00
bl RemoveWindow
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, #0x38
2021-06-24 22:40:10 +00:00
cmp r4, #3
blt _0225D788
pop {r3, r4, r5, pc}
thumb_func_end ov34_0225D77C
thumb_func_start ov34_0225D7A8
2021-06-27 18:48:56 +00:00
ov34_0225D7A8: ; 0x0225D7A8
2021-06-24 22:40:10 +00:00
push {r4, r5, r6, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r1, #0xaa
mov r2, #4
ldr r0, _0225D874 ; =ov34_0225D5A0
lsl r1, r1, #2
add r3, r2, #0
2021-06-27 19:11:25 +00:00
bl sub_02007200
2021-06-27 18:48:56 +00:00
add r6, r0, #0
2021-06-27 19:11:25 +00:00
bl sub_0201F988
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-24 22:40:10 +00:00
str r5, [r4, #0xc]
ldr r0, [r5, #8]
str r0, [r4, #0x14]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0x84
2021-06-24 22:40:10 +00:00
ldr r0, [r0]
str r0, [r4, #4]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r0, #0x80
2021-06-24 22:40:10 +00:00
ldr r0, [r0]
str r0, [r4, #8]
ldr r0, [r5, #0xc]
2021-09-06 13:41:18 +00:00
bl Sav2_PlayerData_GetProfileAddr
2021-06-24 22:40:10 +00:00
str r0, [r4, #0x10]
2021-06-27 18:48:56 +00:00
mov r0, #2
mov r1, #0xa9
2021-06-24 22:40:10 +00:00
str r0, [r4]
2021-06-27 18:48:56 +00:00
lsl r1, r1, #2
2021-06-24 22:40:10 +00:00
str r6, [r4, r1]
2021-06-27 18:48:56 +00:00
add r5, #0x84
2021-06-24 22:40:10 +00:00
ldr r2, [r5]
2021-06-27 18:48:56 +00:00
ldr r0, _0225D878 ; =0x000004DC
sub r1, #0x34
2021-06-24 22:40:10 +00:00
ldr r0, [r2, r0]
str r0, [r4, r1]
ldr r0, [r4, #0x14]
bl ov34_0225D924
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225D5F8
2021-06-27 18:48:56 +00:00
mov r0, #4
mov r1, #8
2021-09-18 16:36:50 +00:00
bl SetKeyRepeatTimers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E56C
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r1, #1
2021-06-24 22:40:10 +00:00
bl ov34_0225E5DC
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225DA50
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225DB20
2021-06-27 18:48:56 +00:00
mov r0, #1
mov r1, #4
2022-03-10 15:29:01 +00:00
bl FontID_SetAccessDirect
2021-06-27 18:48:56 +00:00
mov r2, #0x72
lsl r2, r2, #2
add r1, r4, r2
add r2, #0xac
2021-06-24 22:40:10 +00:00
ldr r0, [r4, #0x14]
2021-06-27 18:48:56 +00:00
add r2, r4, r2
2021-06-24 22:40:10 +00:00
bl ov34_0225D650
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225D520
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-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
mov r0, #2
mov r1, #1
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
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, #8
mov r1, #1
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E560
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +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
_0225D874: .word ov34_0225D5A0
_0225D878: .word 0x000004DC
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225D7A8
thumb_func_start ov34_0225D87C
2021-06-27 18:48:56 +00:00
ov34_0225D87C: ; 0x0225D87C
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r6, r0, #0
2021-06-24 22:40:10 +00:00
ldr r0, [r6]
2021-06-27 18:48:56 +00:00
sub r0, r0, #2
2021-06-24 22:40:10 +00:00
cmp r0, #2
bhi _0225D8F8
ldr r0, [r6, #0x14]
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #5
2021-06-24 22:40:10 +00:00
str r0, [r6]
2021-06-27 18:48:56 +00:00
mov r0, #1
2022-03-10 15:29:01 +00:00
bl FontID_SetAccessLazy
2021-06-27 18:48:56 +00:00
mov r0, #0x59
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldr r0, [r6, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200AEB0
2021-06-27 18:48:56 +00:00
mov r0, #0x5a
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldr r0, [r6, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200B0A8
2021-06-27 18:48:56 +00:00
mov r7, #0x55
mov r4, #0
add r5, r6, #0
lsl r7, r7, #2
2021-06-24 22:40:10 +00:00
_0225D8B2:
ldr r0, [r5, r7]
2021-06-27 19:11:25 +00:00
bl sub_0200A0D0
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, r5, #4
2021-06-24 22:40:10 +00:00
cmp r4, #4
blt _0225D8B2
ldr r0, [r6, #0x28]
2021-06-27 19:11:25 +00:00
bl sub_02024504
2021-06-24 22:40:10 +00:00
ldr r0, [r6, #0x1c]
2021-08-13 18:03:14 +00:00
bl DestroyMsgData
2021-06-24 22:40:10 +00:00
ldr r0, [r6, #0x18]
2021-08-16 12:51:45 +00:00
bl ScrStrBufs_delete
2021-06-27 18:48:56 +00:00
mov r1, #0x72
lsl r1, r1, #2
add r0, r6, r1
add r1, #0xac
add r1, r6, r1
2021-06-24 22:40:10 +00:00
bl ov34_0225D77C
ldr r0, [sp]
bl ov34_0225D900
ldr r0, [r6, #0x20]
2021-08-12 19:28:01 +00:00
bl FreeToHeap
2021-06-27 18:48:56 +00:00
mov r0, #0xa9
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldr r0, [r6, r0]
2021-06-27 19:11:25 +00:00
bl sub_02007234
2021-06-24 22:40:10 +00:00
pop {r3, r4, r5, r6, r7, pc}
_0225D8F8:
bl GF_AssertFail
2021-06-24 22:40:10 +00:00
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225D87C
thumb_func_start ov34_0225D900
2021-06-27 18:48:56 +00:00
ov34_0225D900: ; 0x0225D900
2021-06-24 22:40:10 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
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
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
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
mov r1, #7
2021-09-16 00:11:18 +00:00
bl FreeBgTilemapBuffer
2021-06-24 22:40:10 +00:00
pop {r4, pc}
thumb_func_end ov34_0225D900
thumb_func_start ov34_0225D924
2021-06-27 18:48:56 +00:00
ov34_0225D924: ; 0x0225D924
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, lr}
sub sp, #0x80
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225D900
ldr r5, _0225DA40 ; =ov34_0225E714
2021-06-24 22:40:10 +00:00
add r3, sp, #0x64
2021-06-27 18:48:56 +00:00
ldmia r5!, {r0, r1}
add r2, r3, #0
stmia r3!, {r0, r1}
ldmia r5!, {r0, r1}
stmia r3!, {r0, r1}
ldmia r5!, {r0, r1}
stmia r3!, {r0, r1}
2021-06-24 22:40:10 +00:00
ldr r0, [r5]
2021-06-27 18:48:56 +00:00
mov r1, #4
2021-06-24 22:40:10 +00:00
str r0, [r3]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
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
mov r0, #1
mov r1, #0
2022-01-13 18:39:25 +00:00
bl GX_EngineBToggleLayers
ldr r5, _0225DA44 ; =ov34_0225E6F8
2021-06-24 22:40:10 +00:00
add r3, sp, #0x48
2021-06-27 18:48:56 +00:00
ldmia r5!, {r0, r1}
add r2, r3, #0
stmia r3!, {r0, r1}
ldmia r5!, {r0, r1}
stmia r3!, {r0, r1}
ldmia r5!, {r0, r1}
stmia r3!, {r0, r1}
2021-06-24 22:40:10 +00:00
ldr r0, [r5]
2021-06-27 18:48:56 +00:00
mov r1, #5
2021-06-24 22:40:10 +00:00
str r0, [r3]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
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-09-18 16:36:50 +00:00
bl BgClearTilemapBufferAndCommit
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
ldr r5, _0225DA48 ; =ov34_0225E6C0
2021-06-24 22:40:10 +00:00
add r3, sp, #0x2c
2021-06-27 18:48:56 +00:00
ldmia r5!, {r0, r1}
add r2, r3, #0
stmia r3!, {r0, r1}
ldmia r5!, {r0, r1}
stmia r3!, {r0, r1}
ldmia r5!, {r0, r1}
stmia r3!, {r0, r1}
2021-06-24 22:40:10 +00:00
ldr r0, [r5]
2021-06-27 18:48:56 +00:00
mov r1, #6
2021-06-24 22:40:10 +00:00
str r0, [r3]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
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-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
ldr r5, _0225DA4C ; =ov34_0225E6DC
2021-06-24 22:40:10 +00:00
add r3, sp, #0x10
2021-06-27 18:48:56 +00:00
ldmia r5!, {r0, r1}
add r2, r3, #0
stmia r3!, {r0, r1}
ldmia r5!, {r0, r1}
stmia r3!, {r0, r1}
ldmia r5!, {r0, r1}
stmia r3!, {r0, r1}
2021-06-24 22:40:10 +00:00
ldr r0, [r5]
2021-06-27 18:48:56 +00:00
mov r1, #7
2021-06-24 22:40:10 +00:00
str r0, [r3]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
mov r3, #0
2021-09-16 00:11:18 +00:00
bl InitBgFromTemplate
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
mov r0, #0x60
mov r1, #0
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r2, #4
mov r0, #0x49
add r3, r1, #0
2021-06-24 22:40:10 +00:00
str r2, [sp, #4]
bl GfGfxLoader_GXLoadPal
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #5
lsl r0, r0, #0xa
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-24 22:40:10 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r0, #0x49
mov r1, #2
add r2, r4, #0
mov r3, #7
bl GfGfxLoader_LoadCharData
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #6
lsl r0, r0, #8
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r1, #4
mov r0, #0x49
add r2, r4, #0
mov r3, #7
2021-06-24 22:40:10 +00:00
str r1, [sp, #0xc]
bl GfGfxLoader_LoadScrnData
2021-06-27 18:48:56 +00:00
mov r0, #4
mov r1, #0
2021-06-27 19:11:25 +00:00
bl sub_0205B4EC
2021-06-24 22:40:10 +00:00
add sp, #0x80
pop {r3, r4, r5, pc}
nop
_0225DA40: .word ov34_0225E714
_0225DA44: .word ov34_0225E6F8
_0225DA48: .word ov34_0225E6C0
_0225DA4C: .word ov34_0225E6DC
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225D924
thumb_func_start ov34_0225DA50
2021-06-27 18:48:56 +00:00
ov34_0225DA50: ; 0x0225DA50
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x10
2021-06-27 18:48:56 +00:00
add r6, r0, #0
add r1, r6, #0
mov r0, #0xa
add r1, #0x2c
mov r2, #4
2021-06-27 19:11:25 +00:00
bl sub_02009F40
2021-06-27 18:48:56 +00:00
mov r7, #0x55
2021-06-24 22:40:10 +00:00
str r0, [r6, #0x28]
2021-06-27 18:48:56 +00:00
mov r4, #0
add r5, r6, #0
lsl r7, r7, #2
2021-06-24 22:40:10 +00:00
_0225DA6C:
2021-06-27 18:48:56 +00:00
mov r0, #1
add r1, r4, #0
mov r2, #4
2021-06-27 19:11:25 +00:00
bl sub_0200A090
2021-06-24 22:40:10 +00:00
str r0, [r5, r7]
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, r5, #4
2021-06-24 22:40:10 +00:00
cmp r4, #4
blt _0225DA6C
2021-06-27 18:48:56 +00:00
ldr r0, _0225DB1C ; =0x000003E7
mov r1, #0x49
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0x55
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldr r0, [r6, r0]
2021-06-27 18:48:56 +00:00
mov r2, #5
mov r3, #1
2021-06-27 19:11:25 +00:00
bl sub_0200A1D8
2021-06-27 18:48:56 +00:00
mov r1, #0x59
lsl r1, r1, #2
2021-06-24 22:40:10 +00:00
str r0, [r6, r1]
2021-06-27 18:48:56 +00:00
ldr r0, _0225DB1C ; =0x000003E7
mov r2, #1
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
str r2, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #4
sub r1, #0xc
2021-06-24 22:40:10 +00:00
str r0, [sp, #0xc]
ldr r0, [r6, r1]
2021-06-27 18:48:56 +00:00
mov r1, #0x49
mov r3, #0
2021-06-27 19:11:25 +00:00
bl sub_0200A234
2021-06-27 18:48:56 +00:00
mov r1, #0x5a
lsl r1, r1, #2
2021-06-24 22:40:10 +00:00
str r0, [r6, r1]
2021-06-27 18:48:56 +00:00
ldr r0, _0225DB1C ; =0x000003E7
sub r1, #0xc
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
ldr r0, [r6, r1]
2021-06-27 18:48:56 +00:00
mov r1, #0x49
mov r2, #6
mov r3, #1
2021-06-27 19:11:25 +00:00
bl sub_0200A294
2021-06-27 18:48:56 +00:00
mov r1, #0x5b
lsl r1, r1, #2
2021-06-24 22:40:10 +00:00
str r0, [r6, r1]
2021-06-27 18:48:56 +00:00
ldr r0, _0225DB1C ; =0x000003E7
sub r1, #0xc
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #3
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #4
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
ldr r0, [r6, r1]
2021-06-27 18:48:56 +00:00
mov r1, #0x49
mov r2, #7
mov r3, #1
2021-06-27 19:11:25 +00:00
bl sub_0200A294
2021-06-27 18:48:56 +00:00
mov r1, #0x17
lsl r1, r1, #4
2021-06-24 22:40:10 +00:00
str r0, [r6, r1]
2021-06-27 18:48:56 +00:00
sub r1, #0xc
2021-06-24 22:40:10 +00:00
ldr r0, [r6, r1]
2021-06-27 19:11:25 +00:00
bl sub_0200ADA4
2021-06-27 18:48:56 +00:00
mov r0, #0x5a
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldr r0, [r6, r0]
2021-06-27 19:11:25 +00:00
bl sub_0200B00C
2021-06-24 22:40:10 +00:00
add sp, #0x10
pop {r3, r4, r5, r6, r7, pc}
nop
2021-06-27 18:48:56 +00:00
_0225DB1C: .word 0x000003E7
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225DA50
thumb_func_start ov34_0225DB20
2021-06-27 18:48:56 +00:00
ov34_0225DB20: ; 0x0225DB20
2021-06-24 22:40:10 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0x5c
2021-06-27 18:48:56 +00:00
ldr r1, _0225DBF8 ; =0x000003E7
add r5, r0, #0
mov r0, #0
2021-06-24 22:40:10 +00:00
str r1, [sp]
2021-06-27 18:48:56 +00:00
mvn r0, r0
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-24 22:40:10 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
mov r3, #0x55
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
lsl r3, r3, #2
2021-06-24 22:40:10 +00:00
ldr r2, [r5, r3]
str r2, [sp, #0x14]
2021-06-27 18:48:56 +00:00
add r2, r3, #4
2021-06-24 22:40:10 +00:00
ldr r2, [r5, r2]
str r2, [sp, #0x18]
2021-06-27 18:48:56 +00:00
add r2, r3, #0
add r2, #8
2021-06-24 22:40:10 +00:00
ldr r2, [r5, r2]
str r2, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
add r2, r3, #0
add r2, #0xc
2021-06-24 22:40:10 +00:00
ldr r2, [r5, r2]
2021-06-27 18:48:56 +00:00
add r3, #0x20
2021-06-24 22:40:10 +00:00
str r2, [sp, #0x20]
str r0, [sp, #0x24]
str r0, [sp, #0x28]
2021-06-27 18:48:56 +00:00
add r0, r5, r3
add r2, r1, #0
add r3, r1, #0
2021-06-27 19:11:25 +00:00
bl sub_02009D48
2021-06-24 22:40:10 +00:00
ldr r0, [r5, #0x28]
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x2c]
2021-06-27 18:48:56 +00:00
mov r0, #0x5d
lsl r0, r0, #2
add r0, r5, r0
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x30]
2021-06-27 18:48:56 +00:00
mov r0, #1
lsl r0, r0, #0xc
mov r7, #0x3f
2021-06-24 22:40:10 +00:00
str r4, [sp, #0x3c]
str r0, [sp, #0x40]
str r0, [sp, #0x44]
str r0, [sp, #0x48]
add r0, sp, #0x2c
strh r4, [r0, #0x20]
2021-06-27 18:48:56 +00:00
mov r0, #2
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x54]
2021-06-27 18:48:56 +00:00
mov r0, #4
ldr r6, _0225DBFC ; =ov34_0225E6A0
2021-06-24 22:40:10 +00:00
str r4, [sp, #0x50]
str r0, [sp, #0x58]
2021-06-27 18:48:56 +00:00
lsl r7, r7, #0x18
2021-06-24 22:40:10 +00:00
_0225DB94:
2021-06-27 18:48:56 +00:00
mov r0, #0x3a
lsl r0, r0, #0xe
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x34]
ldr r0, [r6]
cmp r0, #0
ble _0225DBB0
2021-06-27 18:48:56 +00:00
lsl r0, r0, #0xc
2021-10-05 12:50:55 +00:00
bl _fflt
2021-06-27 18:48:56 +00:00
add r1, r0, #0
add r0, r7, #0
2021-08-11 14:29:41 +00:00
bl _fadd
2021-06-24 22:40:10 +00:00
b _0225DBBC
_0225DBB0:
2021-06-27 18:48:56 +00:00
lsl r0, r0, #0xc
2021-10-05 12:50:55 +00:00
bl _fflt
2021-06-27 18:48:56 +00:00
add r1, r7, #0
2021-08-11 14:29:41 +00:00
bl _fsub
2021-06-24 22:40:10 +00:00
_0225DBBC:
2021-10-05 12:50:55 +00:00
bl _ffix
2021-06-27 18:48:56 +00:00
mov r1, #3
lsl r1, r1, #0x12
add r0, r0, r1
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x38]
add r0, sp, #0x2c
2021-06-27 19:11:25 +00:00
bl sub_02024624
2021-06-27 18:48:56 +00:00
mov r1, #0x66
lsl r1, r1, #2
2021-06-24 22:40:10 +00:00
str r0, [r5, r1]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
2021-06-24 22:40:10 +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_0202484C
2021-06-27 18:48:56 +00:00
mov r0, #0x66
lsl r0, r0, #2
2021-06-24 22:40:10 +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_020248F0
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r6, r6, #4
add r5, r5, #4
2021-06-24 22:40:10 +00:00
cmp r4, #3
blt _0225DB94
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
_0225DBF8: .word 0x000003E7
_0225DBFC: .word ov34_0225E6A0
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225DB20
thumb_func_start ov34_0225DC00
2021-06-27 18:48:56 +00:00
ov34_0225DC00: ; 0x0225DC00
add r1, r1, #1
2021-06-24 22:40:10 +00:00
cmp r1, #0x1e
bne _0225DC08
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-24 22:40:10 +00:00
_0225DC08:
2021-06-27 18:48:56 +00:00
add r0, r1, #0
2021-06-24 22:40:10 +00:00
bx lr
thumb_func_end ov34_0225DC00
thumb_func_start ov34_0225DC0C
2021-06-27 18:48:56 +00:00
ov34_0225DC0C: ; 0x0225DC0C
add r0, r0, r1
2021-06-24 22:40:10 +00:00
cmp r0, #0x1e
blt _0225DC14
2021-06-27 18:48:56 +00:00
sub r0, #0x1e
2021-06-24 22:40:10 +00:00
_0225DC14:
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225DC0C
thumb_func_start ov34_0225DC18
2021-06-27 18:48:56 +00:00
ov34_0225DC18: ; 0x0225DC18
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x20
2021-06-27 18:48:56 +00:00
add r7, r1, #0
add r5, r0, #0
mov r0, #0x38
add r4, r7, #0
mul r4, r0
mov r0, #0x7e
lsl r0, r0, #2
add r6, r2, #0
add r1, r5, r0
2021-06-24 22:40:10 +00:00
ldr r0, [r6, #0x10]
2021-06-27 18:48:56 +00:00
mov r3, #7
2021-06-24 22:40:10 +00:00
str r0, [r1, r4]
2021-06-27 18:48:56 +00:00
mov r0, #0x20
2021-06-24 22:40:10 +00:00
str r0, [sp]
str r3, [sp, #4]
ldr r2, [r5, #0x24]
2021-06-27 18:48:56 +00:00
add r2, #0xc
2021-06-24 22:40:10 +00:00
str r2, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r2, #0
2021-06-24 22:40:10 +00:00
str r2, [sp, #0xc]
ldr r2, [r1, r4]
2021-06-27 18:48:56 +00:00
mov r1, #0x18
mul r1, r2
lsl r1, r1, #0x18
lsr r1, r1, #0x18
2021-06-24 22:40:10 +00:00
str r1, [sp, #0x10]
2021-06-27 18:48:56 +00:00
add r1, r3, #0
mul r3, r7
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x14]
2021-06-27 18:48:56 +00:00
mov r0, #0x30
add r3, r3, #2
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x18]
2021-06-27 18:48:56 +00:00
lsl r3, r3, #0x18
2021-06-24 22:40:10 +00:00
ldr r0, [r5, #0x14]
2021-06-27 18:48:56 +00:00
mov r2, #0
lsr r3, r3, #0x18
bl CopyToBgTilemapRect
2021-06-27 18:48:56 +00:00
mov r0, #0x72
lsl r0, r0, #2
add r7, r5, r0
add r0, r7, r4
mov r1, #0
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
mov r0, #0x76
lsl r0, r0, #2
add r0, r5, r0
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
add r0, r0, r4
mov r1, #0
2021-08-13 14:06:39 +00:00
bl FillWindowPixelBuffer
2021-06-27 18:48:56 +00:00
mov r0, #0x7a
lsl r0, r0, #2
add r5, r5, r0
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 r1, #1
2021-06-24 22:40:10 +00:00
str r1, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0xff
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _0225DCFC ; =0x000F0200
mov r3, #0
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
str r3, [sp, #0xc]
ldr r2, [r6]
2021-06-27 18:48:56 +00:00
add r0, r7, r4
2021-09-16 00:11:18 +00:00
bl AddTextPrinterParameterized2
2021-06-27 18:48:56 +00:00
mov r3, #0
2021-06-24 22:40:10 +00:00
str r3, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0xff
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _0225DD00 ; =0x00010200
mov r1, #1
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
str r3, [sp, #0xc]
ldr r0, [sp, #0x1c]
ldr r2, [r6, #4]
2021-06-27 18:48:56 +00:00
add r0, r0, r4
2021-09-16 00:11:18 +00:00
bl AddTextPrinterParameterized2
2021-06-27 18:48:56 +00:00
add r0, r7, r4
bl ScheduleWindowCopyToVram
2021-06-24 22:40:10 +00:00
ldr r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
add r0, r0, r4
bl ScheduleWindowCopyToVram
2021-06-24 22:40:10 +00:00
ldr r2, [r6, #8]
cmp r2, #0
beq _0225DCF0
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-24 22:40:10 +00:00
str r1, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #0xff
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _0225DCFC ; =0x000F0200
mov r3, #0
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r5, r4
2021-06-24 22:40:10 +00:00
str r3, [sp, #0xc]
2021-09-16 00:11:18 +00:00
bl AddTextPrinterParameterized2
2021-06-24 22:40:10 +00:00
_0225DCF0:
2021-06-27 18:48:56 +00:00
add r0, r5, r4
bl ScheduleWindowCopyToVram
2021-06-24 22:40:10 +00:00
add sp, #0x20
pop {r3, r4, r5, r6, r7, pc}
nop
2021-06-27 18:48:56 +00:00
_0225DCFC: .word 0x000F0200
_0225DD00: .word 0x00010200
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225DC18
thumb_func_start ov34_0225DD04
2021-06-27 18:48:56 +00:00
ov34_0225DD04: ; 0x0225DD04
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
mov r1, #0x27
add r5, r0, #0
lsl r1, r1, #4
add r0, r1, #0
2021-06-24 22:40:10 +00:00
ldr r2, [r5, r1]
2021-06-27 18:48:56 +00:00
add r1, #0x18
add r0, #0xdc
2021-06-24 22:40:10 +00:00
ldrh r1, [r5, r1]
ldr r0, [r2, r0]
bl ov34_0225DC0C
2021-06-27 18:48:56 +00:00
add r6, r0, #0
mov r0, #0x27
lsl r0, r0, #4
2021-06-24 22:40:10 +00:00
ldr r1, [r5, r0]
2021-06-27 18:48:56 +00:00
add r0, #0xd8
2021-06-24 22:40:10 +00:00
ldr r7, [r1, r0]
cmp r7, #3
ble _0225DD2E
2021-06-27 18:48:56 +00:00
mov r7, #3
2021-06-24 22:40:10 +00:00
_0225DD2E:
2021-06-27 18:48:56 +00:00
mov r0, #0xa2
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldrh r1, [r5, r0]
2021-06-27 18:48:56 +00:00
add r0, r0, #4
2021-06-24 22:40:10 +00:00
ldr r0, [r5, r0]
cmp r1, r0
beq _0225DD4C
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E560
2021-06-27 18:48:56 +00:00
mov r0, #0xa2
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldrh r1, [r5, r0]
2021-06-27 18:48:56 +00:00
add r0, r0, #4
2021-06-24 22:40:10 +00:00
str r1, [r5, r0]
_0225DD4C:
2021-06-27 18:48:56 +00:00
mov r0, #0xa5
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldr r0, [r5, r0]
cmp r0, #1
bne _0225DDB6
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-24 22:40:10 +00:00
cmp r7, #0
ble _0225DD84
_0225DD5C:
2021-06-27 18:48:56 +00:00
mov r2, #0x27
lsl r2, r2, #4
mov r3, #0x1c
2021-06-24 22:40:10 +00:00
ldr r2, [r5, r2]
2021-06-27 18:48:56 +00:00
mul r3, r6
add r0, r5, #0
add r1, r4, #0
add r2, r2, r3
2021-06-24 22:40:10 +00:00
bl ov34_0225DC18
2021-06-27 18:48:56 +00:00
mov r0, #0x27
lsl r0, r0, #4
2021-06-24 22:40:10 +00:00
ldr r0, [r5, r0]
2021-06-27 18:48:56 +00:00
add r1, r6, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225DC00
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r6, r0, #0
2021-06-24 22:40:10 +00:00
cmp r4, r7
blt _0225DD5C
_0225DD84:
ldr r0, [r5, #0x14]
2021-06-27 18:48:56 +00:00
mov r1, #7
bl GetBgTilemapBuffer
2021-06-27 18:48:56 +00:00
mov r1, #6
lsl r1, r1, #8
bl DC_FlushRange
2021-06-24 22:40:10 +00:00
ldr r0, [r5, #0x14]
2021-06-27 18:48:56 +00:00
mov r1, #7
bl GetBgTilemapBuffer
2021-06-27 18:48:56 +00:00
add r2, r0, #0
mov r0, #0
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r3, #6
2021-06-24 22:40:10 +00:00
ldr r0, [r5, #0x14]
2021-06-27 18:48:56 +00:00
mov r1, #7
lsl r3, r3, #8
bl BgCopyOrUncompressTilemapBufferRangeToVram
2021-06-27 18:48:56 +00:00
mov r0, #0xa5
mov r1, #0
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
str r1, [r5, r0]
_0225DDB6:
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov34_0225DD04
thumb_func_start ov34_0225DDB8
2021-06-27 18:48:56 +00:00
ov34_0225DDB8: ; 0x0225DDB8
2021-06-24 22:40:10 +00:00
push {r3, r4, lr}
sub sp, #0xc
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0x3a
lsl r0, r0, #0xe
2021-06-24 22:40:10 +00:00
str r0, [sp]
cmp r1, #0
ble _0225DDDA
2021-06-27 18:48:56 +00:00
lsl r0, r1, #0xc
2021-10-05 12:50:55 +00:00
bl _fflt
2021-06-27 18:48:56 +00:00
add r1, r0, #0
mov r0, #0x3f
lsl r0, r0, #0x18
2021-08-11 14:29:41 +00:00
bl _fadd
2021-06-24 22:40:10 +00:00
b _0225DDE8
_0225DDDA:
2021-06-27 18:48:56 +00:00
lsl r0, r1, #0xc
2021-10-05 12:50:55 +00:00
bl _fflt
2021-06-27 18:48:56 +00:00
mov r1, #0x3f
lsl r1, r1, #0x18
2021-08-11 14:29:41 +00:00
bl _fsub
2021-06-24 22:40:10 +00:00
_0225DDE8:
2021-10-05 12:50:55 +00:00
bl _ffix
2021-06-27 18:48:56 +00:00
mov r1, #3
lsl r1, r1, #0x12
add r0, r0, r1
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
add r1, sp, #0
2021-06-27 19:11:25 +00:00
bl sub_020247D4
2021-06-24 22:40:10 +00:00
add sp, #0xc
pop {r3, r4, pc}
thumb_func_end ov34_0225DDB8
thumb_func_start ov34_0225DE04
2021-06-27 18:48:56 +00:00
ov34_0225DE04: ; 0x0225DE04
2021-06-24 22:40:10 +00:00
push {r4, lr}
2021-06-27 18:48:56 +00:00
mov r1, #0x27
add r4, r0, #0
lsl r1, r1, #4
add r0, r1, #0
2021-06-24 22:40:10 +00:00
ldr r2, [r4, r1]
2021-06-27 18:48:56 +00:00
add r0, #0xd8
2021-06-24 22:40:10 +00:00
ldr r2, [r2, r0]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
add r0, #0x14
2021-06-24 22:40:10 +00:00
strh r2, [r4, r0]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
add r0, #0x14
2021-06-24 22:40:10 +00:00
ldrh r0, [r4, r0]
cmp r0, #3
bls _0225DE42
2021-06-27 18:48:56 +00:00
add r0, r1, #0
add r0, #0x16
2021-06-24 22:40:10 +00:00
ldrh r0, [r4, r0]
cmp r0, #3
bhi _0225DE42
2021-06-27 18:48:56 +00:00
add r0, r1, #0
mov r2, #1
add r0, #0x1a
2021-06-24 22:40:10 +00:00
strh r2, [r4, r0]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
add r0, #0x14
2021-06-24 22:40:10 +00:00
ldrh r0, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, #0x18
sub r0, r0, #3
2021-06-24 22:40:10 +00:00
strh r0, [r4, r1]
_0225DE42:
2021-06-27 18:48:56 +00:00
mov r1, #0x1a
lsl r1, r1, #4
2021-06-24 22:40:10 +00:00
ldr r0, [r4, r1]
2021-06-27 18:48:56 +00:00
add r1, #0xea
2021-06-24 22:40:10 +00:00
ldrh r1, [r4, r1]
2021-06-27 19:11:25 +00:00
bl sub_02024830
2021-06-27 18:48:56 +00:00
ldr r0, _0225DE90 ; =0x0000028A
2021-06-24 22:40:10 +00:00
ldrh r0, [r4, r0]
cmp r0, #0
beq _0225DE84
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E5E4
cmp r0, #1
bne _0225DE84
2021-06-27 18:48:56 +00:00
mov r1, #0xa2
lsl r1, r1, #2
2021-06-24 22:40:10 +00:00
ldrh r2, [r4, r1]
2021-06-27 18:48:56 +00:00
sub r1, r1, #4
2021-06-24 22:40:10 +00:00
ldrh r1, [r4, r1]
2021-06-27 18:48:56 +00:00
mov r0, #0x60
mul r0, r2
sub r1, r1, #3
2021-08-11 14:29:41 +00:00
bl _s32_div_f
2021-06-27 18:48:56 +00:00
add r1, r0, #0
mov r0, #0x1a
lsl r0, r0, #4
2021-06-24 22:40:10 +00:00
ldr r0, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, #0x30
2021-06-24 22:40:10 +00:00
bl ov34_0225DDB8
_0225DE84:
2021-06-27 18:48:56 +00:00
mov r0, #0xa1
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldrh r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r0, r0, #2
2021-06-24 22:40:10 +00:00
strh r1, [r4, r0]
pop {r4, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-27 18:48:56 +00:00
_0225DE90: .word 0x0000028A
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225DE04
thumb_func_start ov34_0225DE94
2021-06-27 18:48:56 +00:00
ov34_0225DE94: ; 0x0225DE94
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r4, r0, #0
ldr r0, _0225E00C ; =ov34_0225E730
2021-06-27 19:11:25 +00:00
bl sub_02025204
2021-06-27 18:48:56 +00:00
add r7, r0, #0
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E5D4
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r0, #0
mvn r0, r0
2021-06-24 22:40:10 +00:00
cmp r7, r0
beq _0225DEDA
cmp r7, #6
bhi _0225DF5E
2021-06-27 18:48:56 +00:00
add r0, r7, r7
2021-06-24 22:40:10 +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-24 22:40:10 +00:00
add pc, r0
2021-06-27 18:48:56 +00:00
_0225DEC0: ; jump table
.short _0225DECE - _0225DEC0 - 2 ; case 0
.short _0225DF00 - _0225DEC0 - 2 ; case 1
.short _0225DF5E - _0225DEC0 - 2 ; case 2
.short _0225DF5E - _0225DEC0 - 2 ; case 3
.short _0225DF5E - _0225DEC0 - 2 ; case 4
.short _0225DF36 - _0225DEC0 - 2 ; case 5
.short _0225DF40 - _0225DEC0 - 2 ; case 6
2021-06-24 22:40:10 +00:00
_0225DECE:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r7, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E5EC
cmp r5, #1
beq _0225DEDC
_0225DEDA:
b _0225E006
_0225DEDC:
2021-06-27 18:48:56 +00:00
mov r0, #0xa2
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldrh r0, [r4, r0]
cmp r0, #0
beq _0225DEF6
2021-06-27 18:48:56 +00:00
ldr r0, _0225E010 ; =0x000005E5
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
mov r0, #0xa2
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldrh r1, [r4, r0]
2021-06-27 18:48:56 +00:00
sub r1, r1, #1
2021-06-24 22:40:10 +00:00
strh r1, [r4, r0]
_0225DEF6:
2021-06-27 18:48:56 +00:00
mov r0, #0x71
sub r1, r7, #2
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
str r1, [r4, r0]
b _0225E006
_0225DF00:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
add r1, r7, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E5EC
cmp r5, #1
bne _0225E006
2021-06-27 18:48:56 +00:00
mov r0, #0xa2
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldrh r1, [r4, r0]
2021-06-27 18:48:56 +00:00
sub r0, r0, #4
2021-06-24 22:40:10 +00:00
ldrh r0, [r4, r0]
2021-06-27 18:48:56 +00:00
sub r0, r0, #3
2021-06-24 22:40:10 +00:00
cmp r1, r0
bge _0225DF2C
2021-06-27 18:48:56 +00:00
ldr r0, _0225E010 ; =0x000005E5
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
mov r0, #0xa2
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldrh r1, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-24 22:40:10 +00:00
strh r1, [r4, r0]
_0225DF2C:
2021-06-27 18:48:56 +00:00
mov r0, #0x71
sub r1, r7, #2
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
str r1, [r4, r0]
b _0225E006
_0225DF36:
2021-06-27 18:48:56 +00:00
mov r0, #0x71
sub r1, r7, #2
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
str r1, [r4, r0]
b _0225E006
_0225DF40:
2022-02-01 20:44:20 +00:00
ldr r0, _0225E014 ; =gSystem + 0x40
2021-06-24 22:40:10 +00:00
ldrh r0, [r0, #0x24]
cmp r0, #0
beq _0225E006
ldr r0, [r4, #0xc]
bl ov01_021F6B10
2021-06-24 22:40:10 +00:00
cmp r0, #1
bne _0225E006
2021-06-27 18:48:56 +00:00
ldr r0, _0225E018 ; =0x000005FC
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
mov r0, #3
2021-06-24 22:40:10 +00:00
str r0, [r4]
b _0225E006
_0225DF5E:
2022-02-01 20:44:20 +00:00
ldr r0, _0225E014 ; =gSystem + 0x40
2021-06-24 22:40:10 +00:00
ldrh r0, [r0, #0x24]
cmp r0, #0
beq _0225E006
2021-06-27 18:48:56 +00:00
mov r2, #0x27
lsl r2, r2, #4
add r1, r2, #0
2021-06-24 22:40:10 +00:00
ldr r0, [r4, r2]
2021-06-27 18:48:56 +00:00
add r1, #0xd8
2021-06-24 22:40:10 +00:00
ldr r3, [r0, r1]
2021-06-27 18:48:56 +00:00
sub r1, r7, #1
2021-06-24 22:40:10 +00:00
cmp r3, r1
blt _0225DFFE
2021-06-27 18:48:56 +00:00
add r1, r2, #0
add r1, #0xdc
add r2, #0x18
2021-06-24 22:40:10 +00:00
ldr r0, [r0, r1]
ldrh r1, [r4, r2]
2021-06-27 18:48:56 +00:00
add r1, r1, r7
sub r1, r1, #2
2021-06-24 22:40:10 +00:00
bl ov34_0225DC0C
2021-06-27 18:48:56 +00:00
mov r1, #0x1c
mov r5, #0
mul r1, r0
add r6, r5, #0
2021-06-24 22:40:10 +00:00
str r1, [sp]
_0225DF94:
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-27 19:11:25 +00:00
bl sub_02035754
2021-06-24 22:40:10 +00:00
cmp r0, #0
beq _0225DFD0
ldr r1, [r4, #4]
2021-06-27 18:48:56 +00:00
add r0, #0x50
add r1, r1, r6
2021-06-24 22:40:10 +00:00
ldrb r1, [r1, #0xd]
cmp r1, #2
bne _0225DFD0
2021-06-27 18:48:56 +00:00
mov r1, #0x27
lsl r1, r1, #4
2021-06-24 22:40:10 +00:00
ldr r2, [r4, r1]
ldr r1, [sp]
ldr r0, [r0]
2021-06-27 18:48:56 +00:00
add r1, r1, r2
2021-06-24 22:40:10 +00:00
ldr r1, [r1, #0xc]
cmp r0, r1
bne _0225DFD0
2021-06-27 18:48:56 +00:00
ldr r0, _0225E010 ; =0x000005E5
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-27 18:48:56 +00:00
mov r1, #0x18
2021-06-24 22:40:10 +00:00
ldr r2, [r4, #4]
2021-06-27 18:48:56 +00:00
mul r1, r5
mov r0, #1
add r1, r2, r1
2021-06-24 22:40:10 +00:00
strb r0, [r1, #0xf]
b _0225DFD8
_0225DFD0:
2021-06-27 18:48:56 +00:00
add r5, r5, #1
add r6, #0x18
2021-06-24 22:40:10 +00:00
cmp r5, #0xa
blt _0225DF94
_0225DFD8:
2021-06-27 19:11:25 +00:00
bl sub_02035784
2021-09-06 13:41:18 +00:00
bl PlayerProfile_GetTrainerID
2021-06-27 18:48:56 +00:00
mov r1, #0x27
lsl r1, r1, #4
2021-06-24 22:40:10 +00:00
ldr r2, [r4, r1]
ldr r1, [sp]
2021-06-27 18:48:56 +00:00
add r1, r2, r1
2021-06-24 22:40:10 +00:00
ldr r1, [r1, #0xc]
cmp r1, r0
bne _0225DFFE
2021-06-27 18:48:56 +00:00
ldr r0, _0225E010 ; =0x000005E5
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-24 22:40:10 +00:00
ldr r1, [r4, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _0225E01C ; =0x000004BF
mov r2, #1
2021-06-24 22:40:10 +00:00
strb r2, [r1, r0]
_0225DFFE:
2021-06-27 18:48:56 +00:00
mov r0, #0x71
sub r1, r7, #2
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
str r1, [r4, r0]
_0225E006:
2021-06-27 18:48:56 +00:00
add r0, r7, #0
2021-06-24 22:40:10 +00:00
pop {r3, r4, r5, r6, r7, pc}
nop
_0225E00C: .word ov34_0225E730
2021-06-27 18:48:56 +00:00
_0225E010: .word 0x000005E5
2022-02-01 20:44:20 +00:00
_0225E014: .word gSystem + 0x40
2021-06-27 18:48:56 +00:00
_0225E018: .word 0x000005FC
_0225E01C: .word 0x000004BF
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225DE94
thumb_func_start ov34_0225E020
2021-06-27 18:48:56 +00:00
ov34_0225E020: ; 0x0225E020
2021-06-24 22:40:10 +00:00
push {r4, r5, r6, r7, lr}
sub sp, #0xc
2021-06-27 18:48:56 +00:00
add r7, r0, #0
ldr r0, _0225E0E0 ; =ov34_0225E6AC
2021-06-27 19:11:25 +00:00
bl sub_02025204
2021-06-27 18:48:56 +00:00
mov r1, #0
mvn r1, r1
2021-06-24 22:40:10 +00:00
str r0, [sp]
cmp r0, r1
beq _0225E0D0
cmp r0, #0
bne _0225E09A
2021-06-27 18:48:56 +00:00
add r0, r7, #0
mov r1, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E5DC
add r0, sp, #8
add r1, sp, #4
2021-06-27 19:11:25 +00:00
bl sub_02025364
2021-06-27 18:48:56 +00:00
mov r0, #0x1a
lsl r0, r0, #4
2021-06-24 22:40:10 +00:00
ldr r0, [r7, r0]
ldr r1, [sp, #4]
bl ov34_0225DDB8
2021-06-27 18:48:56 +00:00
mov r0, #0xa1
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldrh r0, [r7, r0]
cmp r0, #3
bls _0225E0D8
2021-06-27 18:48:56 +00:00
sub r4, r0, #2
mov r0, #0x60
add r1, r4, #0
2021-08-11 14:29:41 +00:00
bl _s32_div_f
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-24 22:40:10 +00:00
cmp r4, #0
ble _0225E0D8
ldr r5, [sp, #4]
2021-06-27 18:48:56 +00:00
add r2, r1, #0
add r3, r1, #0
2021-06-24 22:40:10 +00:00
_0225E076:
2021-06-27 18:48:56 +00:00
add r6, r2, #0
add r6, #0x30
2021-06-24 22:40:10 +00:00
cmp r5, r6
blo _0225E08E
2021-06-27 18:48:56 +00:00
add r6, r3, r0
add r6, #0x30
2021-06-24 22:40:10 +00:00
cmp r5, r6
bhs _0225E08E
2021-06-27 18:48:56 +00:00
mov r0, #0xa2
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
strh r1, [r7, r0]
b _0225E0D8
_0225E08E:
2021-06-27 18:48:56 +00:00
add r1, r1, #1
add r2, r2, r0
add r3, r3, r0
2021-06-24 22:40:10 +00:00
cmp r1, r4
blt _0225E076
b _0225E0D8
_0225E09A:
2021-06-27 18:48:56 +00:00
mov r1, #0x27
lsl r1, r1, #4
add r0, r1, #0
2021-06-24 22:40:10 +00:00
ldr r2, [r7, r1]
2021-06-27 18:48:56 +00:00
add r0, #0xd8
2021-06-24 22:40:10 +00:00
ldr r2, [r2, r0]
ldr r0, [sp]
cmp r2, r0
blt _0225E0D8
2021-06-27 18:48:56 +00:00
add r0, r1, #0
sub r0, #0xac
2021-06-24 22:40:10 +00:00
ldr r2, [r7, r0]
ldr r0, [sp]
2021-06-27 18:48:56 +00:00
sub r3, r0, #1
2021-06-24 22:40:10 +00:00
cmp r2, r3
bne _0225E0D8
2021-06-27 18:48:56 +00:00
sub r1, #0x74
add r2, r7, r1
mov r0, #0x38
add r1, r3, #0
mul r1, r0
2021-06-24 22:40:10 +00:00
ldr r0, [r2, r1]
cmp r0, #5
bge _0225E0D8
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-24 22:40:10 +00:00
str r0, [r2, r1]
b _0225E0D8
_0225E0D0:
2021-06-27 18:48:56 +00:00
add r0, r7, #0
mov r1, #1
2021-06-24 22:40:10 +00:00
bl ov34_0225E5DC
_0225E0D8:
ldr r0, [sp]
add sp, #0xc
pop {r4, r5, r6, r7, pc}
nop
_0225E0E0: .word ov34_0225E6AC
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E020
thumb_func_start ov34_0225E0E4
2021-06-27 18:48:56 +00:00
ov34_0225E0E4: ; 0x0225E0E4
2021-06-24 22:40:10 +00:00
push {r4, lr}
2022-02-01 20:44:20 +00:00
ldr r1, _0225E15C ; =gSystem
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-24 22:40:10 +00:00
ldr r3, [r1, #0x44]
2021-06-27 18:48:56 +00:00
mov r1, #2
lsl r1, r1, #8
add r2, r3, #0
2021-06-24 22:40:10 +00:00
tst r2, r1
beq _0225E126
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E5EC
2022-02-01 20:44:20 +00:00
ldr r0, _0225E15C ; =gSystem
2021-06-27 18:48:56 +00:00
mov r1, #2
2021-06-24 22:40:10 +00:00
ldr r0, [r0, #0x4c]
2021-06-27 18:48:56 +00:00
lsl r1, r1, #8
2021-06-24 22:40:10 +00:00
tst r0, r1
beq _0225E158
2021-06-27 18:48:56 +00:00
add r0, r1, #0
add r0, #0x88
2021-06-24 22:40:10 +00:00
ldrh r0, [r4, r0]
cmp r0, #0
beq _0225E158
2021-06-27 18:48:56 +00:00
add r0, r1, #0
add r0, #0x88
2021-06-24 22:40:10 +00:00
ldrh r0, [r4, r0]
2021-06-27 18:48:56 +00:00
add r1, #0x88
sub r0, r0, #1
2021-06-24 22:40:10 +00:00
strh r0, [r4, r1]
2021-06-27 18:48:56 +00:00
ldr r0, _0225E160 ; =0x000005E5
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-24 22:40:10 +00:00
pop {r4, pc}
_0225E126:
2021-06-27 18:48:56 +00:00
lsr r1, r1, #1
2021-06-24 22:40:10 +00:00
tst r1, r3
beq _0225E158
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-24 22:40:10 +00:00
bl ov34_0225E5EC
2022-02-01 20:44:20 +00:00
ldr r0, _0225E15C ; =gSystem
2021-06-24 22:40:10 +00:00
ldr r1, [r0, #0x4c]
2021-06-27 18:48:56 +00:00
mov r0, #1
lsl r0, r0, #8
2021-06-24 22:40:10 +00:00
tst r0, r1
beq _0225E158
2021-06-27 18:48:56 +00:00
mov r0, #0xa2
lsl r0, r0, #2
sub r1, r0, #4
2021-06-24 22:40:10 +00:00
ldrh r1, [r4, r1]
ldrh r2, [r4, r0]
2021-06-27 18:48:56 +00:00
sub r1, r1, #3
2021-06-24 22:40:10 +00:00
cmp r2, r1
bge _0225E158
2021-06-27 18:48:56 +00:00
add r1, r2, #1
2021-06-24 22:40:10 +00:00
strh r1, [r4, r0]
2021-06-27 18:48:56 +00:00
ldr r0, _0225E160 ; =0x000005E5
2021-08-13 18:03:14 +00:00
bl PlaySE
2021-06-24 22:40:10 +00:00
_0225E158:
pop {r4, pc}
nop
2022-02-01 20:44:20 +00:00
_0225E15C: .word gSystem
2021-06-27 18:48:56 +00:00
_0225E160: .word 0x000005E5
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E0E4
thumb_func_start ov34_0225E164
2021-06-27 18:48:56 +00:00
ov34_0225E164: ; 0x0225E164
2021-06-24 22:40:10 +00:00
push {r4, r5, r6, lr}
sub sp, #8
2021-06-27 18:48:56 +00:00
add r5, r0, #0
2021-06-24 22:40:10 +00:00
ldr r0, [r5, #0xc]
2021-06-27 18:48:56 +00:00
mov r4, #0
mvn r4, r4
2022-03-12 16:55:51 +00:00
bl Fsys_TaskIsRunning
2021-06-24 22:40:10 +00:00
cmp r0, #0
bne _0225E19A
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225DE94
2021-06-27 18:48:56 +00:00
add r6, r0, #0
add r0, r5, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E020
2021-06-27 18:48:56 +00:00
add r4, r0, #0
mov r0, #0
mvn r0, r0
2021-06-24 22:40:10 +00:00
cmp r6, r0
bne _0225E19A
cmp r4, r0
bne _0225E19A
2021-06-27 18:48:56 +00:00
add r0, r5, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E0E4
_0225E19A:
2021-06-27 18:48:56 +00:00
mov r2, #0x27
lsl r2, r2, #4
add r0, r2, #0
2021-06-24 22:40:10 +00:00
ldr r1, [r5, r2]
2021-06-27 18:48:56 +00:00
add r0, #0xd8
2021-06-24 22:40:10 +00:00
ldr r0, [r1, r0]
2021-06-27 18:48:56 +00:00
sub r3, r4, #1
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
add r0, r2, #0
add r0, #0x20
add r0, r5, r0
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
sub r2, #0xa8
2021-06-24 22:40:10 +00:00
ldr r0, [r5, #0x14]
ldr r1, [r5, #0x24]
2021-06-27 18:48:56 +00:00
add r2, r5, r2
2021-06-24 22:40:10 +00:00
bl ov34_0225E1C4
add sp, #8
pop {r4, r5, r6, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E164
thumb_func_start ov34_0225E1C4
2021-06-27 18:48:56 +00:00
ov34_0225E1C4: ; 0x0225E1C4
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x28
str r0, [sp, #0x1c]
ldr r0, [sp, #0x40]
str r1, [sp, #0x20]
2021-06-27 18:48:56 +00:00
add r5, r2, #0
mov r1, #0
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x40]
ldr r4, [sp, #0x44]
cmp r0, #3
ble _0225E1DE
2021-06-27 18:48:56 +00:00
mov r0, #3
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x40]
_0225E1DE:
ldr r2, [sp, #0x40]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-24 22:40:10 +00:00
cmp r2, #0
ble _0225E204
2021-06-27 18:48:56 +00:00
add r2, r5, #0
2021-06-24 22:40:10 +00:00
_0225E1E8:
cmp r3, r0
beq _0225E1F6
ldr r6, [r2, #0x34]
cmp r6, #0
beq _0225E1F6
2021-06-27 18:48:56 +00:00
sub r6, r6, #1
2021-06-24 22:40:10 +00:00
str r6, [r2, #0x34]
_0225E1F6:
ldr r6, [r2, #0x34]
2021-06-27 18:48:56 +00:00
add r0, r0, #1
add r1, r1, r6
2021-06-24 22:40:10 +00:00
ldr r6, [sp, #0x40]
2021-06-27 18:48:56 +00:00
add r2, #0x38
2021-06-24 22:40:10 +00:00
cmp r0, r6
blt _0225E1E8
_0225E204:
cmp r1, #0
bne _0225E214
ldr r0, [r4]
cmp r0, #0
bne _0225E214
add sp, #0x28
str r1, [r4]
pop {r3, r4, r5, r6, r7, pc}
_0225E214:
ldr r0, [sp, #0x40]
str r1, [r4]
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-24 22:40:10 +00:00
cmp r0, #0
ble _0225E28A
ldr r0, [sp, #0x20]
2021-06-27 18:48:56 +00:00
mov r7, #2
add r0, #0xc
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x20]
_0225E226:
ldr r1, [r5, #0x34]
2021-06-27 18:48:56 +00:00
lsl r3, r7, #0x18
lsr r0, r1, #0x1f
add r0, r1, r0
asr r0, r0, #1
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x24]
2021-06-27 18:48:56 +00:00
mov r0, #0x20
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r0, #7
2021-06-24 22:40:10 +00:00
str r0, [sp, #4]
ldr r0, [sp, #0x20]
2021-06-27 18:48:56 +00:00
lsr r3, r3, #0x18
2021-06-24 22:40:10 +00:00
str r0, [sp, #8]
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-24 22:40:10 +00:00
str r0, [sp, #0xc]
ldr r0, [sp, #0x24]
ldr r1, [r5, #0x30]
2021-06-27 18:48:56 +00:00
lsl r2, r0, #3
mov r0, #0x18
mul r0, r1
add r0, r2, r0
lsl r0, r0, #0x18
lsr r0, r0, #0x18
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x10]
2021-06-27 18:48:56 +00:00
mov r0, #0x20
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x14]
2021-06-27 18:48:56 +00:00
mov r0, #0x30
2021-06-24 22:40:10 +00:00
str r0, [sp, #0x18]
ldr r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
mov r1, #7
mov r2, #0
bl CopyToBgTilemapRect
2021-06-24 22:40:10 +00:00
ldr r3, [sp, #0x24]
2021-06-27 18:48:56 +00:00
add r1, r4, #4
lsl r6, r3, #2
ldr r3, _0225E2B8 ; =_0225E694
lsl r1, r1, #0x18
2021-06-24 22:40:10 +00:00
ldr r0, [sp, #0x1c]
ldr r3, [r3, r6]
2021-06-27 18:48:56 +00:00
lsr r1, r1, #0x18
mov r2, #3
bl BgSetPosTextAndCommit
2021-06-24 22:40:10 +00:00
ldr r0, [sp, #0x40]
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, #0x38
add r7, r7, #7
2021-06-24 22:40:10 +00:00
cmp r4, r0
blt _0225E226
_0225E28A:
ldr r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
mov r1, #7
bl GetBgTilemapBuffer
2021-06-27 18:48:56 +00:00
mov r1, #6
lsl r1, r1, #8
bl DC_FlushRange
2021-06-24 22:40:10 +00:00
ldr r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
mov r1, #7
bl GetBgTilemapBuffer
2021-06-27 18:48:56 +00:00
add r2, r0, #0
mov r0, #0
2021-06-24 22:40:10 +00:00
str r0, [sp]
2021-06-27 18:48:56 +00:00
mov r3, #6
2021-06-24 22:40:10 +00:00
ldr r0, [sp, #0x1c]
2021-06-27 18:48:56 +00:00
mov r1, #7
lsl r3, r3, #8
bl BgCopyOrUncompressTilemapBufferRangeToVram
2021-06-24 22:40:10 +00:00
add sp, #0x28
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
_0225E2B8: .word _0225E694
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E1C4
thumb_func_start ov34_0225E2BC
2021-06-27 18:48:56 +00:00
ov34_0225E2BC: ; 0x0225E2BC
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x10
2021-06-27 18:48:56 +00:00
add r6, r0, #0
mov r4, #0
2021-06-24 22:40:10 +00:00
ldr r0, [sp, #0x28]
2021-06-27 18:48:56 +00:00
add r5, r1, #0
add r7, r2, #0
2021-06-24 22:40:10 +00:00
str r3, [sp, #8]
str r4, [sp, #0xc]
2021-09-06 13:41:18 +00:00
bl PlayerProfile_GetTrainerID
2021-06-24 22:40:10 +00:00
cmp r5, r0
beq _0225E2E0
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r1, r5, #0
2022-02-26 01:47:48 +00:00
bl PalPad_PlayerIdIsFriendOrMutual
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-24 22:40:10 +00:00
_0225E2E0:
cmp r4, #0
ble _0225E340
cmp r4, #1
bne _0225E2F4
ldr r2, [sp, #0x28]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
mov r1, #0
2021-08-16 12:51:45 +00:00
bl BufferPlayersName
2021-06-24 22:40:10 +00:00
b _0225E332
_0225E2F4:
cmp r4, #2
blt _0225E332
2021-06-27 18:48:56 +00:00
sub r5, r4, #2
mov r0, #0xa
mov r1, #0x57
2021-08-14 00:11:40 +00:00
bl String_ctor
2021-06-27 18:48:56 +00:00
add r4, r0, #0
add r0, r6, #0
add r1, r5, #0
2022-02-26 01:47:48 +00:00
bl PalPad_GetNthEntry
2021-06-27 18:48:56 +00:00
add r1, r0, #0
add r0, r4, #0
2021-08-16 12:51:45 +00:00
bl CopyU16ArrayToString
2021-06-27 18:48:56 +00:00
add r0, r6, #0
add r1, r5, #0
2022-02-26 01:47:48 +00:00
bl PalPadEntry_GetFromUnk68Array
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-24 22:40:10 +00:00
str r1, [sp]
str r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
add r2, r4, #0
add r3, r1, #0
2021-08-16 12:51:45 +00:00
bl BufferString
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-24 22:40:10 +00:00
_0225E332:
ldr r1, [sp, #8]
2021-06-27 18:48:56 +00:00
add r0, r7, #0
mov r2, #0xd0
mov r3, #0x57
2021-08-14 00:11:40 +00:00
bl ReadMsgData_ExpandPlaceholders
2021-06-24 22:40:10 +00:00
str r0, [sp, #0xc]
_0225E340:
ldr r0, [sp, #0xc]
add sp, #0x10
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E2BC
thumb_func_start ov34_0225E348
2021-06-27 18:48:56 +00:00
ov34_0225E348: ; 0x0225E348
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
sub sp, #0x10
2021-06-27 18:48:56 +00:00
add r7, r0, #0
add r6, r2, #0
2021-06-24 22:40:10 +00:00
ldr r2, [r7, #4]
2021-06-27 18:48:56 +00:00
ldr r0, _0225E424 ; =0x000004D8
2021-06-24 22:40:10 +00:00
str r1, [sp, #4]
2021-06-27 18:48:56 +00:00
mov r1, #0x27
2021-06-24 22:40:10 +00:00
ldr r0, [r2, r0]
2021-06-27 18:48:56 +00:00
lsl r1, r1, #4
2021-06-24 22:40:10 +00:00
str r0, [sp, #0xc]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
2021-06-24 22:40:10 +00:00
ldr r4, [r7, r1]
2021-06-27 18:48:56 +00:00
add r0, #0xd8
2021-06-24 22:40:10 +00:00
ldr r0, [r4, r0]
str r3, [sp, #8]
cmp r0, #0x1e
bne _0225E370
2021-06-27 18:48:56 +00:00
add r1, #0xdc
2021-06-24 22:40:10 +00:00
b _0225E372
_0225E370:
2021-06-27 18:48:56 +00:00
add r1, #0xd8
2021-06-24 22:40:10 +00:00
_0225E372:
2021-06-27 18:48:56 +00:00
add r5, r4, r1
2021-06-24 22:40:10 +00:00
ldr r1, [r5]
2021-06-27 18:48:56 +00:00
mov r0, #0x1c
mul r0, r1
add r0, r4, r0
2021-06-24 22:40:10 +00:00
ldr r0, [r0, #4]
cmp r0, #0
beq _0225E386
2021-08-14 00:11:40 +00:00
bl String_dtor
2021-06-24 22:40:10 +00:00
_0225E386:
ldr r1, [r5]
2021-06-27 18:48:56 +00:00
mov r0, #0x1c
mul r0, r1
add r0, r4, r0
2021-06-24 22:40:10 +00:00
ldr r0, [r0, #8]
cmp r0, #0
beq _0225E398
2021-08-14 00:11:40 +00:00
bl String_dtor
2021-06-24 22:40:10 +00:00
_0225E398:
ldr r0, [sp, #8]
2021-08-16 12:51:45 +00:00
bl PlayerProfile_GetNamePtr
2021-06-27 18:48:56 +00:00
add r1, r0, #0
2021-06-24 22:40:10 +00:00
ldr r2, [r5]
2021-06-27 18:48:56 +00:00
mov r0, #0x1c
mul r0, r2
2021-06-24 22:40:10 +00:00
ldr r0, [r4, r0]
2021-08-16 12:51:45 +00:00
bl CopyU16ArrayToString
2021-06-24 22:40:10 +00:00
ldr r0, [r5]
2021-06-27 18:48:56 +00:00
mov r1, #0x1c
add r2, r0, #0
mul r2, r1
add r0, r4, r2
2021-06-24 22:40:10 +00:00
ldrh r2, [r6]
strh r2, [r0, #0x14]
ldrh r2, [r6, #2]
strh r2, [r0, #0x16]
ldrh r2, [r6, #4]
strh r2, [r0, #0x18]
ldrh r2, [r6, #6]
strh r2, [r0, #0x1a]
ldr r0, [r5]
2021-06-27 18:48:56 +00:00
mul r1, r0
2021-06-24 22:40:10 +00:00
ldr r0, [sp, #4]
2021-06-27 18:48:56 +00:00
add r1, r4, r1
2021-06-24 22:40:10 +00:00
str r0, [r1, #0xc]
ldr r0, [sp, #8]
2021-08-17 00:42:24 +00:00
bl PlayerProfile_GetTrainerGender
2021-06-24 22:40:10 +00:00
ldr r2, [r5]
2021-06-27 18:48:56 +00:00
mov r1, #0x1c
mul r1, r2
add r1, r4, r1
2021-06-24 22:40:10 +00:00
str r0, [r1, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r6, #0
mov r1, #0x57
2021-08-17 00:57:51 +00:00
bl MailMsg_GetExpandedString
2021-06-24 22:40:10 +00:00
ldr r2, [r5]
2021-06-27 18:48:56 +00:00
mov r1, #0x1c
mul r1, r2
add r1, r4, r1
2021-06-24 22:40:10 +00:00
str r0, [r1, #4]
ldr r0, [r7, #0x10]
ldr r1, [sp, #4]
str r0, [sp]
ldr r0, [sp, #0xc]
ldr r2, [r7, #0x18]
ldr r3, [r7, #0x1c]
bl ov34_0225E2BC
ldr r2, [r5]
2021-06-27 18:48:56 +00:00
mov r1, #0x1c
mul r1, r2
add r1, r4, r1
2021-06-24 22:40:10 +00:00
str r0, [r1, #8]
ldr r0, [r5]
2021-06-27 18:48:56 +00:00
add r0, r0, #1
2021-06-24 22:40:10 +00:00
str r0, [r5]
2021-06-27 18:48:56 +00:00
mov r0, #0xd3
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldr r1, [r4, r0]
cmp r1, #0x1e
bne _0225E420
2021-06-27 18:48:56 +00:00
mov r1, #0
2021-06-24 22:40:10 +00:00
str r1, [r4, r0]
_0225E420:
add sp, #0x10
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
_0225E424: .word 0x000004D8
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E348
thumb_func_start ov34_0225E428
2021-06-27 18:48:56 +00:00
ov34_0225E428: ; 0x0225E428
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r6, r0, #0
add r0, r1, #0
2021-06-24 22:40:10 +00:00
str r1, [sp]
2021-06-27 18:48:56 +00:00
add r7, r2, #0
2021-08-17 00:57:51 +00:00
bl MailMsg_IsInit
2021-06-24 22:40:10 +00:00
cmp r0, #0
bne _0225E43E
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-24 22:40:10 +00:00
pop {r3, r4, r5, r6, r7, pc}
_0225E43E:
2021-06-27 18:48:56 +00:00
mov r1, #0x27
lsl r1, r1, #4
2021-06-24 22:40:10 +00:00
ldr r0, [r6, r1]
2021-06-27 18:48:56 +00:00
add r1, #0xd8
2021-06-24 22:40:10 +00:00
ldr r1, [r0, r1]
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-24 22:40:10 +00:00
cmp r1, #0
ble _0225E478
2021-06-27 18:48:56 +00:00
add r5, r4, #0
2021-06-24 22:40:10 +00:00
_0225E450:
2021-06-27 18:48:56 +00:00
add r1, r0, r5
2021-06-24 22:40:10 +00:00
ldr r0, [r1, #0xc]
cmp r7, r0
bne _0225E464
ldr r0, [sp]
2021-06-27 18:48:56 +00:00
add r1, #0x14
2021-08-17 00:57:51 +00:00
bl MailMsg_compare
2021-06-24 22:40:10 +00:00
cmp r0, #0
bne _0225E478
_0225E464:
2021-06-27 18:48:56 +00:00
mov r0, #0x27
lsl r0, r0, #4
mov r1, #0xd2
2021-06-24 22:40:10 +00:00
ldr r0, [r6, r0]
2021-06-27 18:48:56 +00:00
lsl r1, r1, #2
2021-06-24 22:40:10 +00:00
ldr r1, [r0, r1]
2021-06-27 18:48:56 +00:00
add r4, r4, #1
add r5, #0x1c
2021-06-24 22:40:10 +00:00
cmp r4, r1
blt _0225E450
_0225E478:
2021-06-27 18:48:56 +00:00
mov r0, #0x27
lsl r0, r0, #4
2021-06-24 22:40:10 +00:00
ldr r1, [r6, r0]
2021-06-27 18:48:56 +00:00
add r0, #0xd8
2021-06-24 22:40:10 +00:00
ldr r0, [r1, r0]
cmp r4, r0
beq _0225E48E
cmp r0, #0
beq _0225E48E
2021-06-27 18:48:56 +00:00
mov r0, #0
2021-06-24 22:40:10 +00:00
pop {r3, r4, r5, r6, r7, pc}
_0225E48E:
2021-06-27 18:48:56 +00:00
mov r0, #0x1c
mul r0, r4
add r1, r1, r0
2021-06-24 22:40:10 +00:00
ldr r0, [r1, #0xc]
cmp r7, r0
beq _0225E4A2
ldr r0, [sp]
2021-06-27 18:48:56 +00:00
add r1, #0x14
2021-08-17 00:57:51 +00:00
bl MailMsg_compare
2021-06-24 22:40:10 +00:00
_0225E4A2:
2021-06-27 18:48:56 +00:00
mov r0, #1
2021-06-24 22:40:10 +00:00
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E428
thumb_func_start ov34_0225E4A8
2021-06-27 18:48:56 +00:00
ov34_0225E4A8: ; 0x0225E4A8
2021-06-24 22:40:10 +00:00
push {r4, r5, r6, lr}
2021-06-27 18:48:56 +00:00
add r6, r1, #0
mov r1, #0xa2
add r4, r0, #0
lsl r1, r1, #2
2021-06-24 22:40:10 +00:00
ldrh r0, [r4, r1]
2021-06-27 18:48:56 +00:00
sub r1, r1, #4
2021-06-24 22:40:10 +00:00
ldrh r1, [r4, r1]
2021-06-27 18:48:56 +00:00
mov r5, #0
sub r1, r1, #3
2021-06-24 22:40:10 +00:00
cmp r0, r1
bne _0225E4C2
2021-06-27 18:48:56 +00:00
mov r5, #1
2021-06-24 22:40:10 +00:00
_0225E4C2:
2021-06-27 18:48:56 +00:00
add r1, r3, #0
add r0, r4, #0
add r3, r6, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E348
2021-06-27 18:48:56 +00:00
ldr r1, _0225E4F4 ; =0x0000028A
2021-06-24 22:40:10 +00:00
ldrh r0, [r4, r1]
cmp r0, #0
beq _0225E4EA
cmp r5, #0
beq _0225E4EA
2021-06-27 18:48:56 +00:00
add r0, r1, #0
sub r0, #0x1a
2021-06-24 22:40:10 +00:00
ldr r2, [r4, r0]
2021-06-27 18:48:56 +00:00
add r0, r1, #0
add r0, #0xbe
2021-06-24 22:40:10 +00:00
ldr r0, [r2, r0]
2021-06-27 18:48:56 +00:00
sub r2, r0, #3
sub r0, r1, #2
2021-06-24 22:40:10 +00:00
strh r2, [r4, r0]
_0225E4EA:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E560
pop {r4, r5, r6, pc}
nop
2021-06-27 18:48:56 +00:00
_0225E4F4: .word 0x0000028A
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E4A8
thumb_func_start ov34_0225E4F8
2021-06-27 18:48:56 +00:00
ov34_0225E4F8: ; 0x0225E4F8
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
2021-06-24 22:40:10 +00:00
ldr r0, [r5, #0xc]
2022-03-12 16:55:51 +00:00
bl Fsys_TaskIsRunning
2021-06-24 22:40:10 +00:00
cmp r0, #0
bne _0225E55C
2021-06-27 18:48:56 +00:00
mov r4, #0
2021-06-24 22:40:10 +00:00
_0225E508:
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-27 19:11:25 +00:00
bl sub_02035754
2021-06-27 18:48:56 +00:00
add r2, r0, #0
2021-06-24 22:40:10 +00:00
beq _0225E53A
2021-06-27 18:48:56 +00:00
add r6, r2, #0
add r6, #0x50
add r7, r6, #0
add r7, #8
2021-06-24 22:40:10 +00:00
ldr r2, [r2, #0x50]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r1, r7, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E428
cmp r0, #0
beq _0225E53A
2021-06-27 18:48:56 +00:00
add r0, r4, #0
2021-06-27 19:11:25 +00:00
bl sub_02035798
2021-06-27 18:48:56 +00:00
add r1, r0, #0
2021-06-24 22:40:10 +00:00
ldr r3, [r6]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r2, r7, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E4A8
_0225E53A:
2021-06-27 18:48:56 +00:00
add r4, r4, #1
2021-06-24 22:40:10 +00:00
cmp r4, #0x10
blt _0225E508
ldr r0, [r5, #8]
2021-06-27 19:11:25 +00:00
bl sub_0205AA84
2021-06-27 18:48:56 +00:00
add r4, r0, #0
2021-06-24 22:40:10 +00:00
beq _0225E55C
ldr r0, [r5, #0x10]
2021-09-06 13:41:18 +00:00
bl PlayerProfile_GetTrainerID
2021-06-27 18:48:56 +00:00
add r3, r0, #0
2021-06-24 22:40:10 +00:00
ldr r1, [r5, #0x10]
2021-06-27 18:48:56 +00:00
add r0, r5, #0
add r2, r4, #0
2021-06-24 22:40:10 +00:00
bl ov34_0225E4A8
_0225E55C:
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E4F8
thumb_func_start ov34_0225E560
2021-06-27 18:48:56 +00:00
ov34_0225E560: ; 0x0225E560
mov r1, #0xa5
mov r2, #1
lsl r1, r1, #2
2021-06-24 22:40:10 +00:00
str r2, [r0, r1]
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E560
thumb_func_start ov34_0225E56C
2021-06-27 18:48:56 +00:00
ov34_0225E56C: ; 0x0225E56C
mov r1, #0xa6
mov r2, #0
lsl r1, r1, #2
2021-06-24 22:40:10 +00:00
strb r2, [r0, r1]
2021-06-27 18:48:56 +00:00
mov r3, #8
add r2, r1, #2
2021-06-24 22:40:10 +00:00
strb r3, [r0, r2]
2021-06-27 18:48:56 +00:00
mov r3, #4
add r2, r1, #3
2021-06-24 22:40:10 +00:00
strb r3, [r0, r2]
2021-06-27 18:48:56 +00:00
add r2, r1, #2
2021-06-24 22:40:10 +00:00
ldrb r2, [r0, r2]
2021-06-27 18:48:56 +00:00
add r1, r1, #1
2021-06-24 22:40:10 +00:00
strb r2, [r0, r1]
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E56C
thumb_func_start ov34_0225E58C
2021-06-27 18:48:56 +00:00
ov34_0225E58C: ; 0x0225E58C
mov r2, #0xa6
mov r1, #0
lsl r2, r2, #2
2021-06-24 22:40:10 +00:00
strb r1, [r0, r2]
2022-02-01 20:44:20 +00:00
ldr r1, _0225E5D0 ; =gSystem + 0x40
2021-06-24 22:40:10 +00:00
ldrh r3, [r1, #0x24]
cmp r3, #0
beq _0225E5A2
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-24 22:40:10 +00:00
strb r1, [r0, r2]
bx lr
_0225E5A2:
ldrh r1, [r1, #0x26]
cmp r1, #0
beq _0225E5C6
2021-06-27 18:48:56 +00:00
add r1, r2, #1
2021-06-24 22:40:10 +00:00
ldrsb r1, [r0, r1]
2021-06-27 18:48:56 +00:00
sub r3, r1, #1
add r1, r2, #1
2021-06-24 22:40:10 +00:00
strb r3, [r0, r1]
ldrsb r1, [r0, r1]
cmp r1, #0
bge _0225E5CE
2021-06-27 18:48:56 +00:00
mov r1, #1
2021-06-24 22:40:10 +00:00
strb r1, [r0, r2]
2021-06-27 18:48:56 +00:00
add r1, r2, #3
2021-06-24 22:40:10 +00:00
ldrb r3, [r0, r1]
2021-06-27 18:48:56 +00:00
add r1, r2, #1
2021-06-24 22:40:10 +00:00
strb r3, [r0, r1]
bx lr
_0225E5C6:
2021-06-27 18:48:56 +00:00
add r1, r2, #2
2021-06-24 22:40:10 +00:00
ldrb r3, [r0, r1]
2021-06-27 18:48:56 +00:00
add r1, r2, #1
2021-06-24 22:40:10 +00:00
strb r3, [r0, r1]
_0225E5CE:
bx lr
2021-08-08 01:30:37 +00:00
.balign 4, 0
2022-02-01 20:44:20 +00:00
_0225E5D0: .word gSystem + 0x40
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E58C
thumb_func_start ov34_0225E5D4
2021-06-27 18:48:56 +00:00
ov34_0225E5D4: ; 0x0225E5D4
mov r1, #0xa6
lsl r1, r1, #2
2021-06-24 22:40:10 +00:00
ldrb r0, [r0, r1]
bx lr
thumb_func_end ov34_0225E5D4
thumb_func_start ov34_0225E5DC
2021-06-27 18:48:56 +00:00
ov34_0225E5DC: ; 0x0225E5DC
mov r2, #0xa7
lsl r2, r2, #2
2021-06-24 22:40:10 +00:00
str r1, [r0, r2]
bx lr
thumb_func_end ov34_0225E5DC
thumb_func_start ov34_0225E5E4
2021-06-27 18:48:56 +00:00
ov34_0225E5E4: ; 0x0225E5E4
mov r1, #0xa7
lsl r1, r1, #2
2021-06-24 22:40:10 +00:00
ldr r0, [r0, r1]
bx lr
thumb_func_end ov34_0225E5E4
thumb_func_start ov34_0225E5EC
2021-06-27 18:48:56 +00:00
ov34_0225E5EC: ; 0x0225E5EC
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r7, r0, #0
mov r0, #0x66
add r5, r1, #0
lsl r0, r0, #2
add r4, r7, r0
lsl r6, r5, #2
2021-06-24 22:40:10 +00:00
ldr r0, [r4, r6]
2021-06-27 19:11:25 +00:00
bl sub_020249F8
2021-06-24 22:40:10 +00:00
str r0, [sp]
ldr r0, [r4, r6]
2021-06-27 19:11:25 +00:00
bl sub_020249A8
2021-06-27 18:48:56 +00:00
lsl r0, r0, #0x10
lsr r1, r0, #0x10
2021-06-24 22:40:10 +00:00
ldr r0, [sp]
cmp r0, #0
bne _0225E618
2021-06-27 18:48:56 +00:00
add r0, r5, #4
2021-06-24 22:40:10 +00:00
cmp r1, r0
beq _0225E620
_0225E618:
ldr r0, [r4, r6]
2021-06-27 18:48:56 +00:00
add r1, r5, #4
2021-06-27 19:11:25 +00:00
bl sub_020248F0
2021-06-24 22:40:10 +00:00
_0225E620:
2021-06-27 18:48:56 +00:00
lsl r0, r5, #1
add r1, r7, r0
mov r0, #0x2a
mov r2, #1
lsl r0, r0, #4
2021-06-24 22:40:10 +00:00
strh r2, [r1, r0]
pop {r3, r4, r5, r6, r7, pc}
2021-08-08 01:30:37 +00:00
.balign 4, 0
2021-06-24 22:40:10 +00:00
thumb_func_end ov34_0225E5EC
thumb_func_start ov34_0225E630
2021-06-27 18:48:56 +00:00
ov34_0225E630: ; 0x0225E630
2021-06-24 22:40:10 +00:00
push {r3, r4, r5, r6, r7, lr}
2021-06-27 18:48:56 +00:00
add r5, r0, #0
mov r6, #0
add r4, r5, #0
add r7, r6, #0
2021-06-24 22:40:10 +00:00
_0225E63A:
2021-06-27 18:48:56 +00:00
mov r0, #0x66
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldr r0, [r5, r0]
2021-06-27 19:11:25 +00:00
bl sub_020249F8
2021-06-27 18:48:56 +00:00
mov r0, #0x2a
lsl r0, r0, #4
2021-06-24 22:40:10 +00:00
ldrh r0, [r4, r0]
cmp r0, #1
bne _0225E662
2021-06-27 18:48:56 +00:00
mov r0, #0x66
lsl r0, r0, #2
2021-06-24 22:40:10 +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_0202484C
2021-06-27 18:48:56 +00:00
mov r0, #0x2a
lsl r0, r0, #4
2021-06-24 22:40:10 +00:00
strh r7, [r4, r0]
b _0225E688
_0225E662:
2021-06-27 18:48:56 +00:00
mov r0, #0x66
lsl r0, r0, #2
2021-06-24 22:40:10 +00:00
ldr r0, [r5, r0]
2021-06-27 19:11:25 +00:00
bl sub_020248C0
2021-06-24 22:40:10 +00:00
cmp r0, #0
bne _0225E688
2021-06-27 18:48:56 +00:00
mov r0, #0x66
lsl r0, r0, #2
2021-06-24 22:40:10 +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_0202484C
2021-06-27 18:48:56 +00:00
mov r0, #0x66
lsl r0, r0, #2
2021-06-24 22:40:10 +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_020249D4
2021-06-24 22:40:10 +00:00
_0225E688:
2021-06-27 18:48:56 +00:00
add r6, r6, #1
add r5, r5, #4
add r4, r4, #2
2021-06-24 22:40:10 +00:00
cmp r6, #2
blt _0225E63A
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end ov34_0225E630
.rodata
_0225E694:
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
ov34_0225E6A0: ; 0x0225E6A0
.byte 0x00, 0x00, 0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00
ov34_0225E6AC: ; 0x0225E6AC
.byte 0x30, 0x90, 0xE8, 0x00
2021-06-24 22:40:10 +00:00
.byte 0x10, 0x48, 0x00, 0xE8, 0x48, 0x80, 0x00, 0xE8, 0x80, 0xB8, 0x00, 0xE8, 0xFF, 0x00, 0x00, 0x00
ov34_0225E6C0: ; 0x0225E6C0
2021-06-24 22:40:10 +00:00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x01, 0x00, 0x0E, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
ov34_0225E6DC: ; 0x0225E6DC
.byte 0x00, 0x00, 0x00, 0x00
2021-06-24 22:40:10 +00:00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x0F, 0x00
.byte 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
ov34_0225E6F8: ; 0x0225E6F8
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
2021-06-24 22:40:10 +00:00
.byte 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x0D, 0x00, 0x00, 0x02, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00
ov34_0225E714: ; 0x0225E714
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00
2021-06-24 22:40:10 +00:00
.byte 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x0C, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
ov34_0225E730: ; 0x0225E730
2021-06-24 22:40:10 +00:00
.byte 0x00, 0x20, 0xE8, 0xF8, 0xA0, 0x20, 0xE8, 0xF8, 0x10, 0x48, 0x00, 0xE8, 0x48, 0x80, 0x00, 0xE8
.byte 0x80, 0xB8, 0x00, 0xE8, 0x30, 0x90, 0xE8, 0x00, 0x00, 0x0F, 0x00, 0xE8, 0xFF, 0x00, 0x00, 0x00